Skip to content

Schedules & On-Call

An on-call schedule maps a time-series onto a rotating set of users. Escalation-policy steps reference schedules; at dispatch time, the schedule resolves to whoever is on-call right now.

MethodPathDescriptionScope
GET/api/v1/schedulesList schedules.schedules
POST/api/v1/schedulesCreate.schedules
GET/api/v1/schedules/{id}Read.schedules
PATCH/api/v1/schedules/{id}Update (metadata + layers).schedules
DELETE/api/v1/schedules/{id}Delete. Fails if referenced by a policy.schedules
GET/api/v1/schedules/{id}/on-callWho is on call right now.schedules
POST/api/v1/schedules/{id}/overridesCreate a temporary override.schedules
DELETE/api/v1/schedules/{id}/overrides/{overrideID}Cancel an override.schedules
{
"id": "01HXSCHED...",
"name": "Platform primary",
"timezone": "America/Los_Angeles",
"layers": [
{
"name": "Weekday business hours",
"rotation_type": "weekly",
"start_at": "2026-01-06T09:00:00-08:00",
"handoff_time": "Mon 09:00",
"participants": ["usr_alice", "usr_bob", "usr_carol"],
"restrictions": [
{
"days": ["mon", "tue", "wed", "thu", "fri"],
"start": "09:00",
"end": "17:00"
}
]
},
{
"name": "After-hours",
"rotation_type": "daily",
"participants": ["usr_dave", "usr_eve"]
}
]
}

Layers are evaluated top-to-bottom at the at timestamp; the first matching layer wins. A restriction-less layer is the catch-all fallback.

GET /api/v1/schedules/{id}/on-call answers for the current time. It takes no parameters.

{
"user_id": "3b0f6c1e-8d2a-4f7e-9c51-6a2e0d9b4f17",
"user_email": "[email protected]",
"override": false,
"position": 1
}
FieldMeaning
user_idThe person on call.
user_emailTheir email, or their name when the organization shows names for on-call.
overridetrue when an active override decides who is on call.
positionTheir place in the rotation. Present when override is false.
reasonThe override’s reason. Present when override is true.

If the schedule’s team has no members, the endpoint returns 404 with {"error": "no team members found"}.

POST /api/v1/schedules/{id}/overrides
{
"user_id": "usr_frank",
"start_at": "2026-04-25T00:00:00Z",
"end_at": "2026-04-25T08:00:00Z",
"reason": "Alice PTO; covering."
}

Overrides take precedence over the layer rotation for the overlap window. Call DELETE to cancel before the override ends.