SMS API specification (2.0.0)

Download OpenAPI specification:Download

The sms service implements all sms functions for GroupAlarm

Authentication

API_Token

To use this API, you need an API-Token from the RBAC settings of your GroupAlarm organization. Place the token inside the HTTP-Header API-Token for every request, otherwise the API will return an "401 Unauthorized" error for your request.

Security scheme type: API Key
header parameter name: API-TOKEN

Personal-Access-Token

To use this API, you need a Personal Access Token from your profile settings. Place the token inside the HTTP-Header Personal-Access-Token for every request, otherwise the API will return an "401 Unauthorized" error for your request.

Security scheme type: API Key
header parameter name: Personal-Access-Token

alarming

ListConfigurations

Returns all sms-alarming configurations

query Parameters
organization_id
required
int64

requesting organization

Responses

200

sms-alarming configurations for given organization

400

organizationID is missing or in wrong format

500

Unexpected database error

get /alarming
https://app.groupalarm.com/api/v1/sms/alarming

Response samples

application/json
Copy
Expand all Collapse all
[
  • {
    }
]

UpdateConfiguration

Updates an existing sms-alarming configuration

Request Body schema: application/json
gsm
string
id
integer <int64>
organizationID
integer <int64>
pin
string

Responses

200

updated sms-alarming configuration

400

payload is missing or invalid

500

Unexpected database error

put /alarming
https://app.groupalarm.com/api/v1/sms/alarming

Request samples

application/json
Copy
Expand all Collapse all
{
  • "gsm": "string",
  • "id": 0,
  • "organizationID": 0,
  • "pin": "string"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "gsm": "string",
  • "id": 0,
  • "organizationID": 0,
  • "pin": "string"
}

CreateConfiguration

Creates a new sms-alarming configuration

Request Body schema: application/json
gsm
string
id
integer <int64>
organizationID
integer <int64>
pin
string

Responses

200

newly created sms-alarming configuration

400

payload is missing or invalid

500

Unexpected database error

post /alarming
https://app.groupalarm.com/api/v1/sms/alarming

Request samples

application/json
Copy
Expand all Collapse all
{
  • "gsm": "string",
  • "id": 0,
  • "organizationID": 0,
  • "pin": "string"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "gsm": "string",
  • "id": 0,
  • "organizationID": 0,
  • "pin": "string"
}

DeleteConfiguration

Deletes an existing sms-alarming configuration

path Parameters
configurationID
required
int64

ID of an existing sms-alarming configuration

Responses

200

deleted sms-alarming configuration

400

payload is missing or invalid

500

Unexpected database error

delete /alarming/{configurationID}
https://app.groupalarm.com/api/v1/sms/alarming/{configurationID}

organizations

GetDisabledOrganization

Returns whether the given organization has disabled this way of alarming or not

query Parameters
organization_id
required
int64

requesting organization

Responses

200

whether this way of alarming is disabled or not

400

organization_id is missing or in wrong format

500

Unexpected database error

get /disabled
https://app.groupalarm.com/api/v1/sms/disabled

Response samples

application/json
Copy
Expand all Collapse all
[
  • {
    }
]

SetDisabledOrganization

Sets whether the given organization has this way of alarming disabled or not

query Parameters
organization_id
required
int64

requesting organization

Request Body schema: application/json
isDisabled
boolean

Responses

200

request successful

400

organization_id is missing or in wrong format

500

Unexpected database error

put /disabled
https://app.groupalarm.com/api/v1/sms/disabled

Request samples

application/json
Copy
Expand all Collapse all
{
  • "isDisabled": true
}

gsm

List

Returns all gsm numbers for queried owner

query Parameters
owner_id
required
int64

requested owner by using his user ID

organization_id
int64

requesting organization, not required if user accesses his own resources

Responses

200

mobile configurations for passed user

400

owner ID is missing or in wrong format

500

Unexpected database error

get /mobile
https://app.groupalarm.com/api/v1/sms/mobile

Response samples

application/json
Copy
Expand all Collapse all
[
  • {
    }
]

Update

Updates an existing gsm configuration

query Parameters
organization_id
int64

requesting organization, not required if user accesses his own resources

Request Body schema: application/json
active
boolean

true, if this configuration can be used for alarm notifications

gsm
string

gsm number for alarm notifications with sms (E.164-format with 00 instead of +)

name
string

user defined name for this configuration

ownerID
integer <int64>

user id, who owns this configuration

Responses

200

update mobile configuration

400

mobile configuration payload is missing or in wrong format

500

Unexpected database error

put /mobile
https://app.groupalarm.com/api/v1/sms/mobile

Request samples

application/json
Copy
Expand all Collapse all
{
  • "active": true,
  • "gsm": "string",
  • "name": "string",
  • "ownerID": 0
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "active": true,
  • "gsm": "string",
  • "name": "string",
  • "ownerID": 0
}

Create

Create a gsm configuration for specific user

query Parameters
organization_id
int64

requesting organization, not required if user accesses his own resources

Request Body schema: application/json
active
boolean

true, if this configuration can be used for alarm notifications

gsm
string

gsm number for alarm notifications with sms (E.164-format with 00 instead of +)

name
string

user defined name for this configuration

ownerID
integer <int64>

user id, who owns this configuration

Responses

200

created mobile configuration

400

mobile configuration payload is missing or in wrong format

500

Unexpected database error

post /mobile
https://app.groupalarm.com/api/v1/sms/mobile

Request samples

application/json
Copy
Expand all Collapse all
{
  • "active": true,
  • "gsm": "string",
  • "name": "string",
  • "ownerID": 0
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "active": true,
  • "gsm": "string",
  • "name": "string",
  • "ownerID": 0
}

Delete

Delete an existing gsm configuration

query Parameters
mobileID
required
int64

ID of an existing mobile configuration

organization_id
int64

requesting organization, not required if user accesses his own resources

Responses

200

update mobile configuration

400

passed mobile ID is missing or in wrong format

500

Unexpected database error

delete /mobile/{mobileID}
https://app.groupalarm.com/api/v1/sms/mobile/{mobileID}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "status": "deleted"
}

List

Returns an gsm number configuration

query Parameters
mobileID
required
int64

ID of an gsm configuration

organization_id
int64

requesting organization, not required if user accesses his own resources

Responses

200

requested mobile configuration

400

ID is missing or in wrong format

500

Unexpected database error

get /{mobileID}
https://app.groupalarm.com/api/v1/sms/{mobileID}

Response samples

application/json
Copy
Expand all Collapse all
[
  • {
    }
]