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. Accepts API keys with the on-call:read scope, subject to current role and resource grants.

org_id
required
string

Request succeeded. The response body contains the result.

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

Authentication is missing or invalid.

The authenticated caller does not have permission to perform this operation.

No accessible resource matches the supplied identifier.