On-call schedules¶
A schedule answers one question: who is on call right now. Escalation policies use that answer to page the right person (see Escalation).
On-call schedules are part of the free core. They never need a license.
How a schedule works¶
A schedule has a name, a timezone and one or more layers.
- A layer is one rotation. It hands the pager from member to member in fixed shifts, starting at its first handoff.
- The time of day of the first handoff is the handoff time for every shift. A layer that starts at
2026-11-02T09:00with 1-week shifts hands off every Monday at 09:00. - All layer times are wall-clock times in the schedule's timezone. Day and week shifts keep the same local handoff time across daylight saving changes, so a 1-day shift is 23 or 25 hours on those days. Hour shifts are fixed durations.
- If a handoff time does not exist on a spring-forward night (for example 02:30 in New York), the handoff happens at the first valid time after it.
- Layers are stacked. A higher layer wins wherever it has someone on call. Lower layers fill the gaps. The bottom layer is the base.
- A layer can be limited to some days of the week and a daily time window (for example Monday to Friday, 09:00 to 17:00). Outside that window the layer has nobody, but its rotation keeps counting.
- A layer can have an optional end. After it, the layer has nobody.
- An override puts one person on call for a window. It beats every layer. When two overrides overlap, the newest one wins.
- A member whose account is disabled or deleted counts as nobody. Their shifts fall to lower layers, or to nobody.
Limits¶
| What | Limit |
|---|---|
| Schedules per workspace | 100 |
| Layers per schedule | 10 |
| Members per layer | 50 (the same person can appear more than once) |
| Shift length | 1 hour to 365 days |
| Override length | 90 days |
| Upcoming overrides per schedule | 500 |
| Range of one shifts query | 93 days |
| Schedule name | 80 characters, unique in the workspace |
| Description | 500 characters |
| Layer name | 80 characters |
Who can do what¶
Anyone signed in can see schedules, who is on call, and their own calendar link. Creating, changing and deleting schedules and overrides needs the operator role or higher.
In the web app¶
Open On-Call in the navigation.
See who is on call now¶
The On call now panel lists every schedule with:
- On call: the person on call right now. An
overridetag shows the shift comes from an override.Nobodymeans there is a gap. - Until: when their stretch ends.
- Next: who takes over next, and when.
Click a row to open that schedule below.
Create a schedule¶
- Click New schedule.
- Fill in Name, pick a Timezone, and add an optional Description.
- In the layer box:
- Layer name: for example
Primary. - First handoff: the date and time of the first shift. Its time of day is the handoff time.
- Shift length: a number and a unit (
hours,daysorweeks). - Ends (optional): leave empty for a rotation with no end.
- Rotation order: pick a person and click Add. Repeat for each member. Use the arrows to change the order.
- To limit the layer to working hours, tick Only on some days / hours, pick the days and the window. An end time before the start time runs overnight.
- Layer name: for example
- To add another layer, click Add layer on top. The new layer wins over the layers below it wherever it has someone.
- Click Save schedule.
The times in the editor are read in the schedule's timezone, not your browser's.
Read the timeline¶
Below the table you see one schedule at a time, a week at a time. Use the arrows and This week to move. The dates in the header are in your browser's time.
- The On call row is the final answer: overrides, then layers, then gaps.
- One row per layer shows that layer's own rotation.
- If a member is disabled, a note says how many members are disabled and that their shifts fall to lower layers or nobody.
If the workspace has more than one schedule, pick it in the drop-down in the panel title. Edit and Delete change the selected schedule. A schedule that an escalation policy pages cannot be deleted until the policy stops using it. Editing a schedule keeps each layer's id, so overrides and history stay attached. .ics downloads the schedule as a calendar file (the last 7 days and the next 60 days).
Add an override¶
Under Overrides, pick Who, set From (your time) and To, and click Add override. The times here are in your browser's time. Remove an override with the cross at the end of its row.
Subscribe to your own shifts¶
The My on-call calendar panel gives you a private calendar link with your own shifts across every schedule.
- Click Create calendar link.
- Copy the address. It is shown only once. Anyone with it can see your shifts.
- Add it as a subscribed calendar in Google Calendar, Outlook or Apple Calendar.
The feed covers the last 7 days and the next 60 days. Each shift links back to the On-Call page.
To replace the link, click New link (old one stops working). To stop sharing, click Turn off. The link also stops working if your account is disabled.
API¶
All endpoints are under /api/v1 and take a bearer token (a session token or an API key) in the Authorization header. Errors come back as {"error": "...", "code": "..."}.
| Method and path | What it does | Role |
|---|---|---|
GET /api/v1/schedules |
List schedules ({"items": [...]}) |
any |
POST /api/v1/schedules |
Create a schedule | operator |
GET /api/v1/schedules/{id} |
Get one schedule | any |
PUT /api/v1/schedules/{id} |
Replace a schedule, including all its layers | operator |
DELETE /api/v1/schedules/{id} |
Delete a schedule | operator |
GET /api/v1/schedules/{id}/on-call?at= |
Who is on call at at (RFC 3339, default now), and who is next |
any |
GET /api/v1/schedules/{id}/shifts?from=&to= |
Final timeline and each layer's timeline (RFC 3339, at most 93 days) | any |
GET /api/v1/schedules/{id}/calendar.ics |
The schedule as an iCalendar file (−7 to +60 days) | any |
GET /api/v1/schedules/{id}/overrides |
List overrides | any |
POST /api/v1/schedules/{id}/overrides |
Add an override | operator |
PUT /api/v1/schedules/{id}/overrides/{override_id} |
Change an override | operator |
DELETE /api/v1/schedules/{id}/overrides/{override_id} |
Remove an override | operator |
GET /api/v1/on-call |
Who is on call now, for every schedule | any |
GET /api/v1/me/calendar-feed |
Whether you have a calendar link (active, created_at) |
any |
POST /api/v1/me/calendar-feed |
Create or replace your calendar link | any |
DELETE /api/v1/me/calendar-feed |
Turn your calendar link off | any |
GET /api/v1/calendar-feeds/{token}.ics |
The calendar feed itself. No sign-in: the token is the credential | none |
Schedule fields¶
| Field | Type | Notes |
|---|---|---|
name |
string | Required. |
timezone |
string | An IANA name such as Europe/Berlin. Empty means UTC. |
description |
string | Optional. |
layers |
array | 1 to 10 layers. The order matters: the last layer in the array is on top. |
Each layer:
| Field | Type | Notes |
|---|---|---|
name |
string | Optional. Defaults to Layer 1, Layer 2, ... |
start |
string | First handoff, wall time in the schedule zone: 2026-11-02T09:00. |
end |
string | Optional, same format. Must be after start. |
shift_length |
integer | 1 or more. |
shift_unit |
string | hours, days or weeks. |
members |
array of user ids | Rotation order. Every id must be a user of this workspace. |
restriction |
object | Optional: {"days": [1,2,3,4,5], "start": "09:00", "end": "17:00"}. Days are 0 (Sunday) to 6 (Saturday). An end at or before start runs overnight; start equal to end means the whole day. |
The server gives every layer a new id and a position on each save. You do not send them. A PUT replaces the whole schedule, so send every layer each time.
Example: a weekly rotation¶
First find the user ids. The directory needs the operator role:
curl -s https://argavon.com.com/api/v1/directory/users \
-H "Authorization: Bearer $NEUROOPS_TOKEN"
{"items": [
{"id": "USER_ID_ALICE", "email": "alice@example.com", "role": "operator", "reachable": true},
{"id": "USER_ID_BOB", "email": "bob@example.com", "role": "operator", "reachable": true},
{"id": "USER_ID_CAROL", "email": "carol@example.com", "role": "operator", "reachable": false}
]}
reachable tells you whether a page would reach that person (they have a notification rule on a verified contact method; see Notifications).
Then create a schedule where Alice, Bob and Carol take one week each, handing off on Mondays at 09:00 Berlin time:
curl -s -X POST https://argavon.com.com/api/v1/schedules \
-H "Authorization: Bearer $NEUROOPS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Platform primary",
"timezone": "Europe/Berlin",
"description": "Weekly rotation, handoff Monday 09:00",
"layers": [
{
"name": "Weekly",
"start": "2026-11-02T09:00",
"shift_length": 1,
"shift_unit": "weeks",
"members": ["USER_ID_ALICE", "USER_ID_BOB", "USER_ID_CAROL"]
}
]
}'
The answer is 201 Created with the stored schedule, including the new id and the layer ids.
To add a business-hours layer on top (for example a day-time engineer who takes pages Monday to Friday, 09:00 to 17:00), PUT the schedule with both layers, the base layer first:
"layers": [
{"name": "Weekly", "start": "2026-11-02T09:00", "shift_length": 1, "shift_unit": "weeks",
"members": ["USER_ID_ALICE", "USER_ID_BOB", "USER_ID_CAROL"]},
{"name": "Business hours", "start": "2026-11-02T09:00", "shift_length": 1, "shift_unit": "weeks",
"members": ["USER_ID_DAN"],
"restriction": {"days": [1, 2, 3, 4, 5], "start": "09:00", "end": "17:00"}}
]
Example: who is on call¶
curl -s https://argavon.com.com/api/v1/schedules/$SCHEDULE_ID/on-call \
-H "Authorization: Bearer $NEUROOPS_TOKEN"
{
"schedule_id": "...",
"schedule_name": "Platform primary",
"timezone": "Europe/Berlin",
"at": "2026-11-04T10:15:00Z",
"current": {
"user_id": "USER_ID_ALICE",
"email": "alice@example.com",
"source": "layer",
"layer_id": "lay-...",
"layer_name": "Weekly",
"since": "2026-11-02T08:00:00Z",
"until": "2026-11-09T08:00:00Z"
},
"next": {
"user_id": "USER_ID_BOB",
"email": "bob@example.com",
"source": "layer",
"layer_id": "lay-...",
"layer_name": "Weekly",
"since": "2026-11-09T08:00:00Z",
"until": "2026-11-16T08:00:00Z"
}
}
current is null when nobody is on call. next is null when nothing changes in the next 93 days. source is layer or override. Add ?at=2026-12-24T20:00:00Z to ask about another time.
GET /api/v1/on-call returns the same object for every schedule, in items.
Example: an override¶
Put Bob on call for a night, in UTC:
curl -s -X POST https://argavon.com.com/api/v1/schedules/$SCHEDULE_ID/overrides \
-H "Authorization: Bearer $NEUROOPS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"user_id": "USER_ID_BOB", "start": "2026-11-05T18:00:00Z", "end": "2026-11-06T06:00:00Z"}'
Override times are instants in RFC 3339, not wall times.
Example: your calendar link¶
curl -s -X POST https://argavon.com.com/api/v1/me/calendar-feed \
-H "Authorization: Bearer $NEUROOPS_TOKEN"
{"active": true, "path": "/api/v1/calendar-feeds/cal_....ics"}
The full address is your server plus path, for example https://argavon.com.com/api/v1/calendar-feeds/cal_....ics. The server only keeps a hash of the token, so this response is the only time you see it. Calling POST again replaces the link and the old one stops working.
If it does not work¶
| Message | What to do |
|---|---|
timezone must be an IANA name such as Europe/Berlin |
Use a name like America/New_York, not an abbreviation like EST. |
layer 1: time "..." must look like 2026-11-02T09:00 |
Layer start and end take a wall time with no seconds and no offset. |
layer 1: shift_unit must be hours, days or weeks |
Fix the unit. |
layer 1: shift length must be between 1 hour and 365 days |
Fix shift_length. |
layer 1: a layer needs at least one member |
Add a member. The web app says Every layer needs at least one member. |
layer 1: ... is not a user of this workspace |
Use ids from GET /api/v1/directory/users, not emails. |
layer 1: restriction days must be distinct numbers 0 (Sunday) to 6 (Saturday) |
Fix the restriction days. |
layer 1: time of day "..." must look like 09:00 |
Restriction times are HH:MM. |
a schedule named "..." already exists |
Names are unique in the workspace. |
a workspace can have at most 100 schedules |
Delete unused schedules. |
escalation policies page this schedule: .... Change them first |
A schedule that an escalation step pages cannot be deleted. Edit those policies to page someone else, then delete it. |
end is in the past / an override can be at most 90 days long |
Fix the override window. |
... is disabled |
You cannot give an override to a disabled user. |
from and to must be RFC 3339 times / a range can be at most 93 days |
Fix the shifts query. |
role '...' does not have permission; requires 'operator' or higher |
Ask an admin for the operator role. |
invalid request body |
The JSON is malformed or has a field the server does not know. |
Other checks:
- The On call now table shows
Nobody. There is a gap: a restriction window, a layer that has not started or has ended, or a disabled member. Add a base layer with no restriction, or an override. - Someone is on call but is not paged. A schedule only says who is on call. Paging needs an escalation policy that targets the schedule and a route that sends incidents to it (see Escalation), and the person needs a verified contact method with a notification rule (see Notifications).
- The calendar link returns
not found. The link was replaced or turned off, or the account is disabled. Create a new link. - Shifts are an hour off. Check the schedule timezone. Layer times are read in the schedule's timezone; override times in the web app are read in your browser's time.