Skip to content

Get current on-call duty

GET
/organizations/{org_id}/on-call/duty
curl --request GET \
--url https://api.perstat.io/organizations/example/on-call/duty \
--header 'Authorization: Bearer <token>'

Resolves who is currently on call for the organization from its rotation settings. Returns the user on duty, or a coverage gap flag when no rotation is configured or nobody is scheduled right now.

org_id
required
string
Media typeapplication/json
object
coverage_gap
required
boolean
current_duty_user_id
string | null
Examplegenerated
{
"coverage_gap": true,
"current_duty_user_id": "example"
}