Skip to content
  • There are no suggestions because the search field is empty.

Users API (v1)

Legacy V1 endpoints for users.

Legacy V1 endpoints for users. V1 is still available, but new integrations should use the V2 API. V1 passes the API key in the query string (GET) or the JSON body (POST).

Base URLhttps://api.alertops.com/api
AuthenticationAPIKey query parameter (GET) or body field (POST)
Endpoints4

Endpoints

MethodPathDescription
GET/api/user/ListUsersList Users
GET/api/user/GetUserContactMethodsGet User Contact Methods
POST/api/user/CreateUserCreate User
POST/api/user/CreateOutOfOfficeCreate out of office

List Users

GET /api/user/ListUsers

Query parameters

NameTypeRequiredDescription
APIKeystringRequiredYour V1 API key.

Responses

200 OK

[
  {
    "UserName": "testOne",
    "FullName": "One, Test",
    "UserType": "Standard"
  },
  {
    "UserName": "testTwo",
    "FullName": "Two, Test",
    "UserType": "Stakeholder"
  },
  {
    "UserName": "testThree",
    "FullName": "Three, Test",
    "UserType": "Standard"
  },
  {
    "UserName": "testFour",
    "FullName": "Four, Test",
    "UserType": "Stakeholder"
  }
]

Example request

curl -X GET "https://api.alertops.com/api/user/ListUsers?APIKey=<YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Get User Contact Methods

GET /api/user/GetUserContactMethods

Query parameters

NameTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
UserNamestringRequired 

Responses

200 OK

[
  {
    "ContactType": "Email-Official",
    "ContactDataType": "EMAIL",
    "Enabled": true,
    "ContactData": {
      "EmailAddress": "testOne@alertops.com"
    },
    "ContactDisplay": "testOne@alertops.com"
  },
  {
    "ContactType": "Push Notification",
    "ContactDataType": "PUSH NOTIFICATION",
    "Enabled": true,
    "ContactDisplay": "iOS Device"
  },
  {
    "ContactType": "Push Notification",
    "ContactDataType": "PUSH NOTIFICATION",
    "Enabled": true,
    "ContactDisplay": "Android Device"
  },
  {
    "ContactType": "Phone-Personal",
    "ContactDataType": "PHONE",
    "Enabled": true,
    "ContactData": {
      "CountryCode": "1",
      "PhoneNumber": "1234567890",
      "Extension": ""
    },
    "ContactDisplay": "1-1234567890"
  }
]

Example request

curl -X GET "https://api.alertops.com/api/user/GetUserContactMethods?APIKey=<YOUR_API_KEY>&UserName={UserName}" \
  -H "Content-Type: application/json"

Create User

POST /api/user/CreateUser

Request body

JSON object (required).

FieldTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
UserNamestringRequiredUserName of the User
EmailstringRequiredEmail of the User
FirstNamestringRequiredFirst Name of the User
LastNamestringRequiredLast Name of the User
RolestringRequiredRole of the User
UserTypestringRequiredUser Type Possible Values: Standard/Billing Admin
GroupIDintegerRequired(Optional)GroupID to be passed if want to make user part of that Group

Example body

{
  "APIKey": "<YOUR_API_KEY>",
  "UserName": "string",
  "Email": "string",
  "FirstName": "string",
  "LastName": "string",
  "Role": "string",
  "UserType": "string",
  "GroupID": 0
}

Responses

200 OK · Success: 6954 (Userid integer)

Example request

curl -X POST "https://api.alertops.com/api/user/CreateUser" \
  -H "Content-Type: application/json" \
  -d '{"APIKey":"<YOUR_API_KEY>","UserName":"string","Email":"string","FirstName":"string","LastName":"string","Role":"string","UserType":"string","GroupID":0}'

Create out of office

POST /api/user/CreateOutOfOffice

Request body

JSON object (required).

FieldTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
UserNamestringRequired 
StartDatestringRequiredDate Time Format 'mm/dd/yy'
EndDatestringRequiredDate Time Format 'mm/dd/yy'
StartTimestringOptionalDefault '00:00'. 24 Hour time format eg: '16:45'
EndTimestringOptionalDefault '23:59'. 24 Hour time format eg: '16:45'
CoveringUserarray of objectsRequiredSpecify Group ID and Covering User eg: [{"GroupID": "1", "CoverUserName" : "Test"}]
CoveringUser[].GroupIDstringOptional 
CoveringUser[].GroupNamestringOptional 
CoveringUser[].CoverUserIDintegerRequired 
CoveringUser[].CoverUserNamestringOptional 
CoveringUser[].CoverUserFullNamestringOptional 

Example body

{
  "APIKey": "<YOUR_API_KEY>",
  "UserName": "string",
  "StartDate": "string",
  "EndDate": "string",
  "StartTime": "string",
  "EndTime": "string",
  "CoveringUser": [
    {
      "GroupID": "string",
      "GroupName": "string",
      "CoverUserID": 0,
      "CoverUserName": "string",
      "CoverUserFullName": "string"
    }
  ]
}

Responses

200 OK

Example request

curl -X POST "https://api.alertops.com/api/user/CreateOutOfOffice" \
  -H "Content-Type: application/json" \
  -d '{
  "APIKey": "<YOUR_API_KEY>",
  "UserName": "string",
  "StartDate": "string",
  "EndDate": "string",
  "StartTime": "string",
  "EndTime": "string",
  "CoveringUser": [
    {
      "GroupID": "string",
      "GroupName": "string",
      "CoverUserID": 0,
      "CoverUserName": "string",
      "CoverUserFullName": "string"
    }
  ]
}'