Alerts API (v1)
Legacy V1 endpoints for alerts.
Legacy V1 endpoints for alerts. 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 | 10 |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/alert | List Alerts |
| GET | /api/alert/GetAlertIDByInboundMessageID | Get AlertID By Inbound MessageID |
| GET | /api/alert/GetAlertIDByUniqueInboundID | Get AlertID By Unique InboundID |
| POST | /api/alert/Create | Create Alert |
| POST | /api/alert/Close | Close Alert |
| POST | /api/alert/Update | Update alert field value |
| POST | /api/alert/Assign | Assign user to Alert |
| POST | /api/alert/Note | Add note to Alert |
| POST | /api/alert/AddRecipients | Add Recipients to Alert |
| POST | /api/alert/Reply | Reply to Alert |
List Alerts
GET /api/alert
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
Limit | integer | Optional | Page size. Default is 10. Max value for this parameter is 100. |
Offset | integer | Optional | Starting point for the result set Default: 0 |
AlertStatus | integer | Optional | Open = 1, Closed = 2, Assigned = 5, All = 0 Default: 0 |
DateFrom | string | Optional | Date Format 'yyyy-mm-dd' |
DateTo | string | Optional | Date Format 'yyyy-mm-dd' |
Order | string | Optional | "desc" or "asc" Default: desc |
AlertID | integer | Optional | |
ClosedFromDate | string | Optional | Date Format 'yyyy-mm-dd' |
ClosedToDate | string | Optional | Date Format 'yyyy-mm-dd' |
GroupList | string | Optional | List of Group IDs. Eg. 123,456 |
IntegrationList | string | Optional | List of Integration Rule IDs. Eg. 123,456 |
EscalationList | string | Optional | List of Escalation Rule IDs. Eg. 123,456 |
Responses
200 OK
{
"alerts": [
{
"AlertID": 49818,
"CreatedDate": "2020-03-06T18:28:34",
"Sender": "Test User",
"Topic": "[Alerting] Server Disk space full in UAT - Server reporting problem: disk_space_free_total",
"MessageText": "Alert status: alerting\nAlert for: disk_space_free_total\nTo view the panel showing the alert please go to: http://localhost:3333/dashboard/db/client-uat",
"AlertStatus": "Open",
"Owner": "No Owner",
"OwnerID": 0,
"Priority": "No Priority",
"Integration": "AAA_Grafana",
"Source": "Grafana",
"SourceName": "Grafana",
"SourceID": "14",
"WithinSLA": "No",
"TargetSLADate": "2020-03-09T18:28:34",
"AlertURL": "https://[youraccount].alertops.com/IssueTracking/TicketThreadDetailView.aspx?ThreadId=49818",
"IncidentCount": 3,
"Deliveries": [],
"Recipients": [],
"BusinessService": "",
"ComponentType": "",
"ComponentName": "",
"DataCenter": "",
"Environment": "",
"ProblemType": ""
}
],
"limit": 10,
"offset": 0,
"total": 10
}Example request
curl -X GET "https://api.alertops.com/api/alert?APIKey=<YOUR_API_KEY>" \
-H "Content-Type: application/json"Get AlertID By Inbound MessageID
GET /api/alert/GetAlertIDByInboundMessageID
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
messageID | integer | Required | MessageID return from inbound integration |
Responses
200 OK
{
"AlertID": 49818,
"Status": "Mapped Appended"
}Example request
curl -X GET "https://api.alertops.com/api/alert/GetAlertIDByInboundMessageID?APIKey=<YOUR_API_KEY>&messageID={messageID}" \
-H "Content-Type: application/json"Get AlertID By Unique InboundID
GET /api/alert/GetAlertIDByUniqueInboundID
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
uniqueInboundID | string | Required | InboundID return from inbound integration |
Responses
200 OK
{
"AlertID": 49818,
"Status": "Mapped Appended"
}Example request
curl -X GET "https://api.alertops.com/api/alert/GetAlertIDByUniqueInboundID?APIKey=<YOUR_API_KEY>&uniqueInboundID={uniqueInboundID}" \
-H "Content-Type: application/json"Create Alert
POST /api/alert/Create
Request body
JSON object (required).
| Field | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
EscalationRuleID | integer | Required | Escalation Rule ID |
TopicID | integer | Required | Message Topic ID |
Recipients | array of objects | Optional | Recipient list |
Recipients[].RecipientTypeID | integer | Required | Group = 1, User = 2 |
Recipients[].Recipient | string | Required | UserName/GroupID |
Subject | string | Required | Alert Subject |
MessageText | string | Required | Alert Message Text |
ShortText | string | Optional | Alert ShortText |
Example body
{
"APIKey": "<YOUR_API_KEY>",
"EscalationRuleID": 0,
"TopicID": 0,
"Recipients": [
{
"RecipientTypeID": 0,
"Recipient": "string"
}
],
"Subject": "string",
"MessageText": "string",
"ShortText": "string"
}Responses
200 OK
{
"AlertID": 49820
}Example request
curl -X POST "https://api.alertops.com/api/alert/Create" \
-H "Content-Type: application/json" \
-d '{
"APIKey": "<YOUR_API_KEY>",
"EscalationRuleID": 0,
"TopicID": 0,
"Recipients": [
{
"RecipientTypeID": 0,
"Recipient": "string"
}
],
"Subject": "string",
"MessageText": "string",
"ShortText": "string"
}'Close Alert
POST /api/alert/Close
Request body
JSON object (required).
| Field | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
AlertID | integer | Required | |
Username | string | Optional | (Optional) User login name |
Resolution | string | Optional | (Optional) |
Example body
{
"APIKey": "<YOUR_API_KEY>",
"AlertID": 0,
"Username": "string",
"Resolution": "string"
}Responses
200 OK
49820Example request
curl -X POST "https://api.alertops.com/api/alert/Close" \
-H "Content-Type: application/json" \
-d '{"APIKey":"<YOUR_API_KEY>","AlertID":0,"Username":"string","Resolution":"string"}'Update alert field value
POST /api/alert/Update
Request body
JSON object.
| Field | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
AlertID | integer | Required | |
MessageThread.SourceIdentifier | string | Optional | |
MessageThread.Source | string | Optional | |
MessageThread.SourceName | string | Optional | |
MessageThread.SourceURL | string | Optional | |
MessageThread.MessageThreadStatusTypeID | string | Optional | |
MessageThread.Resolution | string | Optional | |
MessageThread.IssuePriorityTypeID | string | Optional | |
Attribute.Impact Type | string | Optional | |
Attribute.SLA Level | string | Optional |
Example body
{
"APIKey": "<YOUR_API_KEY>",
"AlertID": 0,
"MessageThread.SourceIdentifier": "string",
"MessageThread.Source": "string",
"MessageThread.SourceName": "string",
"MessageThread.SourceURL": "string",
"MessageThread.MessageThreadStatusTypeID": "string",
"MessageThread.Resolution": "string",
"MessageThread.IssuePriorityTypeID": "string",
"Attribute.Impact Type": "string",
"Attribute.SLA Level": "string"
}Responses
200 OK
49820Example request
curl -X POST "https://api.alertops.com/api/alert/Update" \
-H "Content-Type: application/json" \
-d '{
"APIKey": "<YOUR_API_KEY>",
"AlertID": 0,
"MessageThread.SourceIdentifier": "string",
"MessageThread.Source": "string",
"MessageThread.SourceName": "string",
"MessageThread.SourceURL": "string",
"MessageThread.MessageThreadStatusTypeID": "string",
"MessageThread.Resolution": "string",
"MessageThread.IssuePriorityTypeID": "string",
"Attribute.Impact Type": "string",
"Attribute.SLA Level": "string"
}'Assign user to Alert
POST /api/alert/Assign
Request body
JSON object (required).
| Field | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
AlertID | integer | Required | |
Username | string | Required |
Example body
{
"APIKey": "<YOUR_API_KEY>",
"AlertID": 0,
"Username": "string"
}Responses
200 OK
49820Example request
curl -X POST "https://api.alertops.com/api/alert/Assign" \
-H "Content-Type: application/json" \
-d '{"APIKey":"<YOUR_API_KEY>","AlertID":0,"Username":"string"}'Add note to Alert
POST /api/alert/Note
Request body
JSON object (required).
| Field | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
AlertID | integer | Required | |
Username | string | Optional | (Optional) User login name. If not provided, system admin will be used. |
Note | string | Required |
Example body
{
"APIKey": "<YOUR_API_KEY>",
"AlertID": 0,
"Username": "string",
"Note": "string"
}Responses
200 OK
1Example request
curl -X POST "https://api.alertops.com/api/alert/Note" \
-H "Content-Type: application/json" \
-d '{"APIKey":"<YOUR_API_KEY>","AlertID":0,"Username":"string","Note":"string"}'Add Recipients to Alert
POST /api/alert/AddRecipients
Request body
JSON object (required).
| Field | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
AlertID | integer | Required | Alert IDss |
Recipients | array of objects | Required | Recipient list |
Recipients[].RecipientTypeID | integer | Required | Group = 1, User = 2 |
Recipients[].Recipient | string | Required | UserName/GroupID |
Example body
{
"APIKey": "<YOUR_API_KEY>",
"AlertID": 0,
"Recipients": [
{
"RecipientTypeID": 0,
"Recipient": "string"
}
]
}Responses
200 OK
Example request
curl -X POST "https://api.alertops.com/api/alert/AddRecipients" \
-H "Content-Type: application/json" \
-d '{"APIKey":"<YOUR_API_KEY>","AlertID":0,"Recipients":[{"RecipientTypeID":0,"Recipient":"string"}]}'Reply to Alert
POST /api/alert/Reply
Request body
JSON object (required).
| Field | Type | Required | Description |
|---|---|---|---|
APIKey | string | Required | Your V1 API key. |
AlertID | integer | Required | |
MessageText | string | Required |
Example body
{
"APIKey": "<YOUR_API_KEY>",
"AlertID": 0,
"MessageText": "string"
}Responses
200 OK
211588Example request
curl -X POST "https://api.alertops.com/api/alert/Reply" \
-H "Content-Type: application/json" \
-d '{"APIKey":"<YOUR_API_KEY>","AlertID":0,"MessageText":"string"}'