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 URL | https://api.alertops.com/api |
| Authentication | APIKey query parameter (GET) or body field (POST) |
| Endpoints | 4 |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/user/ListUsers | List Users |
| GET | /api/user/GetUserContactMethods | Get User Contact Methods |
| POST | /api/user/CreateUser | Create User |
| POST | /api/user/CreateOutOfOffice | Create out of office |
List Users
GET /api/user/ListUsers
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your 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
| Name | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
UserName | string | Required |
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).
| Field | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
UserName | string | Required | UserName of the User |
Email | string | Required | Email of the User |
FirstName | string | Required | First Name of the User |
LastName | string | Required | Last Name of the User |
Role | string | Required | Role of the User |
UserType | string | Required | User Type Possible Values: Standard/Billing Admin |
GroupID | integer | Required | (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).
| Field | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
UserName | string | Required | |
StartDate | string | Required | Date Time Format 'mm/dd/yy' |
EndDate | string | Required | Date Time Format 'mm/dd/yy' |
StartTime | string | Optional | Default '00:00'. 24 Hour time format eg: '16:45' |
EndTime | string | Optional | Default '23:59'. 24 Hour time format eg: '16:45' |
CoveringUser | array of objects | Required | Specify Group ID and Covering User eg: [{"GroupID": "1", "CoverUserName" : "Test"}] |
CoveringUser[].GroupID | string | Optional | |
CoveringUser[].GroupName | string | Optional | |
CoveringUser[].CoverUserID | integer | Required | |
CoveringUser[].CoverUserName | string | Optional | |
CoveringUser[].CoverUserFullName | string | Optional |
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"
}
]
}'