Alerts API
The Alerts API provides full lifecycle management for alerts in AlertOps.
You can create, retrieve, update, close, assign, and annotate alerts, as well as manage their recipients, notes, messages, and postmortem reports.
| Base URL | https://api.alertops.com/api/v2 |
| Authentication | api-key request header |
| Endpoints | 25 |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/v2/alerts | List alerts |
| POST | /api/v2/alerts | Create an alert |
| GET | /api/v2/alerts/{id} | Get an alert |
| PUT | /api/v2/alerts/{id} | Update an alert |
| PUT | /api/v2/alerts/{id}/alert_fields | Update alert fields |
| POST | /api/v2/alerts/{id}/assign | Assign an alert |
| POST | /api/v2/alerts/{id}/close | Close an alert |
| GET | /api/v2/alerts/{id}/messages | List messages for an alert |
| POST | /api/v2/alerts/{id}/messages | Add a message to an alert (reply) |
| GET | /api/v2/alerts/{id}/messages/{message_id}/notifications | List notifications for an alert message |
| GET | /api/v2/alerts/{id}/notes | List notes for an alert |
| POST | /api/v2/alerts/{id}/notes | Add a note to an alert |
| PUT | /api/v2/alerts/{id}/notes/{note_id} | Update an alert note |
| POST | /api/v2/alerts/{id}/outbound_action | Add action to an alert |
| GET | /api/v2/alerts/{id}/outbound_actions | List alert outbound actions |
| GET | /api/v2/alerts/{id}/postmortem | Get alert postmortem |
| POST | /api/v2/alerts/{id}/postmortem | Create alert postmortem |
| PUT | /api/v2/alerts/{id}/postmortem/{postmortem_id} | Update alert postmortem |
| GET | /api/v2/alerts/{id}/recipients | List recipients for an alert |
| POST | /api/v2/alerts/{id}/recipients | Add recipients to an alert |
| GET | /api/v2/alerts/{id}/timeline | List timeline for an alert |
| POST | /api/v2/alerts/bulk_assign | Assign alerts in bulk |
| POST | /api/v2/alerts/bulk_close | Close alerts in bulk |
| POST | /api/v2/alerts/{id}/snooze | Snooze an alert |
| PUT | /api/v2/alerts/{id}/snooze | Snooze an alert |
List alerts
GET /api/v2/alerts
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | string | Optional | Page size. Default is 10. Max value for this parameter is 100. |
previous | string | Optional | Default is null |
next | string | Optional | Default is null |
createdFrom | string | Optional | Default is empty. If not provided, it is set to today's date. createdFrom and createdTo date range must not exceed 6 months. Date Format 'yyyy-MM-dd'. |
createdTo | string | Optional | Default is empty. If not provided, it is set to today's date. createdFrom and createdTo date range must not exceed 6 months. Date Format 'yyyy-MM-dd'. |
integration | string | Optional | Default is empty. Eg. RTestule1, TestRule2 |
sla | string | Optional | Default is empty. Eg. Yes or No. |
source | string | Optional | Default is empty. |
sourceName | string | Optional | Default is empty. |
sourceID | string | Optional | Default is empty. |
alertID | string | Optional | Default is empty. |
viewBy | string | Optional | Default is U. Eg. U or A or G. |
group | string | Optional | Default is empty. Eg. GroupName1, GroupName2 |
escalationPolicy | string | Optional | Default is empty. Eg. Policy1, Policy2 |
sender | string | Optional | Default is empty. Eg. jdoe, 1234 |
closedFrom | string | Optional | Default is empty. closedFrom and closedTo date range must not exceed 6 months. Date Format 'yyyy-MM-dd'. |
closedTo | string | Optional | Default is empty. closedFrom and closedTo date range must not exceed 6 months. Date Format 'yyyy-MM-dd'. |
owner | string | Optional | Default is empty. Eg. jdoe, 1234 |
topic | string | Optional | Default is empty. Eg. TopicName, TestTopic |
priority | string | Optional | Default is empty. Eg. No Priority or Critical or High or Medium or Low. |
status | string | Optional | Default is empty. Eg. Assigned or Cancelled or Closed or On Hold or Open. |
technicalServices | string | Optional | filter Services Integrations |
includeIntegrations | boolean | Optional | indicated to get Integration Default: True |
includeServiceIntegrations | boolean | Optional | indicated to get Service Integration Default: True |
includeIncident | boolean | Optional | Default is false |
includeEscalationPolicy | boolean | Optional | indicated to get Escalation Policy Default: True |
includeResponsePlay | boolean | Optional | indicated to get Service Response Play Default: False |
Responses
200 OK
{
"alerts": [
{
"alert_id": 51296,
"created_date": "2020-09-01T16:59:43",
"sender": "Joe Doe",
"topic": "subject : test email",
"description": "Message Text: test email",
"status": "Assigned",
"owner": {
"user_id": 6949,
"user_name": "username",
"first_name": "Joe",
"last_name": "Doe"
},
"message_id": 224743,
"priority": "Critical",
"integration": null,
"escalation_policy": {
"id": 1661,
"name": "Blast MR"
},
"source": "",
"source_name": "",
"source_id": "",
"closed_date": null,
"within_sla": "No",
"target_sla_date": "2020-09-01T20:59:43",
"resolution": "",
"inbound_events_count": 0,
"duration": "2 h",
"acknowledge": true,
"outbound_action_allowed": false,
"alert_tags": {
"business_service": "",
"component_type": "",
"component_name": "",
"data_center": "",
"environment": "",
"problem_type": ""
},
"alert_fields": [
{
"alert_field_id": 172,
"alert_field_name": "abc",
"alert_field_value": "test"
}
]
}
],
"metadata": {
"limit": 10,
"previous": null,
"next": "11"
}
}401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/alerts" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Create an alert
POST /api/v2/alerts
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
escalation_policy | string | Optional |
response_play | string | Optional |
priority | string | Optional |
source | string | Optional |
source_name | string | Optional |
source_id | string | Optional |
source_url | string | Optional |
topic | string | Optional |
subject | string | Optional |
description | string | Optional |
bridge | string | Optional |
is_incident | boolean | Required |
alert_tags | object | Optional |
alert_tags.business_service | string | Optional |
alert_tags.component_type | string | Optional |
alert_tags.component_name | string | Optional |
alert_tags.data_center | string | Optional |
alert_tags.environment | string | Optional |
alert_tags.problem_type | string | Optional |
alert_fields | array of objects | Optional |
alert_fields[].alert_field_id | integer | Required |
alert_fields[].alert_field_value | string | Optional |
recipients | array of objects | Optional |
recipients[].recipient_type | string | Optional |
recipients[].recipient_id | string | Optional |
attachments | array of objects | Optional |
attachments[].file_name | string | Optional |
attachments[].content | string | Optional |
technical_services | array of integers | Optional |
Example body
{
"escalation_policy": "string",
"response_play": "string",
"priority": "string",
"source": "string",
"source_name": "string",
"source_id": "string",
"source_url": "string",
"topic": "string",
"subject": "string",
"description": "string",
"bridge": "string",
"is_incident": true,
"alert_tags": {
"business_service": "string",
"component_type": "string",
"component_name": "string",
"data_center": "string",
"environment": "string",
"problem_type": "string"
},
"alert_fields": [
{
"alert_field_id": 0,
"alert_field_value": "string"
}
],
"recipients": [
{
"recipient_type": "string",
"recipient_id": "string"
}
],
"attachments": [
{
"file_name": "string",
"content": "string"
}
],
"technical_services": [
0
]
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/alerts" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"escalation_policy": "string",
"response_play": "string",
"priority": "string",
"source": "string",
"source_name": "string",
"source_id": "string",
"source_url": "string",
"topic": "string",
"subject": "string",
"description": "string",
"bridge": "string",
"is_incident": true,
"alert_tags": {
"business_service": "string",
"component_type": "string",
"component_name": "string",
"data_center": "string",
"environment": "string",
"problem_type": "string"
},
"alert_fields": [
{
"alert_field_id": 0,
"alert_field_value": "string"
}
],
"recipients": [
{
"recipient_type": "string",
"recipient_id": "string"
}
],
"attachments": [
{
"file_name": "string",
"content": "string"
}
],
"technical_services": [
0
]
}'Get an alert
GET /api/v2/alerts/{id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID |
Responses
200 OK
{
"alert_id": 51269,
"created_by": "Joe Doe",
"created_date": "2020-09-03T09:59:46",
"priority": "Low",
"escalation_policy": {
"id": 1661,
"name": "Blast MR"
},
"integration": null,
"source": "",
"source_name": "",
"source_id": "",
"source_url": "",
"subject": "Printer Problems",
"topic": "Printer Problems",
"target_sla_date": "2020-09-03T13:59:46",
"status": "Open",
"owner": {
"id": 1206,
"name": "username",
"first_name": "Joe",
"last_name": "Doe"
},
"closed_date": "2020-09-04T05:19:45",
"resolution": "",
"duration": "1 d",
"description": "Attention Dev team: This is a test",
"alert_type_id": 10,
"acknowledge_allowed": true,
"outbound_action_allowed": true,
"message_id": 221702,
"alert_tags": {
"business_service": "",
"component_type": "",
"component_name": "",
"data_center": "",
"environment": "",
"problem_type": ""
},
"alert_fields": [
{
"alert_field_id": 272,
"alert_field_name": "JIRAIssueKey",
"alert_field_value": "DEMO-1496"
}
]
}401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/alerts/{id}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Update an alert
PUT /api/v2/alerts/{id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
source | string | Optional |
source_name | string | Optional |
source_id | string | Optional |
source_url | string | Optional |
status | string | Optional |
owner | string | Optional |
resolution | string | Optional |
alert_tags | object | Optional |
alert_tags.business_service | string | Optional |
alert_tags.component_type | string | Optional |
alert_tags.component_name | string | Optional |
alert_tags.data_center | string | Optional |
alert_tags.environment | string | Optional |
alert_tags.problem_type | string | Optional |
alert_fields | array of objects | Optional |
alert_fields[].alert_field_id | integer | Required |
alert_fields[].alert_field_value | string | Optional |
Example body
{
"source": "string",
"source_name": "string",
"source_id": "string",
"source_url": "string",
"status": "string",
"owner": "string",
"resolution": "string",
"alert_tags": {
"business_service": "string",
"component_type": "string",
"component_name": "string",
"data_center": "string",
"environment": "string",
"problem_type": "string"
},
"alert_fields": [
{
"alert_field_id": 0,
"alert_field_value": "string"
}
]
}Responses
204 No Content · The request was processed successfully. No response body is returned.
401 Unauthorized · missing or invalid api-key
Example request
curl -X PUT "https://api.alertops.com/api/v2/alerts/{id}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"source": "string",
"source_name": "string",
"source_id": "string",
"source_url": "string",
"status": "string",
"owner": "string",
"resolution": "string",
"alert_tags": {
"business_service": "string",
"component_type": "string",
"component_name": "string",
"data_center": "string",
"environment": "string",
"problem_type": "string"
},
"alert_fields": [
{
"alert_field_id": 0,
"alert_field_value": "string"
}
]
}'Update alert fields
PUT /api/v2/alerts/{id}/alert_fields
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID |
Request body
JSON object (required).
Example body
[
{
"alert_field_id": 0,
"alert_field_value": "string"
}
]Responses
204 No Content · The request was processed successfully. No response body is returned.
401 Unauthorized · missing or invalid api-key
Example request
curl -X PUT "https://api.alertops.com/api/v2/alerts/{id}/alert_fields" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '[{"alert_field_id":0,"alert_field_value":"string"}]'Assign an alert
POST /api/v2/alerts/{id}/assign
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
user | string | Optional |
Example body
{
"user": "string"
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/alerts/{id}/assign" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"user":"string"}'Close an alert
POST /api/v2/alerts/{id}/close
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
user | string | Optional |
resolution | string | Optional |
Example body
{
"user": "string",
"resolution": "string"
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/alerts/{id}/close" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"user":"string","resolution":"string"}'List messages for an alert
GET /api/v2/alerts/{id}/messages
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID |
Responses
200 OK
[
{
"message_id": 213726,
"created_date": "2020-09-03T09:59:46",
"sender": "Joe Doe",
"description": "This is a test",
"description_html": "<p>This is a test</p>",
"status": "PACK",
"response_time": ""
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/alerts/{id}/messages" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Add a message to an alert (reply)
POST /api/v2/alerts/{id}/messages
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
message_text | string | Optional |
escalation_policy_id | integer | Optional |
response_play_id | integer | Optional |
recipients | array of objects | Optional |
recipients[].recipient_type | string | Optional |
recipients[].recipient_id | string | Optional |
Example body
{
"message_text": "string",
"escalation_policy_id": 0,
"response_play_id": 0,
"recipients": [
{
"recipient_type": "string",
"recipient_id": "string"
}
]
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/alerts/{id}/messages" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"message_text":"string","escalation_policy_id":0,"response_play_id":0,"recipients":[{"recipient_type":"string","recipient_id":"string"}]}'List notifications for an alert message
GET /api/v2/alerts/{id}/messages/{message_id}/notifications
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
message_id | integer | Required | Message ID |
Responses
200 OK
[
{
"recipient": "Joe Doe",
"recipient_id": 7777,
"recipient_type": "User",
"group_name": "CK Team",
"notifications": [
{
"date_sent": "2021-03-24T12:02:40",
"date_ack": "",
"status": "Sent",
"contact": "email@company.com",
"contact_data_type": "EMAIL",
"contact_type": "Email-Official"
}
]
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/alerts/{id}/messages/{message_id}/notifications" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"List notes for an alert
GET /api/v2/alerts/{id}/notes
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Responses
200 OK
[
{
"note_id": 1827,
"name": "Joe Doe",
"created_date": "2020-12-03T13:58:08",
"note": "Alert Test Note"
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/alerts/{id}/notes" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Add a note to an alert
POST /api/v2/alerts/{id}/notes
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
note | string | Optional |
Example body
{
"note": "string"
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/alerts/{id}/notes" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"note":"string"}'Update an alert note
PUT /api/v2/alerts/{id}/notes/{note_id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
note_id | integer | Required | The note ID. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
note | string | Optional |
Example body
{
"note": "string"
}Responses
204 No Content · The request was processed successfully. No response body is returned.
401 Unauthorized · missing or invalid api-key
Example request
curl -X PUT "https://api.alertops.com/api/v2/alerts/{id}/notes/{note_id}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"note":"string"}'Add action to an alert
POST /api/v2/alerts/{id}/outbound_action
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
action | string | Optional |
Example body
{
"action": "string"
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/alerts/{id}/outbound_action" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"action":"string"}'List alert outbound actions
GET /api/v2/alerts/{id}/outbound_actions
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Responses
200 OK
[
{
"id": 109,
"date": "2021-03-30T16:22:55",
"action": "JIRA OnDemand - POST Issue",
"uri": "https://gocybertalk.atlassian.net/rest/api/latest/issue/",
"content": "{ \"fields\": { \"project\": { \"key\": \"DEMO\" }, \"summary\": \"Test 8\", \"description\": \"test create 8\",\"issuetype\": { \"id\": \"3\" } } }"
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/alerts/{id}/outbound_actions" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Get alert postmortem
GET /api/v2/alerts/{id}/postmortem
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Responses
200 OK
{
"postmortem_id": 17,
"name": "Resolved",
"owner": "Joe Doe",
"status": "Published",
"impact_start": "2021-03-22T13:27:08",
"impact_end": "2021-03-26T14:11:27",
"duration": "4 days, 0 hours, 44 minutes",
"postmortem_fields": [
{
"postmortem_field_id": 163,
"postmortem_field_value": "None"
}
]
}401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/alerts/{id}/postmortem" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Create alert postmortem
POST /api/v2/alerts/{id}/postmortem
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
name | string | Optional |
status | string | Optional |
impact_start | string | Optional |
impact_end | string | Optional |
notify_subscribers | boolean | Required |
postmortem_fields | array of objects | Optional |
postmortem_fields[].postmortem_field_id | integer | Required |
postmortem_fields[].postmortem_field_value | string | Optional |
Example body
{
"name": "string",
"status": "string",
"impact_start": "string",
"impact_end": "string",
"notify_subscribers": true,
"postmortem_fields": [
{
"postmortem_field_id": 0,
"postmortem_field_value": "string"
}
]
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/alerts/{id}/postmortem" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"status": "string",
"impact_start": "string",
"impact_end": "string",
"notify_subscribers": true,
"postmortem_fields": [
{
"postmortem_field_id": 0,
"postmortem_field_value": "string"
}
]
}'Update alert postmortem
PUT /api/v2/alerts/{id}/postmortem/{postmortem_id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
postmortem_id | integer | Required | The postmortem ID. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
name | string | Optional |
status | string | Optional |
impact_start | string | Optional |
impact_end | string | Optional |
notify_subscribers | boolean | Required |
postmortem_fields | array of objects | Optional |
postmortem_fields[].postmortem_field_id | integer | Required |
postmortem_fields[].postmortem_field_value | string | Optional |
Example body
{
"name": "string",
"status": "string",
"impact_start": "string",
"impact_end": "string",
"notify_subscribers": true,
"postmortem_fields": [
{
"postmortem_field_id": 0,
"postmortem_field_value": "string"
}
]
}Responses
204 No Content · The request was processed successfully. No response body is returned.
401 Unauthorized · missing or invalid api-key
Example request
curl -X PUT "https://api.alertops.com/api/v2/alerts/{id}/postmortem/{postmortem_id}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"status": "string",
"impact_start": "string",
"impact_end": "string",
"notify_subscribers": true,
"postmortem_fields": [
{
"postmortem_field_id": 0,
"postmortem_field_value": "string"
}
]
}'List recipients for an alert
GET /api/v2/alerts/{id}/recipients
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Responses
200 OK
[
{
"user_id": 123,
"user_name": "username",
"first_name": "Joe",
"last_name": "Doe"
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/alerts/{id}/recipients" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Add recipients to an alert
POST /api/v2/alerts/{id}/recipients
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
cancel_notifications | boolean | Required |
recipients | array of objects | Optional |
recipients[].recipient_type | string | Optional |
recipients[].recipient | string | Optional |
recipients[].send_message | boolean | Required |
escalation_policy | string | Optional |
response_play | string | Optional |
Example body
{
"cancel_notifications": true,
"recipients": [
{
"recipient_type": "string",
"recipient": "string",
"send_message": true
}
],
"escalation_policy": "string",
"response_play": "string"
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/alerts/{id}/recipients" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"cancel_notifications": true,
"recipients": [
{
"recipient_type": "string",
"recipient": "string",
"send_message": true
}
],
"escalation_policy": "string",
"response_play": "string"
}'List timeline for an alert
GET /api/v2/alerts/{id}/timeline
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Responses
200 OK
[
{
"event_time": "2020-12-16 16:22:37",
"event_source": "Joe Doe",
"event_type": "Email-Official",
"event_details1": "Acknowledged",
"event_details2": "2020-12-21T14:37:01",
"event_details3": "EMAIL",
"event_category": "Notifications"
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/alerts/{id}/timeline" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Assign alerts in bulk
POST /api/v2/alerts/bulk_assign
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
user | string | Optional |
alerts | array of integers | Optional |
Example body
{
"user": "string",
"alerts": [
0
]
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/alerts/bulk_assign" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"user":"string","alerts":[0]}'Close alerts in bulk
POST /api/v2/alerts/bulk_close
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
user | string | Optional |
resolution | string | Optional |
alerts | array of integers | Optional |
Example body
{
"user": "string",
"resolution": "string",
"alerts": [
0
]
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/alerts/bulk_close" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"user":"string","resolution":"string","alerts":[0]}'Snooze an alert
POST /api/v2/alerts/{id}/snooze
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
snooze_hours | string | Optional |
Example body
{
"snooze_hours": "string"
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/alerts/{id}/snooze" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"snooze_hours":"string"}'Snooze an alert
PUT /api/v2/alerts/{id}/snooze
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Alert ID. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
snooze_hours | string | Optional |
Example body
{
"snooze_hours": "string"
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X PUT "https://api.alertops.com/api/v2/alerts/{id}/snooze" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"snooze_hours":"string"}'