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

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 URLhttps://api.alertops.com/api/v2
Authenticationapi-key request header
Endpoints25

Endpoints

MethodPathDescription
GET/api/v2/alertsList alerts
POST/api/v2/alertsCreate an alert
GET/api/v2/alerts/{id}Get an alert
PUT/api/v2/alerts/{id}Update an alert
PUT/api/v2/alerts/{id}/alert_fieldsUpdate alert fields
POST/api/v2/alerts/{id}/assignAssign an alert
POST/api/v2/alerts/{id}/closeClose an alert
GET/api/v2/alerts/{id}/messagesList messages for an alert
POST/api/v2/alerts/{id}/messagesAdd a message to an alert (reply)
GET/api/v2/alerts/{id}/messages/{message_id}/notificationsList notifications for an alert message
GET/api/v2/alerts/{id}/notesList notes for an alert
POST/api/v2/alerts/{id}/notesAdd a note to an alert
PUT/api/v2/alerts/{id}/notes/{note_id}Update an alert note
POST/api/v2/alerts/{id}/outbound_actionAdd action to an alert
GET/api/v2/alerts/{id}/outbound_actionsList alert outbound actions
GET/api/v2/alerts/{id}/postmortemGet alert postmortem
POST/api/v2/alerts/{id}/postmortemCreate alert postmortem
PUT/api/v2/alerts/{id}/postmortem/{postmortem_id}Update alert postmortem
GET/api/v2/alerts/{id}/recipientsList recipients for an alert
POST/api/v2/alerts/{id}/recipientsAdd recipients to an alert
GET/api/v2/alerts/{id}/timelineList timeline for an alert
POST/api/v2/alerts/bulk_assignAssign alerts in bulk
POST/api/v2/alerts/bulk_closeClose alerts in bulk
POST/api/v2/alerts/{id}/snoozeSnooze an alert
PUT/api/v2/alerts/{id}/snoozeSnooze an alert

List alerts

GET /api/v2/alerts

Query parameters

NameTypeRequiredDescription
limitstringOptionalPage size. Default is 10. Max value for this parameter is 100.
previousstringOptionalDefault is null
nextstringOptionalDefault is null
createdFromstringOptionalDefault 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'.
createdTostringOptionalDefault 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'.
integrationstringOptionalDefault is empty. Eg. RTestule1, TestRule2
slastringOptionalDefault is empty. Eg. Yes or No.
sourcestringOptionalDefault is empty.
sourceNamestringOptionalDefault is empty.
sourceIDstringOptionalDefault is empty.
alertIDstringOptionalDefault is empty.
viewBystringOptionalDefault is U. Eg. U or A or G.
groupstringOptionalDefault is empty. Eg. GroupName1, GroupName2
escalationPolicystringOptionalDefault is empty. Eg. Policy1, Policy2
senderstringOptionalDefault is empty. Eg. jdoe, 1234
closedFromstringOptionalDefault is empty. closedFrom and closedTo date range must not exceed 6 months. Date Format 'yyyy-MM-dd'.
closedTostringOptionalDefault is empty. closedFrom and closedTo date range must not exceed 6 months. Date Format 'yyyy-MM-dd'.
ownerstringOptionalDefault is empty. Eg. jdoe, 1234
topicstringOptionalDefault is empty. Eg. TopicName, TestTopic
prioritystringOptionalDefault is empty. Eg. No Priority or Critical or High or Medium or Low.
statusstringOptionalDefault is empty. Eg. Assigned or Cancelled or Closed or On Hold or Open.
technicalServicesstringOptionalfilter Services Integrations
includeIntegrationsbooleanOptionalindicated to get Integration Default: True
includeServiceIntegrationsbooleanOptionalindicated to get Service Integration Default: True
includeIncidentbooleanOptionalDefault is false
includeEscalationPolicybooleanOptionalindicated to get Escalation Policy Default: True
includeResponsePlaybooleanOptionalindicated 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).

FieldTypeRequired
escalation_policystringOptional
response_playstringOptional
prioritystringOptional
sourcestringOptional
source_namestringOptional
source_idstringOptional
source_urlstringOptional
topicstringOptional
subjectstringOptional
descriptionstringOptional
bridgestringOptional
is_incidentbooleanRequired
alert_tagsobjectOptional
alert_tags.business_servicestringOptional
alert_tags.component_typestringOptional
alert_tags.component_namestringOptional
alert_tags.data_centerstringOptional
alert_tags.environmentstringOptional
alert_tags.problem_typestringOptional
alert_fieldsarray of objectsOptional
alert_fields[].alert_field_idintegerRequired
alert_fields[].alert_field_valuestringOptional
recipientsarray of objectsOptional
recipients[].recipient_typestringOptional
recipients[].recipient_idstringOptional
attachmentsarray of objectsOptional
attachments[].file_namestringOptional
attachments[].contentstringOptional
technical_servicesarray of integersOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert 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

NameTypeRequiredDescription
idintegerRequiredAlert ID

Request body

JSON object (required).

FieldTypeRequired
sourcestringOptional
source_namestringOptional
source_idstringOptional
source_urlstringOptional
statusstringOptional
ownerstringOptional
resolutionstringOptional
alert_tagsobjectOptional
alert_tags.business_servicestringOptional
alert_tags.component_typestringOptional
alert_tags.component_namestringOptional
alert_tags.data_centerstringOptional
alert_tags.environmentstringOptional
alert_tags.problem_typestringOptional
alert_fieldsarray of objectsOptional
alert_fields[].alert_field_idintegerRequired
alert_fields[].alert_field_valuestringOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert 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

NameTypeRequiredDescription
idintegerRequiredAlert ID.

Request body

JSON object (required).

FieldTypeRequired
userstringOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert ID.

Request body

JSON object (required).

FieldTypeRequired
userstringOptional
resolutionstringOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert 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

NameTypeRequiredDescription
idintegerRequiredAlert ID.

Request body

JSON object (required).

FieldTypeRequired
message_textstringOptional
escalation_policy_idintegerOptional
response_play_idintegerOptional
recipientsarray of objectsOptional
recipients[].recipient_typestringOptional
recipients[].recipient_idstringOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert ID.
message_idintegerRequiredMessage 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

NameTypeRequiredDescription
idintegerRequiredAlert 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

NameTypeRequiredDescription
idintegerRequiredAlert ID.

Request body

JSON object (required).

FieldTypeRequired
notestringOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert ID.
note_idintegerRequiredThe note ID.

Request body

JSON object (required).

FieldTypeRequired
notestringOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert ID.

Request body

JSON object (required).

FieldTypeRequired
actionstringOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert 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

NameTypeRequiredDescription
idintegerRequiredAlert 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

NameTypeRequiredDescription
idintegerRequiredAlert ID.

Request body

JSON object (required).

FieldTypeRequired
namestringOptional
statusstringOptional
impact_startstringOptional
impact_endstringOptional
notify_subscribersbooleanRequired
postmortem_fieldsarray of objectsOptional
postmortem_fields[].postmortem_field_idintegerRequired
postmortem_fields[].postmortem_field_valuestringOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert ID.
postmortem_idintegerRequiredThe postmortem ID.

Request body

JSON object (required).

FieldTypeRequired
namestringOptional
statusstringOptional
impact_startstringOptional
impact_endstringOptional
notify_subscribersbooleanRequired
postmortem_fieldsarray of objectsOptional
postmortem_fields[].postmortem_field_idintegerRequired
postmortem_fields[].postmortem_field_valuestringOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert 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

NameTypeRequiredDescription
idintegerRequiredAlert ID

Request body

JSON object (required).

FieldTypeRequired
cancel_notificationsbooleanRequired
recipientsarray of objectsOptional
recipients[].recipient_typestringOptional
recipients[].recipientstringOptional
recipients[].send_messagebooleanRequired
escalation_policystringOptional
response_playstringOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert 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).

FieldTypeRequired
userstringOptional
alertsarray of integersOptional

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).

FieldTypeRequired
userstringOptional
resolutionstringOptional
alertsarray of integersOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert ID.

Request body

JSON object (required).

FieldTypeRequired
snooze_hoursstringOptional

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

NameTypeRequiredDescription
idintegerRequiredAlert ID.

Request body

JSON object (required).

FieldTypeRequired
snooze_hoursstringOptional

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"}'