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.
Endpoints
Section titled “Endpoints”| Method | Path | Description | Scope |
|---|---|---|---|
GET | /api/v1/schedules | List schedules. | schedules |
POST | /api/v1/schedules | Create. | 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-call | Who is on call right now. | schedules |
POST | /api/v1/schedules/{id}/overrides | Create a temporary override. | schedules |
DELETE | /api/v1/schedules/{id}/overrides/{overrideID} | Cancel an override. | schedules |
Schedule document
Section titled “Schedule document”{ "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.
Who’s on-call?
Section titled “Who’s on-call?”GET /api/v1/schedules/{id}/on-call answers for the current time. It takes no parameters.
{ "user_id": "3b0f6c1e-8d2a-4f7e-9c51-6a2e0d9b4f17", "override": false, "position": 1}| Field | Meaning |
|---|---|
user_id | The person on call. |
user_email | Their email, or their name when the organization shows names for on-call. |
override | true when an active override decides who is on call. |
position | Their place in the rotation. Present when override is false. |
reason | The 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"}.
Overrides
Section titled “Overrides”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.