On-Call API › Escalation policies
Get an escalation policy
GET/api/v1/escalation-policies/{id}
Returns one policy with its steps. A policy that belongs to a team is visible only to callers in that team (and to administrators acting in person); others get 404, as if it did not exist.
Permission (API-key scope): oncall:escalation:read.
Authorization
bearerAuth(oncall:escalation:read)apiKeyHeader(oncall:escalation:read)
Parameters
Path parameters
idstring requiredThe escalation policy's id.
Responses
200
The policy.
dataEscalationPolicy requiredShow EscalationPolicy properties
idstringorg_idstringteam_idstringnamestringdescriptionstringrepeat_countintegerrepeat_delay_minutesintegerrepeat_enabledbooleanack_timeout_minutesintegerEscalate again when an acknowledged alert stays unresolved this long; 0 is off.ack_timeout_repeatintegerHow many times that may happen per alert.ack_timeout_reachstringothersgoes past whoever acknowledged;acker_firstreminds them once first. Empty meansothers.stepsarray of EscalationStepShow EscalationStep properties
idstringpolicy_idstringstep_numberintegerdelay_minutesintegerWait before this step.target_typeEscalationTargetTypetarget_user_idstringtarget_schedule_idstringtarget_schedule_layer_idstringPage only this layer of the schedule.target_webhook_urlstringtarget_slack_channel_idstringA Slack channel this step also posts to.target_slack_channel_namestringtarget_chat_channel_idstringA Microsoft Teams channel this step also posts to.notify_methodNotifyMethodattemptsintegerHow many times the step notifies before the policy moves on.attempt_delay_minutesintegercreated_atstring (date-time)updated_atstring (date-time)
external_sourcestringexternal_idstringcreated_atstring (date-time)updated_atstring (date-time)
successboolean required
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
404
No escalation policy with this id in your organization (NOT_FOUND).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
429
Too many requests (RATE_LIMITED). Wait Retry-After seconds.
Retry-AfterintegerSeconds to wait.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
Example request
curl -X GET 'https://evohub.io/api/v1/escalation-policies/3f8a0b2c-4d6e-4f8a-b1c3-d5e7f9a1b3c5' \
-H 'Authorization: Bearer <TOKEN>'