Escalation Policies API
The Escalation Policies API enables management of escalation rules, including their steps, recipients, outbound integrations, and associated workflows.
The Escalation Policies API enables management of escalation rules, including their steps, recipients, outbound integrations, and associated workflows.
| Base URL | https://api.alertops.com/api/v2 |
| Authentication | api-key request header |
| Endpoints | 37 |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/v2/escalation_policies | List escalation policies |
| POST | /api/v2/escalation_policies | Create an escalation policy |
| GET | /api/v2/escalation_policies/{id} | Get an escalation policy |
| PUT | /api/v2/escalation_policies/{id} | Update an escalation policy |
| DELETE | /api/v2/escalation_policies/{id} | Delete an escalation policy |
| GET | /api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods | List escalation policy group contact notifications contact methods |
| POST | /api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods | Create an escalation policy group contact notifications contact method |
| GET | /api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods/{contact_method_name} | Get an escalation policy group contact notifications contact method |
| PUT | /api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods/{contact_method_name} | Update an escalation policy group contact notifications contact method |
| DELETE | /api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods/{contact_method_name} | Delete an escalation policy group contact notifications contact method |
| GET | /api/v2/escalation_policies/{id}/member_roles | List an escalation policy member roles |
| POST | /api/v2/escalation_policies/{id}/member_roles | Create an escalation policy member role |
| GET | /api/v2/escalation_policies/{id}/member_roles/{member_role_type} | Get an escalation policy member role |
| PUT | /api/v2/escalation_policies/{id}/member_roles/{member_role_type} | Update an escalation policy member role |
| DELETE | /api/v2/escalation_policies/{id}/member_roles/{member_role_type} | Delete an escalation policy member role |
| GET | /api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods | List an escalation policy member role contact methods |
| POST | /api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods | Create an escalation policy member role contact method |
| GET | /api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods/{contact_method_name} | Get an escalation policy member role contact methods |
| PUT | /api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods/{contact_method_name} | Update an escalation policy member role contact method |
| DELETE | /api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods/{contact_method_name} | Delete an escalation policy member role contact method |
| PUT | /api/v2/escalation_policies/{id}/notify | Update escalation policy notification settings |
| GET | /api/v2/escalation_policies/{id}/options | List escalation policy options |
| PUT | /api/v2/escalation_policies/{id}/options | Update an escalation policy options |
| GET | /api/v2/escalation_policies/{id}/outbound_actions | List escalation policy outbound actions |
| POST | /api/v2/escalation_policies/{id}/outbound_actions | Add escalation policy outbound actions |
| DELETE | /api/v2/escalation_policies/{id}/outbound_actions | Delete escalation policy outbound actions |
| GET | /api/v2/escalation_policies/{id}/outbound_integrations | List escalation policy outbound integrations |
| POST | /api/v2/escalation_policies/{id}/outbound_integrations | Add escalation policy outbound integrations |
| DELETE | /api/v2/escalation_policies/{id}/outbound_integrations | Delete escalation policy outbound integrations |
| PUT | /api/v2/escalation_policies/{id}/outbound_integrations/{outbound_integration_id} | Update an escalation policy outbound integration |
| GET | /api/v2/escalation_policies/{id}/recipients | List escalation policy recipients |
| POST | /api/v2/escalation_policies/{id}/recipients | Add escalation policy recipients |
| DELETE | /api/v2/escalation_policies/{id}/recipients | Delete escalation policy recipients |
| PUT | /api/v2/escalation_policies/{id}/status | Change an escalation policy's status |
| GET | /api/v2/escalation_policies/{id}/workflows | List escalation policy workflows |
| POST | /api/v2/escalation_policies/{id}/workflows | Add escalation policy workflows |
| DELETE | /api/v2/escalation_policies/{id}/workflows | Delete escalation policy workflows |
List escalation policies
GET /api/v2/escalation_policies
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
search | string | Optional | |
enabled | boolean | Optional | Default is both Enabled & Disabled. Valid values are true, false and empty string. |
limit | integer | Optional | Page size. Default is 10. Max value for this parameter is 100. |
offset | integer | Optional | Default is 0. Offset to start pagination search results. |
sortDir | string | Optional | Default is asc. Eg. asc or desc. |
sortBy | string | Optional | Default is EscalationRule. Eg. EscalationRule or NotificationType or Priority. |
Responses
200 OK
{
"limit": 10,
"offset": 0,
"escalation_policies": [
{
"escalation_policy_id": 1001,
"escalation_policy_name": "Test Escalation Policy 1",
"description": "Test Description 1",
"priority": "Test Priority 1",
"enabled": true,
"quick_launch": true,
"notify_using_centralized_settings": true,
"is_used": true
},
{
"escalation_policy_id": 1002,
"escalation_policy_name": "Test Escalation Policy 2",
"description": "Test Description 2",
"priority": "Test Priority 2",
"enabled": true,
"quick_launch": true,
"notify_using_centralized_settings": false,
"is_used": false
}
]
}401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Create an escalation policy
POST /api/v2/escalation_policies
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
escalation_policy_name | string | Optional |
description | string | Optional |
priority | string | Optional |
enabled | boolean | Optional |
quick_launch | boolean | Optional |
notify_using_centralized_settings | boolean | Optional |
member_roles | array of objects | Optional |
member_roles[].member_role_type | string | Optional |
member_roles[].wait_time_between_members_in_mins | integer | Required |
member_roles[].role_wait_time_in_mins | integer | Optional |
member_roles[].no_of_retries | integer | Required |
member_roles[].retry_interval | integer | Required |
member_roles[].contact_methods | array of objects | Optional |
member_roles[].contact_methods[].contact_method_name | string | Optional |
member_roles[].contact_methods[].wait_time_in_mins | integer | Required |
member_roles[].contact_methods[].repeat | boolean | Required |
member_roles[].contact_methods[].repeat_times | integer | Required |
member_roles[].contact_methods[].repeat_minutes | integer | Required |
member_roles[].contact_methods[].to_bcc_or_cc | string | Optional |
member_roles[].contact_methods[].sequence | integer | Required |
wait_time_before_notifying_next_group_in_min | integer | Optional |
group_contact_notifications | object | Optional |
group_contact_notifications.contact_methods | array of objects | Optional |
group_contact_notifications.contact_methods[].contact_method_name | string | Optional |
group_contact_notifications.contact_methods[].wait_time_in_mins | integer | Required |
group_contact_notifications.contact_methods[].to_bcc_or_cc | string | Optional |
workflows | array of objects | Optional |
workflows[].workflow_id | integer | Required |
workflows[].workflow_name | string | Optional |
outbound_integrations | array of objects | Optional |
outbound_integrations[].outbound_integration_id | integer | Required |
outbound_integrations[].name | string | Optional |
outbound_integrations[].interval_in_sec | integer | Required |
outbound_integrations[].actions | array of objects | Optional |
outbound_integrations[].actions[].action_name | string | Optional |
outbound_integrations[].actions[].enabled | boolean | Required |
outbound_actions | array of objects | Optional |
outbound_actions[].action_id | integer | Required |
outbound_actions[].action_name | string | Optional |
options | object | Optional |
options.acknowledgement | object | Optional |
options.acknowledgement.phone | boolean | Required |
options.acknowledgement.sms | boolean | Required |
options.acknowledgement.email | boolean | Required |
options.acknowledgement.group_chat | boolean | Required |
options.assignment | object | Optional |
options.assignment.phone | boolean | Required |
options.assignment.sms | boolean | Required |
options.assignment.email | boolean | Required |
options.assignment.group_chat | boolean | Required |
options.escalate | object | Optional |
options.escalate.phone | boolean | Required |
options.escalate.sms | boolean | Required |
options.escalate.email | boolean | Required |
options.escalate.group_chat | boolean | Required |
options.close | object | Optional |
options.close.phone | boolean | Required |
options.close.sms | boolean | Required |
options.close.email | boolean | Required |
options.close.group_chat | boolean | Required |
options.notification_settings | object | Optional |
options.notification_settings.email | string | Optional |
options.notification_settings.phone | string | Optional |
options.notification_settings.sms | string | Optional |
options.escalation_policy_name_for_reply | string | Optional |
options.sla_in_hours | number | Required |
options.message_text | string | Optional |
options.include_alert_id_in_subject | boolean | Required |
options.one_email_per_message | boolean | Required |
options.one_message_per_recipient | boolean | Required |
options.sequence_group_first | boolean | Required |
options.alert_type | string | Optional |
options.recipients | array of objects | Optional |
options.recipients[].recipient_type_id | integer | Required |
options.recipients[].recipient_id | integer | Required |
options.recipients[].recipient_name | string | Optional |
Example body
{
"escalation_policy_name": "string",
"description": "string",
"priority": "string",
"enabled": true,
"quick_launch": true,
"notify_using_centralized_settings": true,
"member_roles": [
{
"member_role_type": "string",
"wait_time_between_members_in_mins": 0,
"role_wait_time_in_mins": 0,
"no_of_retries": 0,
"retry_interval": 0,
"contact_methods": [
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"repeat": true,
"repeat_times": 0,
"repeat_minutes": 0,
"to_bcc_or_cc": "string",
"sequence": 0
}
]
}
],
"wait_time_before_notifying_next_group_in_min": 0,
"group_contact_notifications": {
"contact_methods": [
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"to_bcc_or_cc": "string"
}
]
},
"workflows": [
{
"workflow_id": 0,
"workflow_name": "string"
}
],
"outbound_integrations": [
{
"outbound_integration_id": 0,
"name": "string",
"interval_in_sec": 0,
"actions": [
{
"action_name": "string",
"enabled": true
}
]
}
],
"outbound_actions": [
{
"action_id": 0,
"action_name": "string"
}
],
"options": {
"acknowledgement": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"assignment": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"escalate": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"close": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"notification_settings": {
"email": "string",
"phone": "string",
"sms": "string"
},
"escalation_policy_name_for_reply": "string",
"sla_in_hours": 0,
"message_text": "string",
"include_alert_id_in_subject": true,
"one_email_per_message": true,
"one_message_per_recipient": true,
"sequence_group_first": true,
"alert_type": "string",
"recipients": [
{
"recipient_type_id": 0,
"recipient_id": 0,
"recipient_name": "string"
}
]
}
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/escalation_policies" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"escalation_policy_name": "string",
"description": "string",
"priority": "string",
"enabled": true,
"quick_launch": true,
"notify_using_centralized_settings": true,
"member_roles": [
{
"member_role_type": "string",
"wait_time_between_members_in_mins": 0,
"role_wait_time_in_mins": 0,
"no_of_retries": 0,
"retry_interval": 0,
"contact_methods": [
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"repeat": true,
"repeat_times": 0,
"repeat_minutes": 0,
"to_bcc_or_cc": "string",
"sequence": 0
}
]
}
],
"wait_time_before_notifying_next_group_in_min": 0,
"group_contact_notifications": {
"contact_methods": [
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"to_bcc_or_cc": "string"
}
]
},
"workflows": [
{
"workflow_id": 0,
"workflow_name": "string"
}
],
"outbound_integrations": [
{
"outbound_integration_id": 0,
"name": "string",
"interval_in_sec": 0,
"actions": [
{
"action_name": "string",
"enabled": true
}
]
}
],
"outbound_actions": [
{
"action_id": 0,
"action_name": "string"
}
],
"options": {
"acknowledgement": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"assignment": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"escalate": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"close": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"notification_settings": {
"email": "string",
"phone": "string",
"sms": "string"
},
"escalation_policy_name_for_reply": "string",
"sla_in_hours": 0,
"message_text": "string",
"include_alert_id_in_subject": true,
"one_email_per_message": true,
"one_message_per_recipient": true,
"sequence_group_first": true,
"alert_type": "string",
"recipients": [
{
"recipient_type_id": 0,
"recipient_id": 0,
"recipient_name": "string"
}
]
}
}'Get an escalation policy
GET /api/v2/escalation_policies/{id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Responses
200 OK
{
"is_used": true,
"version": "1",
"escalation_policy_id": 12345,
"escalation_policy_name": "Escalation Policy Name",
"description": "Escalation Rule Description",
"priority": "Critical",
"enabled": true,
"quick_launch": false,
"notify_using_centralized_settings": true,
"member_roles": [
{
"member_role_type": "Primary",
"wait_time_between_members_in_mins": 5,
"no_of_retries": 10,
"retry_interval": 15,
"contact_methods": [
{
"contact_method_name": "SMS-Official",
"wait_time_in_mins": 10,
"repeat": true,
"repeat_times": 10,
"repeat_minutes": 10,
"to_bcc_or_cc": ""
}
]
},
{
"member_role_type": "Secondary",
"wait_time_between_members_in_mins": 20,
"no_of_retries": 20,
"retry_interval": 20,
"contact_methods": [
{
"contact_method_name": "Email-Official",
"wait_time_in_mins": 20,
"repeat": true,
"repeat_times": 20,
"repeat_minutes": 20,
"to_bcc_or_cc": "To"
}
]
}
],
"wait_time_before_notifying_next_group_in_min": 5,
"group_contact_notifications": {
"contact_methods": [
{
"contact_method_name": "Group Email",
"wait_time_in_mins": 10,
"to_bcc_or_cc": "To"
}
]
},
"workflows": [
{
"workflow_id": 2218,
"workflow_name": "Workflow Name 1"
},
{
"workflow_id": 1375,
"workflow_name": "Workflow Name 2"
}
],
"outbound_integrations": [
{
"outbound_integration_id": 2652,
"name": "Intergration System 1",
"interval_in_sec": 0,
"actions": [
{
"action_name": "POST Issue",
"enabled": false
},
{
"action_name": "RESOLVE Issue",
"enabled": false
},
{
"action_name": "PUT Issue",
"enabled": false
},
{
"action_name": "POST Issue Comment",
"enabled": false
},
{
"action_name": "POST Request",
"enabled": false
},
{
"action_name": "SOAP Test",
"enabled": false
}
]
}
],
"outbound_actions": [
{
"action_id": 597,
"outbound_action_name": "Integration System 1 OnDemand - POST Issue"
}
],
"options": {
"acknowledgement": null,
"assignment": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"escalate": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"close": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"notification_settings": {
"email": "AlertOps Email - Long Text",
"phone": "AlertOps VOIP - Long Text",
"sms": "sms"
},
"alert_type_id": 10,
"alert_type_name": "Standard Alert",
"escalation_policy_name_for_reply": "Business No Priority",
"sla_in_hours": 0,
"message_text": null,
"include_alert_id_in_subject": true,
"one_email_per_message": false,
"one_message_per_recipient": false,
"sequence_group_first": true,
"recipients": [
{
"recipient_type_id": 1,
"recipient_id": 124,
"recipient_name": "Group Name"
},
{
"recipient_type_id": 2,
"recipient_id": 4624,
"recipient_name": "Joe Doe"
}
]
}
}401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies/{id}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Update an escalation policy
PUT /api/v2/escalation_policies/{id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
escalation_policy_name | string | Optional |
description | string | Optional |
priority | string | Optional |
enabled | boolean | Optional |
quick_launch | boolean | Optional |
notify_using_centralized_settings | boolean | Optional |
member_roles | array of objects | Optional |
member_roles[].member_role_type | string | Optional |
member_roles[].wait_time_between_members_in_mins | integer | Required |
member_roles[].role_wait_time_in_mins | integer | Optional |
member_roles[].no_of_retries | integer | Required |
member_roles[].retry_interval | integer | Required |
member_roles[].contact_methods | array of objects | Optional |
member_roles[].contact_methods[].contact_method_name | string | Optional |
member_roles[].contact_methods[].wait_time_in_mins | integer | Required |
member_roles[].contact_methods[].repeat | boolean | Required |
member_roles[].contact_methods[].repeat_times | integer | Required |
member_roles[].contact_methods[].repeat_minutes | integer | Required |
member_roles[].contact_methods[].to_bcc_or_cc | string | Optional |
member_roles[].contact_methods[].sequence | integer | Required |
wait_time_before_notifying_next_group_in_min | integer | Optional |
group_contact_notifications | object | Optional |
group_contact_notifications.contact_methods | array of objects | Optional |
group_contact_notifications.contact_methods[].contact_method_name | string | Optional |
group_contact_notifications.contact_methods[].wait_time_in_mins | integer | Required |
group_contact_notifications.contact_methods[].to_bcc_or_cc | string | Optional |
workflows | array of objects | Optional |
workflows[].workflow_id | integer | Required |
workflows[].workflow_name | string | Optional |
outbound_integrations | array of objects | Optional |
outbound_integrations[].outbound_integration_id | integer | Required |
outbound_integrations[].name | string | Optional |
outbound_integrations[].interval_in_sec | integer | Required |
outbound_integrations[].actions | array of objects | Optional |
outbound_integrations[].actions[].action_name | string | Optional |
outbound_integrations[].actions[].enabled | boolean | Required |
outbound_actions | array of objects | Optional |
outbound_actions[].action_id | integer | Required |
outbound_actions[].action_name | string | Optional |
options | object | Optional |
options.acknowledgement | object | Optional |
options.acknowledgement.phone | boolean | Required |
options.acknowledgement.sms | boolean | Required |
options.acknowledgement.email | boolean | Required |
options.acknowledgement.group_chat | boolean | Required |
options.assignment | object | Optional |
options.assignment.phone | boolean | Required |
options.assignment.sms | boolean | Required |
options.assignment.email | boolean | Required |
options.assignment.group_chat | boolean | Required |
options.escalate | object | Optional |
options.escalate.phone | boolean | Required |
options.escalate.sms | boolean | Required |
options.escalate.email | boolean | Required |
options.escalate.group_chat | boolean | Required |
options.close | object | Optional |
options.close.phone | boolean | Required |
options.close.sms | boolean | Required |
options.close.email | boolean | Required |
options.close.group_chat | boolean | Required |
options.notification_settings | object | Optional |
options.notification_settings.email | string | Optional |
options.notification_settings.phone | string | Optional |
options.notification_settings.sms | string | Optional |
options.escalation_policy_name_for_reply | string | Optional |
options.sla_in_hours | number | Required |
options.message_text | string | Optional |
options.include_alert_id_in_subject | boolean | Required |
options.one_email_per_message | boolean | Required |
options.one_message_per_recipient | boolean | Required |
options.sequence_group_first | boolean | Required |
options.alert_type | string | Optional |
options.recipients | array of objects | Optional |
options.recipients[].recipient_type_id | integer | Required |
options.recipients[].recipient_id | integer | Required |
options.recipients[].recipient_name | string | Optional |
Example body
{
"escalation_policy_name": "string",
"description": "string",
"priority": "string",
"enabled": true,
"quick_launch": true,
"notify_using_centralized_settings": true,
"member_roles": [
{
"member_role_type": "string",
"wait_time_between_members_in_mins": 0,
"role_wait_time_in_mins": 0,
"no_of_retries": 0,
"retry_interval": 0,
"contact_methods": [
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"repeat": true,
"repeat_times": 0,
"repeat_minutes": 0,
"to_bcc_or_cc": "string",
"sequence": 0
}
]
}
],
"wait_time_before_notifying_next_group_in_min": 0,
"group_contact_notifications": {
"contact_methods": [
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"to_bcc_or_cc": "string"
}
]
},
"workflows": [
{
"workflow_id": 0,
"workflow_name": "string"
}
],
"outbound_integrations": [
{
"outbound_integration_id": 0,
"name": "string",
"interval_in_sec": 0,
"actions": [
{
"action_name": "string",
"enabled": true
}
]
}
],
"outbound_actions": [
{
"action_id": 0,
"action_name": "string"
}
],
"options": {
"acknowledgement": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"assignment": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"escalate": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"close": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"notification_settings": {
"email": "string",
"phone": "string",
"sms": "string"
},
"escalation_policy_name_for_reply": "string",
"sla_in_hours": 0,
"message_text": "string",
"include_alert_id_in_subject": true,
"one_email_per_message": true,
"one_message_per_recipient": true,
"sequence_group_first": true,
"alert_type": "string",
"recipients": [
{
"recipient_type_id": 0,
"recipient_id": 0,
"recipient_name": "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/escalation_policies/{id}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"escalation_policy_name": "string",
"description": "string",
"priority": "string",
"enabled": true,
"quick_launch": true,
"notify_using_centralized_settings": true,
"member_roles": [
{
"member_role_type": "string",
"wait_time_between_members_in_mins": 0,
"role_wait_time_in_mins": 0,
"no_of_retries": 0,
"retry_interval": 0,
"contact_methods": [
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"repeat": true,
"repeat_times": 0,
"repeat_minutes": 0,
"to_bcc_or_cc": "string",
"sequence": 0
}
]
}
],
"wait_time_before_notifying_next_group_in_min": 0,
"group_contact_notifications": {
"contact_methods": [
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"to_bcc_or_cc": "string"
}
]
},
"workflows": [
{
"workflow_id": 0,
"workflow_name": "string"
}
],
"outbound_integrations": [
{
"outbound_integration_id": 0,
"name": "string",
"interval_in_sec": 0,
"actions": [
{
"action_name": "string",
"enabled": true
}
]
}
],
"outbound_actions": [
{
"action_id": 0,
"action_name": "string"
}
],
"options": {
"acknowledgement": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"assignment": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"escalate": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"close": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"notification_settings": {
"email": "string",
"phone": "string",
"sms": "string"
},
"escalation_policy_name_for_reply": "string",
"sla_in_hours": 0,
"message_text": "string",
"include_alert_id_in_subject": true,
"one_email_per_message": true,
"one_message_per_recipient": true,
"sequence_group_first": true,
"alert_type": "string",
"recipients": [
{
"recipient_type_id": 0,
"recipient_id": 0,
"recipient_name": "string"
}
]
}
}'Delete an escalation policy
DELETE /api/v2/escalation_policies/{id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The escalation policy ID. |
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 DELETE "https://api.alertops.com/api/v2/escalation_policies/{id}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"List escalation policy group contact notifications contact methods
GET /api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Responses
200 OK
[
{
"contact_method_name": "Group Email",
"wait_time_in_mins": 10,
"to_bcc_or_cc": "To"
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Create an escalation policy group contact notifications contact method
POST /api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
contact_method_name | string | Optional |
wait_time_in_mins | integer | Required |
to_bcc_or_cc | string | Optional |
Example body
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"to_bcc_or_cc": "string"
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"contact_method_name":"string","wait_time_in_mins":0,"to_bcc_or_cc":"string"}'Get an escalation policy group contact notifications contact method
GET /api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods/{contact_method_name}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
contact_method_name | string | Required | The contact method name. |
Responses
200 OK
{
"contact_method_name": "Group Email",
"wait_time_in_mins": 10,
"to_bcc_or_cc": "To"
}401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods/{contact_method_name}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Update an escalation policy group contact notifications contact method
PUT /api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods/{contact_method_name}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
contact_method_name | string | Required | The contact method name. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
wait_time_in_mins | integer | Required |
to_bcc_or_cc | string | Optional |
Example body
{
"wait_time_in_mins": 0,
"to_bcc_or_cc": "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/escalation_policies/{id}/group_contact_notifications/contact_methods/{contact_method_name}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"wait_time_in_mins":0,"to_bcc_or_cc":"string"}'Delete an escalation policy group contact notifications contact method
DELETE /api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods/{contact_method_name}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
contact_method_name | string | Required | The contact method name. |
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 DELETE "https://api.alertops.com/api/v2/escalation_policies/{id}/group_contact_notifications/contact_methods/{contact_method_name}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"List an escalation policy member roles
GET /api/v2/escalation_policies/{id}/member_roles
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The escalation policy ID. |
Responses
200 OK
{
"notify_using_centralized_settings": false,
"member_roles": [
{
"member_role_type": "Primary",
"wait_time_between_members_in_mins": 5,
"no_of_retries": 10,
"retry_interval": 15,
"contact_methods": [
{
"contact_method_name": "SMS-Official",
"wait_time_in_mins": 10,
"repeat": true,
"repeat_times": 10,
"repeat_minutes": 10,
"to_bcc_or_cc": ""
}
]
},
{
"member_role_type": "Secondary",
"wait_time_between_members_in_mins": 20,
"no_of_retries": 20,
"retry_interval": 20,
"contact_methods": [
{
"contact_method_name": "Email-Official",
"wait_time_in_mins": 20,
"repeat": true,
"repeat_times": 20,
"repeat_minutes": 20,
"to_bcc_or_cc": "To"
}
]
}
]
}401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies/{id}/member_roles" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Create an escalation policy member role
POST /api/v2/escalation_policies/{id}/member_roles
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The escalation policy ID. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
member_role_type | string | Optional |
wait_time_between_members_in_mins | integer | Required |
role_wait_time_in_mins | integer | Optional |
no_of_retries | integer | Required |
retry_interval | integer | Required |
contact_methods | array of objects | Optional |
contact_methods[].contact_method_name | string | Optional |
contact_methods[].wait_time_in_mins | integer | Required |
contact_methods[].repeat | boolean | Required |
contact_methods[].repeat_times | integer | Required |
contact_methods[].repeat_minutes | integer | Required |
contact_methods[].to_bcc_or_cc | string | Optional |
contact_methods[].sequence | integer | Required |
Example body
{
"member_role_type": "string",
"wait_time_between_members_in_mins": 0,
"role_wait_time_in_mins": 0,
"no_of_retries": 0,
"retry_interval": 0,
"contact_methods": [
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"repeat": true,
"repeat_times": 0,
"repeat_minutes": 0,
"to_bcc_or_cc": "string",
"sequence": 0
}
]
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/escalation_policies/{id}/member_roles" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"member_role_type": "string",
"wait_time_between_members_in_mins": 0,
"role_wait_time_in_mins": 0,
"no_of_retries": 0,
"retry_interval": 0,
"contact_methods": [
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"repeat": true,
"repeat_times": 0,
"repeat_minutes": 0,
"to_bcc_or_cc": "string",
"sequence": 0
}
]
}'Get an escalation policy member role
GET /api/v2/escalation_policies/{id}/member_roles/{member_role_type}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The escalation policy ID. |
member_role_type | string | Required | The member role type. |
Responses
200 OK
{
"member_role_type": "Primary",
"wait_time_between_members_in_mins": 5,
"no_of_retries": 10,
"retry_interval": 15,
"contact_methods": [
{
"contact_method_name": "SMS-Official",
"wait_time_in_mins": 10,
"repeat": true,
"repeat_times": 10,
"repeat_minutes": 10,
"to_bcc_or_cc": ""
}
]
}401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies/{id}/member_roles/{member_role_type}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Update an escalation policy member role
PUT /api/v2/escalation_policies/{id}/member_roles/{member_role_type}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
member_role_type | string | Required | The member role type. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
wait_time_between_members_in_mins | integer | Required |
role_wait_time_in_mins | integer | Optional |
no_of_retries | integer | Required |
retry_interval | integer | Required |
contact_methods | array of objects | Optional |
contact_methods[].contact_method_name | string | Optional |
contact_methods[].wait_time_in_mins | integer | Required |
contact_methods[].repeat | boolean | Required |
contact_methods[].repeat_times | integer | Required |
contact_methods[].repeat_minutes | integer | Required |
contact_methods[].to_bcc_or_cc | string | Optional |
contact_methods[].sequence | integer | Required |
Example body
{
"wait_time_between_members_in_mins": 0,
"role_wait_time_in_mins": 0,
"no_of_retries": 0,
"retry_interval": 0,
"contact_methods": [
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"repeat": true,
"repeat_times": 0,
"repeat_minutes": 0,
"to_bcc_or_cc": "string",
"sequence": 0
}
]
}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/escalation_policies/{id}/member_roles/{member_role_type}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"wait_time_between_members_in_mins": 0,
"role_wait_time_in_mins": 0,
"no_of_retries": 0,
"retry_interval": 0,
"contact_methods": [
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"repeat": true,
"repeat_times": 0,
"repeat_minutes": 0,
"to_bcc_or_cc": "string",
"sequence": 0
}
]
}'Delete an escalation policy member role
DELETE /api/v2/escalation_policies/{id}/member_roles/{member_role_type}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The escalation policy ID. |
member_role_type | string | Required | The member role type. |
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 DELETE "https://api.alertops.com/api/v2/escalation_policies/{id}/member_roles/{member_role_type}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"List an escalation policy member role contact methods
GET /api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The escalation policy ID. |
member_role_type | string | Required | The member role type. |
Responses
200 OK
[
{
"contact_method_name": "Email-Official",
"wait_time_in_mins": 0,
"repeat": false,
"repeat_times": 0,
"repeat_minutes": 0,
"to_bcc_or_cc": "To"
},
{
"contact_method_name": "SMS-Official",
"wait_time_in_mins": 10,
"repeat": true,
"repeat_times": 10,
"repeat_minutes": 10,
"to_bcc_or_cc": ""
},
{
"contact_method_name": "Push Notification",
"wait_time_in_mins": 10,
"repeat": true,
"repeat_times": 10,
"repeat_minutes": 10,
"to_bcc_or_cc": ""
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Create an escalation policy member role contact method
POST /api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The escalation policy ID. |
member_role_type | string | Required | The member role type. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
contact_method_name | string | Optional |
wait_time_in_mins | integer | Required |
repeat | boolean | Required |
repeat_times | integer | Required |
repeat_minutes | integer | Required |
to_bcc_or_cc | string | Optional |
sequence | integer | Required |
Example body
{
"contact_method_name": "string",
"wait_time_in_mins": 0,
"repeat": true,
"repeat_times": 0,
"repeat_minutes": 0,
"to_bcc_or_cc": "string",
"sequence": 0
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"contact_method_name":"string","wait_time_in_mins":0,"repeat":true,"repeat_times":0,"repeat_minutes":0,"to_bcc_or_cc":"string","sequence":0}'Get an escalation policy member role contact methods
GET /api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods/{contact_method_name}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The escalation policy ID. |
member_role_type | string | Required | The member role type. |
contact_method_name | string | Required | The contact method name. |
Responses
200 OK
{
"contact_method_name": "SMS-Official",
"wait_time_in_mins": 10,
"repeat": true,
"repeat_times": 10,
"repeat_minutes": 10,
"to_bcc_or_cc": ""
}401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods/{contact_method_name}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Update an escalation policy member role contact method
PUT /api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods/{contact_method_name}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
member_role_type | string | Required | The member role type. |
contact_method_name | string | Required | The contact method name. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
wait_time_in_mins | integer | Required |
repeat | boolean | Required |
repeat_times | integer | Required |
repeat_minutes | integer | Required |
to_bcc_or_cc | string | Optional |
sequence | integer | Required |
Example body
{
"wait_time_in_mins": 0,
"repeat": true,
"repeat_times": 0,
"repeat_minutes": 0,
"to_bcc_or_cc": "string",
"sequence": 0
}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/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods/{contact_method_name}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"wait_time_in_mins":0,"repeat":true,"repeat_times":0,"repeat_minutes":0,"to_bcc_or_cc":"string","sequence":0}'Delete an escalation policy member role contact method
DELETE /api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods/{contact_method_name}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The escalation policy ID. |
member_role_type | string | Required | The member role type. |
contact_method_name | string | Required | The contact method name. |
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 DELETE "https://api.alertops.com/api/v2/escalation_policies/{id}/member_roles/{member_role_type}/contact_methods/{contact_method_name}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Update escalation policy notification settings
PUT /api/v2/escalation_policies/{id}/notify
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
notify_using_centralized_settings | boolean | Required |
Example body
{
"notify_using_centralized_settings": true
}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/escalation_policies/{id}/notify" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"notify_using_centralized_settings":true}'List escalation policy options
GET /api/v2/escalation_policies/{id}/options
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Responses
200 OK
{
"alert_type_id": 10,
"alert_type_name": "Standard Alert",
"acknowledgement": null,
"assignment": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"escalate": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"close": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"notification_settings": {
"email": "AlertOps Email - Long Text",
"phone": "AlertOps VOIP - Long Text",
"sms": "SMS"
},
"escalation_policy_name_for_reply": "Business No Priority",
"sla_in_hours": 0,
"message_text": null,
"include_alert_id_in_subject": true,
"one_email_per_message": false,
"one_message_per_recipient": false,
"sequence_group_first": true,
"recipients": [
{
"recipient_type_id": 2,
"recipient_id": 4621,
"recipient_name": "Joe Doe"
}
]
}401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies/{id}/options" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Update an escalation policy options
PUT /api/v2/escalation_policies/{id}/options
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
acknowledgement | object | Optional |
acknowledgement.phone | boolean | Required |
acknowledgement.sms | boolean | Required |
acknowledgement.email | boolean | Required |
acknowledgement.group_chat | boolean | Required |
assignment | object | Optional |
assignment.phone | boolean | Required |
assignment.sms | boolean | Required |
assignment.email | boolean | Required |
assignment.group_chat | boolean | Required |
escalate | object | Optional |
escalate.phone | boolean | Required |
escalate.sms | boolean | Required |
escalate.email | boolean | Required |
escalate.group_chat | boolean | Required |
close | object | Optional |
close.phone | boolean | Required |
close.sms | boolean | Required |
close.email | boolean | Required |
close.group_chat | boolean | Required |
notification_settings | object | Optional |
notification_settings.email | string | Optional |
notification_settings.phone | string | Optional |
notification_settings.sms | string | Optional |
escalation_policy_name_for_reply | string | Optional |
sla_in_hours | number | Required |
message_text | string | Optional |
include_alert_id_in_subject | boolean | Required |
one_email_per_message | boolean | Required |
one_message_per_recipient | boolean | Required |
sequence_group_first | boolean | Required |
alert_type | string | Optional |
Example body
{
"acknowledgement": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"assignment": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"escalate": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"close": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"notification_settings": {
"email": "string",
"phone": "string",
"sms": "string"
},
"escalation_policy_name_for_reply": "string",
"sla_in_hours": 0,
"message_text": "string",
"include_alert_id_in_subject": true,
"one_email_per_message": true,
"one_message_per_recipient": true,
"sequence_group_first": true,
"alert_type": "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/escalation_policies/{id}/options" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"acknowledgement": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"assignment": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"escalate": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"close": {
"phone": true,
"sms": true,
"email": true,
"group_chat": true
},
"notification_settings": {
"email": "string",
"phone": "string",
"sms": "string"
},
"escalation_policy_name_for_reply": "string",
"sla_in_hours": 0,
"message_text": "string",
"include_alert_id_in_subject": true,
"one_email_per_message": true,
"one_message_per_recipient": true,
"sequence_group_first": true,
"alert_type": "string"
}'List escalation policy outbound actions
GET /api/v2/escalation_policies/{id}/outbound_actions
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Responses
200 OK
[
{
"action_id": 597,
"action_name": "Outbound Action"
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies/{id}/outbound_actions" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Add escalation policy outbound actions
POST /api/v2/escalation_policies/{id}/outbound_actions
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
Example body
[
{
"outbound_action_id": "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 POST "https://api.alertops.com/api/v2/escalation_policies/{id}/outbound_actions" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '[{"outbound_action_id":"string"}]'Delete escalation policy outbound actions
DELETE /api/v2/escalation_policies/{id}/outbound_actions
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
Example body
[
{
"action_id": 0
}
]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 DELETE "https://api.alertops.com/api/v2/escalation_policies/{id}/outbound_actions" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '[{"action_id":0}]'List escalation policy outbound integrations
GET /api/v2/escalation_policies/{id}/outbound_integrations
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Responses
200 OK
[
{
"outbound_integration_id": 2652,
"name": "Intergration System 1",
"interval_in_sec": 0,
"actions": []
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies/{id}/outbound_integrations" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Add escalation policy outbound integrations
POST /api/v2/escalation_policies/{id}/outbound_integrations
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
Example body
[
{
"outbound_integration_id": 0
}
]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 POST "https://api.alertops.com/api/v2/escalation_policies/{id}/outbound_integrations" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '[{"outbound_integration_id":0}]'Delete escalation policy outbound integrations
DELETE /api/v2/escalation_policies/{id}/outbound_integrations
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
Example body
[
{
"outbound_integration_id": 0
}
]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 DELETE "https://api.alertops.com/api/v2/escalation_policies/{id}/outbound_integrations" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '[{"outbound_integration_id":0}]'Update an escalation policy outbound integration
PUT /api/v2/escalation_policies/{id}/outbound_integrations/{outbound_integration_id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
outbound_integration_id | integer | Required | The outbound integration ID. |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
interval_in_sec | integer | Required |
actions | array of objects | Optional |
actions[].action_name | string | Optional |
actions[].enabled | boolean | Required |
Example body
{
"interval_in_sec": 0,
"actions": [
{
"action_name": "string",
"enabled": true
}
]
}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/escalation_policies/{id}/outbound_integrations/{outbound_integration_id}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"interval_in_sec":0,"actions":[{"action_name":"string","enabled":true}]}'List escalation policy recipients
GET /api/v2/escalation_policies/{id}/recipients
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Responses
200 OK
[
{
"escalation_policy_recipient_id": 2657,
"recipient_type_id": 2,
"recipient_id": 4621,
"recipient_name": "Joe Doe"
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies/{id}/recipients" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Add escalation policy recipients
POST /api/v2/escalation_policies/{id}/recipients
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
Example body
[
{
"recipient_type_id": 0,
"recipient_id": 0
}
]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 POST "https://api.alertops.com/api/v2/escalation_policies/{id}/recipients" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '[{"recipient_type_id":0,"recipient_id":0}]'Delete escalation policy recipients
DELETE /api/v2/escalation_policies/{id}/recipients
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
Example body
[
{
"escalation_policy_recipient_id": 0
}
]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 DELETE "https://api.alertops.com/api/v2/escalation_policies/{id}/recipients" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '[{"escalation_policy_recipient_id":0}]'Change an escalation policy's status
PUT /api/v2/escalation_policies/{id}/status
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
enabled | boolean | Required |
Example body
{
"enabled": true
}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/escalation_policies/{id}/status" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"enabled":true}'List escalation policy workflows
GET /api/v2/escalation_policies/{id}/workflows
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Responses
200 OK
[
{
"workflow_id": 2218,
"workflow_name": "Cancel User deliveries on Ack",
"workflow_type_id": 10,
"workflow_type_name": "DeliveryAttempt"
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/escalation_policies/{id}/workflows" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Add escalation policy workflows
POST /api/v2/escalation_policies/{id}/workflows
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
Example body
[
{
"workflow_id": 0
}
]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 POST "https://api.alertops.com/api/v2/escalation_policies/{id}/workflows" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '[{"workflow_id":0}]'Delete escalation policy workflows
DELETE /api/v2/escalation_policies/{id}/workflows
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Escalation Policy ID or Escalation Policy Name |
Request body
JSON object (required).
Example body
[
{
"workflow_id": 0
}
]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 DELETE "https://api.alertops.com/api/v2/escalation_policies/{id}/workflows" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '[{"workflow_id":0}]'