Reference · API v1

TeamPager API

Read who is on call, acknowledge and resolve pages, and manage boards, people and heartbeats from a script, Terraform or an AI agent. Every endpoint, with a curl you can paste.

For tools and agents: the OpenAPI 3.1 description, also served at https://api.teampager.io/v1/openapi.json. Using Claude, Cursor or VS Code? Connect it over MCP.

On this page

Quick start

  1. In the app, an owner opens Organization → Integrations → API keys and creates a key. It is shown once: copy it.
  2. Export it with the API address:
    export TEAMPAGER_API=https://api.teampager.io/v1
    export TEAMPAGER_API_KEY=tpk_…
  3. Ask who is on call:
    curl "$TEAMPAGER_API/on-call" \
      -H "Authorization: Bearer $TEAMPAGER_API_KEY"

The examples below use shell variables for ids ($BOARD_ID, $PERSON_ID, $ALERT_ID…). Read them from the lists: GET /v1/boards, GET /v1/people, GET /v1/alerts.

Authentication

Send the key on every request: Authorization: Bearer tpk_…. A key belongs to the organization, not to the person who created it. What it changes is signed with its name in Activity (“terraform (API key)”).

Keep keys on servers and in secret stores, never in a web page. Roll a key to replace it without downtime (the old one works for 24 hours), or revoke it at once if it leaked.

Access

AccessWhat the key can do
ReadEvery GET: on call, boards, chains, people and their channels, time off, pages, heartbeats. Changes nothing.
Respond to pagesRead, plus acknowledge, resolve and reopen pages. For an assistant or agent that handles pages.
Read and writeEverything: page someone, boards and rotas, escalation chains, time off and coverage, people, channels, mutes, heartbeats.

A key can't touch billing, company sign-in (SSO), directory sync (SCIM), alert secrets, Slack, or other API keys; it can't remove people, invite anyone, change roles or delete boards. Phone numbers come back masked (+1 ••• ••• 0344), and a heartbeat's ping URL is shown once, when the key creates it.

Limits

60 requests a minute per key and 120 for the whole organization; a write counts as two. Over that, the answer is 429 rate_limited with Retry-After in seconds. Every answer carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.

Up to 10 active keys per organization. These limits are the same on every plan. Plan limits — people on rotas, boards, pages a month, heartbeats — apply exactly as in the app, and the error says which one was hit.

Retries

Send Idempotency-Key: <any unique string> on a POST. Sending the same request again within 24 hours returns the first answer, marked Idempotent-Replayed: true, instead of doing it twice: a retried page never wakes anyone twice. The same key with a different body is 422 idempotency_key_reused. PUT, PATCH and DELETE are safe to repeat as they are.

Errors

{
  "error": {
    "code": "insufficient_scope",
    "message": "This API key can't do that. …",
    "requestId": "…",
    "details": {"required": "write"}
  }
}

Branch on code; the message is for people. Each endpoint lists its own codes.

StatusCodeMeaning
400invalid_json, unknown_fields, invalid_…The body or a parameter is wrong. details names the field when it can.
401unauthorizedThe key is missing, mistyped, revoked or expired.
403insufficient_scopeThe key's access is too narrow for this operation. details.required says which access it needs.
403quota_members, quota_schedules, quota_alertsA plan limit. details has limit and used.
404not_foundNothing with that id in your organization.
409already_muted, already_resolved, not_acked, …The action doesn't fit the current state.
409 / 422idempotency_in_flight, idempotency_key_reusedAn Idempotency-Key is still running, or was used with another body.
429rate_limitedToo many requests. Wait Retry-After seconds.
500 / 503internal_errorSomething went wrong on our side. Retry in a moment; if it lasts, send requestId to support.

On call

Who has the pager.

GET /v1/on-call

Who is on call right now on every board, and who is next. The quickest answer to "who do I call?": one entry per board, one line per rota.

Access: Read — any key

Response 200

Who is on call on every board. Returns {"data": [ … ]}, a list of OnCall.

curl "$TEAMPAGER_API/on-call" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 429 rate_limited

GET /v1/boards/{id}/on-call

Who is on call on this board right now, until when, and who is next.

Access: Read — any key

Parameters

FieldTypeDescription
id requiredpath, stringBoard id.

Response 200

Who is on call on this board. Returns OnCall.

curl "$TEAMPAGER_API/boards/$BOARD_ID/on-call" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 404 not_found
  • 429 rate_limited

Pages

Pages (alerts): list, acknowledge, resolve, reopen, or page someone.

GET /v1/alerts

List pages, newest first. Without status, returns the pages that still need someone (open and acked).

Access: Read — any key

Parameters

FieldTypeDescription
statusquery, stringactive (default: open and acked), all, or a comma-separated list of open, acked, resolved.
limitquery, integer 1–1001 to 100, default 50.
cursorquery, stringnextCursor from the previous response.

Response 200

Pages, newest first. Returns AlertList.

curl "$TEAMPAGER_API/alerts?status=all&limit=5" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 400 invalid_status, invalid_cursor
  • 401 unauthorized
  • 429 rate_limited

GET /v1/alerts/{id}

One page and its state.

Access: Read — any key

Parameters

FieldTypeDescription
id requiredpath, stringPage id.

Response 200

The page. Returns Alert.

curl "$TEAMPAGER_API/alerts/$ALERT_ID" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 404 not_found
  • 429 rate_limited

POST /v1/alerts/{id}/ack

Acknowledge a page: escalation stops. Signed with the key's name; the page shows "Acked through the API." Acknowledging twice is not an error.

Access: Respond to pages · Accepts Idempotency-Key

Parameters

FieldTypeDescription
id requiredpath, stringPage id.

Response 200

The page, acknowledged. Returns Alert.

curl -X POST "$TEAMPAGER_API/alerts/$ALERT_ID/ack" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 400 invalid_json, unknown_fields
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 409 idempotency_in_flight, already_resolved
  • 422 idempotency_key_reused
  • 429 rate_limited

POST /v1/alerts/{id}/resolve

Resolve a page: it is over.

Access: Respond to pages · Accepts Idempotency-Key

Parameters

FieldTypeDescription
id requiredpath, stringPage id.

Response 200

The page, resolved. Returns Alert.

curl -X POST "$TEAMPAGER_API/alerts/$ALERT_ID/resolve" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 400 invalid_json, unknown_fields
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 409 idempotency_in_flight
  • 422 idempotency_key_reused
  • 429 rate_limited

POST /v1/alerts/{id}/reopen

Undo an acknowledgement: the page is open again. Only an acknowledged page can be reopened. Escalation picks up at the next step, timed from now; people already paged aren't paged again.

Access: Respond to pages · Accepts Idempotency-Key

Parameters

FieldTypeDescription
id requiredpath, stringPage id.

Response 200

The page, open again. Returns Alert.

curl -X POST "$TEAMPAGER_API/alerts/$ALERT_ID/reopen" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 400 invalid_json, unknown_fields
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 409 idempotency_in_flight, not_acked, already_resolved
  • 422 idempotency_key_reused
  • 429 rate_limited

POST /v1/pages

Page whoever is on call on a board now, like Page now in the app. Counts toward the monthly page quota. Send an Idempotency-Key so a retry never pages twice.

Access: Read and write · Accepts Idempotency-Key

Body

FieldTypeDescription
title requiredstringWhat's wrong, as the person on call will read it. 1–500 characters.
boardId requiredstringThe board whose on-call person is paged.

Response 202

Accepted: the page goes out within seconds. Returns PageAccepted.

curl -X POST "$TEAMPAGER_API/pages" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Idempotency-Key: disk-full-db-1" \
  -H "Content-Type: application/json" \
  -d @- <<EOF
{"title":"Disk full on db-1","boardId":"$BOARD_ID"}
EOF
Errors
  • 400 invalid_json, unknown_fields, summary_required, summary_too_long, invalid_schedule_id, unknown_schedule
  • 401 unauthorized
  • 403 insufficient_scope, quota_alerts
  • 409 idempotency_in_flight
  • 422 idempotency_key_reused
  • 429 rate_limited

Boards

Boards (on-call schedules), their rotas, coverage and escalation chains.

GET /v1/boards

List the boards (schedules) with their rotas and who is on call now.

Access: Read — any key

Response 200

Every board. Returns {"data": [ … ]}, a list of Board.

curl "$TEAMPAGER_API/boards" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 429 rate_limited

POST /v1/boards

Create a board with its first rota (members are person ids, in order).

Access: Read and write · Accepts Idempotency-Key

Body

FieldTypeDescription
name requiredstring 1–200 characters.
timezonestringIANA time zone. Default: the organization's.
members requiredstring[]People who take turns, in order. At least one.
handoverobject
handover.weekdayinteger 0–60 = Monday … 6 = Sunday.
handover.timestringHH:MM, local.
slotUnit"week" | "day" | "hours_12" | "hours_8"Default week.

Response 201

The new board. Returns BoardDetail.

curl -X POST "$TEAMPAGER_API/boards" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d @- <<EOF
{"name":"Platform","timezone":"America/Toronto","members":["$PERSON_ID"],"handover":{"weekday":0,"time":"09:00"},"slotUnit":"week"}
EOF
Errors
  • 400 invalid_json, unknown_fields, invalid_name, invalid_members, invalid_handover, invalid_timezone, invalid_slot_unit, invalid_handover_weekday, invalid_handover_time
  • 401 unauthorized
  • 403 insufficient_scope, quota_schedules, quota_members
  • 409 idempotency_in_flight
  • 422 idempotency_key_reused
  • 429 rate_limited

GET /v1/boards/{id}

One board: rotas, absences and the upcoming slots (forecast). Use a slot's startsAt to change who covers it.

Access: Read — any key

Parameters

FieldTypeDescription
id requiredpath, stringBoard id.

Response 200

The board. Returns BoardDetail.

curl "$TEAMPAGER_API/boards/$BOARD_ID" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 404 not_found
  • 429 rate_limited

PATCH /v1/boards/{id}

Rename, pause or resume a board, or change a rota's members, timezone, handover or slot length. Send only what changes. members, handover and slotUnit apply to rotaId (default: the first rota). Slots already planned keep their person; use coverage to change one slot.

Access: Read and write

Parameters

FieldTypeDescription
id requiredpath, stringBoard id.

Body

FieldTypeDescription
namestring 1–200 characters.
timezonestring
membersstring[]Replaces the rota's members, in order.
handoverobject
handover.weekdayinteger 0–6
handover.timestring
slotUnit"week" | "day" | "hours_12" | "hours_8"
pausedbooleantrue pauses the board: it pages nobody.
rotaIdstring

Response 200

The board, updated. Returns BoardDetail.

curl -X PATCH "$TEAMPAGER_API/boards/$BOARD_ID" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Platform on call"}'
Errors
  • 400 invalid_json, unknown_fields, empty_patch, invalid_members, empty_rota, band_not_found
  • 401 unauthorized
  • 403 insufficient_scope, quota_members
  • 404 not_found
  • 429 rate_limited

GET /v1/boards/{id}/chain

The escalation chain of each rota on this board: who is paged next if nobody acknowledges.

Access: Read — any key

Parameters

FieldTypeDescription
id requiredpath, stringBoard id.

Response 200

The escalation chain of each rota. Returns Chain.

curl "$TEAMPAGER_API/boards/$BOARD_ID/chain" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 404 not_found
  • 429 rate_limited

PUT /v1/boards/{id}/chain

Replace the escalation chain of one rota. Step 1 is always whoever is on call; send the steps after it (0 to 3). Escalation stops after the last one. An empty or unreachable step stops the chain: it never jumps ahead.

Access: Read and write

Parameters

FieldTypeDescription
id requiredpath, stringBoard id.

Body

FieldTypeDescription
rotaIdstringDefault: the first rota.
steps requiredobject[]0 to 3 steps, in order.
steps[].targetKind required"next_on_rota" | "person" | "everyone_else" | "one_by_one"
steps[].personIdstringRequired for person, refused otherwise.
steps[].waitMinutes2 | 5 | 10 | 15 | 30 or nullNull = the board's default.

Response 200

The chain, as stored. Returns Chain.

curl -X PUT "$TEAMPAGER_API/boards/$BOARD_ID/chain" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"steps":[{"targetKind":"next_on_rota","waitMinutes":5},{"targetKind":"everyone_else","waitMinutes":10}]}'
Errors
  • 400 invalid_json, unknown_fields, invalid_steps, chain_too_long, invalid_target_kind, invalid_target_person, invalid_wait_minutes, duplicate_target, unknown_person, band_not_found
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 429 rate_limited

POST /v1/boards/{id}/coverage

Change who covers a slot: cover, swap, skip or move. Refused if the person is away. cover: personId takes slotStart. skip: the slot becomes a hole. swap / move: exchange slotStart with otherSlotStart. Slot times come from upcoming in GET /v1/boards/{id}.

Access: Read and write · Accepts Idempotency-Key

Parameters

FieldTypeDescription
id requiredpath, stringBoard id.

Body

FieldTypeDescription
kind required"cover" | "swap" | "skip" | "move"
slotStart requireddate-timestartsAt of the slot to change.
otherSlotStartdate-timeFor swap and move.
personIdstringFor cover.
rotaIdstringDefault: the first rota.

Response 200

The board, with the change. Returns BoardDetail.

curl -X POST "$TEAMPAGER_API/boards/$BOARD_ID/coverage" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d @- <<EOF
{"kind":"cover","slotStart":"$SLOT_START","personId":"$PERSON_ID"}
EOF
Errors
  • 400 invalid_json, unknown_fields, invalid_kind, slot_required, slot_not_in_window, slot_in_past, slot_b_required, cover_user_required, both_slots_gaps
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 409 idempotency_in_flight, cover_user_away
  • 422 idempotency_key_reused
  • 429 rate_limited

Time off

Absences: the person's slots become holes, nothing slides.

GET /v1/absences

Absences that apply to every board. Absences on a single board are in GET /v1/boards/{id}.

Access: Read — any key

Response 200

Organization-wide absences. Returns {"data": [ … ]}, a list of OrgAbsence.

curl "$TEAMPAGER_API/absences" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 429 rate_limited

POST /v1/boards/{id}/absences

Mark someone away on this board between two dates. Their slots become holes; nothing slides.

Access: Read and write · Accepts Idempotency-Key

Parameters

FieldTypeDescription
id requiredpath, stringBoard id.

Body

FieldTypeDescription
personId requiredstring
startDate requireddateFirst day away, YYYY-MM-DD, in the board's time zone.
endDate requireddateLast day away, inclusive. At most 26 weeks after the start.

Response 201

The board, with the absence. Returns BoardDetail.

curl -X POST "$TEAMPAGER_API/boards/$BOARD_ID/absences" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d @- <<EOF
{"personId":"$PERSON_ID","startDate":"2027-01-04","endDate":"2027-01-08"}
EOF
Errors
  • 400 invalid_json, unknown_fields, invalid_person_id, invalid_dates
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 409 idempotency_in_flight
  • 422 idempotency_key_reused
  • 429 rate_limited

POST /v1/boards/{id}/absences/{absenceId}/cancel

Cancel an absence on this board.

Access: Read and write · Accepts Idempotency-Key

Parameters

FieldTypeDescription
id requiredpath, stringBoard id.
absenceId requiredpath, stringAbsence id (from GET /v1/boards/{id}).

Response 200

The board, without the absence. Returns BoardDetail.

curl -X POST "$TEAMPAGER_API/boards/$BOARD_ID/absences/$ABSENCE_ID/cancel" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 400 invalid_json, unknown_fields
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 409 idempotency_in_flight
  • 422 idempotency_key_reused
  • 429 rate_limited

People

The directory, how we reach each person, and mutes.

GET /v1/people

List the people in the organization.

Access: Read — any key

Parameters

FieldTypeDescription
includeRemovedquery, "true" | "false"true to include people who left.

Response 200

The directory. Returns {"data": [ … ]}, a list of Person.

curl "$TEAMPAGER_API/people" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 429 rate_limited

POST /v1/people

Add a person to the directory. They can go on rotas and be paged. Nobody is invited, no email is sent, and they get no login. email and mobile become their first channels.

Access: Read and write · Accepts Idempotency-Key

Body

FieldTypeDescription
name requiredstring 1–120 characters.
emailstringBecomes their first email channel.
mobilestringE.164, e.g. +14165550123. Becomes an unverified SMS channel.

Response 201

The new person. Returns Person.

curl -X POST "$TEAMPAGER_API/people" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Sam Rivera","email":"sam@example.com"}'
Errors
  • 400 invalid_json, unknown_fields, invalid_display_name
  • 401 unauthorized
  • 403 insufficient_scope
  • 409 idempotency_in_flight
  • 422 idempotency_key_reused
  • 429 rate_limited

GET /v1/people/{personId}

One person and how we reach them (phone numbers are masked).

Access: Read — any key

Parameters

FieldTypeDescription
personId requiredpath, stringPerson id (from GET /v1/people).

Response 200

The person and their channels. Returns PersonDetail.

curl "$TEAMPAGER_API/people/$PERSON_ID" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 404 not_found
  • 429 rate_limited

PATCH /v1/people/{personId}

Rename a person.

Access: Read and write

Parameters

FieldTypeDescription
personId requiredpath, stringPerson id (from GET /v1/people).

Body

FieldTypeDescription
name requiredstring 1–120 characters.

Response 200

The person, renamed. Returns Person.

curl -X PATCH "$TEAMPAGER_API/people/$PERSON_ID" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Sam Rivera-Ortiz"}'
Errors
  • 400 invalid_json, unknown_fields, invalid_name, invalid_display_name
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 429 rate_limited

GET /v1/people/{personId}/channels

How we reach this person, in order (phone numbers are masked).

Access: Read — any key

Parameters

FieldTypeDescription
personId requiredpath, stringPerson id (from GET /v1/people).

Response 200

Their channels. Returns {"data": [ … ]}, a list of Channel.

curl "$TEAMPAGER_API/people/$PERSON_ID/channels" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 404 not_found
  • 429 rate_limited

POST /v1/people/{personId}/channels

Add an email, SMS or voice channel. A phone stays unverified until the person enters the code in the app. SMS is coming soon: texts don't page anyone yet; voice calls do.

Access: Read and write · Accepts Idempotency-Key

Parameters

FieldTypeDescription
personId requiredpath, stringPerson id (from GET /v1/people).

Body

FieldTypeDescription
kind required"email" | "sms" | "voice"
address requiredstringEmail address, or phone number in E.164.
rung1 | 2 | 3Default: 1 for email, 2 for SMS, 3 for voice.
ttsLocale"en-US" | "fr-FR"Voice only: the language the call speaks. Default en-US.

Response 201

The channel. A phone is unverified until the person enters the code in the app. Returns Channel.

curl -X POST "$TEAMPAGER_API/people/$PERSON_ID/channels" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"voice","address":"+14165550123"}'
Errors
  • 400 invalid_json, unknown_fields, invalid_kind, invalid_address, invalid_tts_locale
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 409 idempotency_in_flight, channel_exists
  • 422 idempotency_key_reused
  • 429 rate_limited

POST /v1/people/{personId}/mute

Mute a person for a while, or until someone unmutes them. A muted person's steps are skipped right away and the page goes to the next step. Give one of minutes, endsAt or until: "unmute".

Access: Read and write · Accepts Idempotency-Key

Parameters

FieldTypeDescription
personId requiredpath, stringPerson id (from GET /v1/people).

Body

FieldTypeDescription
minutesinteger 1–43200
endsAtdate-timeWithin 30 days.
until"unmute"No end: muted until someone unmutes. Shows a banner to the whole organization.
reasonstring up to 200 characters.

Response 201

The mute. Returns MuteState.

curl -X POST "$TEAMPAGER_API/people/$PERSON_ID/mute" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"minutes":60,"reason":"On a flight"}'
Errors
  • 400 invalid_json, unknown_fields, mute_end_required, invalid_mute_end, invalid_reason
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 409 idempotency_in_flight, already_muted
  • 422 idempotency_key_reused
  • 429 rate_limited

PATCH /v1/people/{personId}/mute

Change when a mute ends. minutes extends from the current end; endsAt sets a new end; until: "unmute" removes the end.

Access: Read and write

Parameters

FieldTypeDescription
personId requiredpath, stringPerson id (from GET /v1/people).

Body

FieldTypeDescription
minutesinteger 1–43200
endsAtdate-time
until"unmute"

Response 200

The mute, with its new end. Returns MuteState.

curl -X PATCH "$TEAMPAGER_API/people/$PERSON_ID/mute" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"minutes":30}'
Errors
  • 400 invalid_json, unknown_fields, mute_end_required, invalid_mute_end
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found, not_muted
  • 429 rate_limited

DELETE /v1/people/{personId}/mute

Unmute a person. Unmuting someone who isn't muted is not an error.

Access: Read and write

Parameters

FieldTypeDescription
personId requiredpath, stringPerson id (from GET /v1/people).

Response 204

Unmuted. No body.

curl -X DELETE "$TEAMPAGER_API/people/$PERSON_ID/mute" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 429 rate_limited

DELETE /v1/people/{personId}/channels/{channelId}

Remove a channel.

Access: Read and write

Parameters

FieldTypeDescription
personId requiredpath, stringPerson id (from GET /v1/people).
channelId requiredpath, stringChannel id.

Response 204

Removed. No body.

curl -X DELETE "$TEAMPAGER_API/people/$PERSON_ID/channels/$CHANNEL_ID" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 429 rate_limited

Heartbeats

Pages when a job stops checking in.

GET /v1/heartbeats

List heartbeats and their state. The ping URL is never returned after creation.

Access: Read — any key

Response 200

Every heartbeat. Returns {"data": [ … ]}, a list of Heartbeat.

curl "$TEAMPAGER_API/heartbeats" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 429 rate_limited

POST /v1/heartbeats

Create a heartbeat. The ping URL is in this response only. Save it: it can't be read again. A retry with the same Idempotency-Key answers 409 already_created, without the URL.

Access: Read and write · Accepts Idempotency-Key

Body

FieldTypeDescription
name requiredstring 1–80 characters.
intervalMinutes requiredinteger 1–10080How often your job pings.
graceMinutes requiredinteger 1–1440Extra time before we page.
boardIdstring or nullBoard to page. Default: the organization's default board.

Response 201

The heartbeat and its ping URL (once). Returns HeartbeatCreated.

curl -X POST "$TEAMPAGER_API/heartbeats" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"nightly-backup","intervalMinutes":1440,"graceMinutes":60}'
Errors
  • 400 invalid_json, unknown_fields, invalid_name, invalid_interval, invalid_grace, invalid_schedule_id
  • 401 unauthorized
  • 403 insufficient_scope
  • 409 idempotency_in_flight, limit_reached, already_created
  • 422 idempotency_key_reused
  • 429 rate_limited

GET /v1/heartbeats/{id}

One heartbeat and its state.

Access: Read — any key

Parameters

FieldTypeDescription
id requiredpath, stringHeartbeat id.

Response 200

The heartbeat. Returns Heartbeat.

curl "$TEAMPAGER_API/heartbeats/$HEARTBEAT_ID" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 404 not_found
  • 429 rate_limited

PATCH /v1/heartbeats/{id}

Rename, pause, resume or retime a heartbeat.

Access: Read and write

Parameters

FieldTypeDescription
id requiredpath, stringHeartbeat id.

Body

FieldTypeDescription
namestring 1–80 characters.
intervalMinutesinteger 1–10080
graceMinutesinteger 1–1440
boardIdstring or null
pausedbooleantrue pauses it: silence pages nobody.

Response 200

The heartbeat, updated. Returns Heartbeat.

curl -X PATCH "$TEAMPAGER_API/heartbeats/$HEARTBEAT_ID" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"paused":true}'
Errors
  • 400 invalid_json, unknown_fields, invalid_name, invalid_interval, invalid_grace, invalid_paused, invalid_schedule_id
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 429 rate_limited

DELETE /v1/heartbeats/{id}

Delete a heartbeat. Deleting twice is not an error.

Access: Read and write

Parameters

FieldTypeDescription
id requiredpath, stringHeartbeat id.

Response 204

Deleted. No body.

curl -X DELETE "$TEAMPAGER_API/heartbeats/$HEARTBEAT_ID" \
  -H "Authorization: Bearer $TEAMPAGER_API_KEY"
Errors
  • 401 unauthorized
  • 403 insufficient_scope
  • 404 not_found
  • 429 rate_limited

Objects

What the endpoints return. Lists are {"data": [ … ]}.

OnCall

Who has the pager on a board, until when, and who is next.

FieldTypeDescription
boardobject
board.idstring
board.namestring
board.timezonestring
board.pausedboolean
atdate-timeWhen this answer was computed.
rotasobject[]
rotas[].idstring
rotas[].namestring or null
rotas[].onCallobject or nullA person, or null when nobody is assigned.
rotas[].onCall.personIdstringPerson id.
rotas[].onCall.namestring or nullDisplay name.
rotas[].onCallUntildate-time or null
rotas[].pagingboolean
rotas[].pagingChangesAtdate-time or null
rotas[].nextobject or nullThe next different person on call, or null if nobody is planned.
rotas[].next.personIdstring
rotas[].next.namestring or null
rotas[].next.fromdate-timeWhen they take over.

Board

A board (an on-call schedule) and its rotas.

FieldTypeDescription
idstringBoard id.
namestring
timezonestringIANA time zone, e.g. America/Toronto.
pausedbooleanA paused board pages nobody.
slotUnit"week" | "day" | "hours_12" | "hours_8"Length of one on-call slot.
handoverobject
handover.weekdayinteger 0–60 = Monday … 6 = Sunday.
handover.timestringLocal time, HH:MM.
rotasRota[]
createdAtdate-time
updatedAtdate-time

BoardDetail

A board with its absences and the coming slots (the forecast).

FieldTypeDescription
idstringBoard id.
namestring
timezonestringIANA time zone, e.g. America/Toronto.
pausedbooleanA paused board pages nobody.
slotUnit"week" | "day" | "hours_12" | "hours_8"Length of one on-call slot.
handoverobject
handover.weekdayinteger 0–60 = Monday … 6 = Sunday.
handover.timestringLocal time, HH:MM.
rotasRota[]
createdAtdate-time
updatedAtdate-time
absencesobject[]
absences[].idstringAbsence id. Use it to cancel.
absences[].personIdstring
absences[].startsAtdate-time
absences[].endsAtdate-timeExclusive.
absences[].scope"board" | "org"org applies to every board.
upcomingobject[]
upcoming[].rotaIdstring
upcoming[].slotsSlot[]Current and coming slots, in order.

Rota

A rota: who takes turns, and who has the pager now.

FieldTypeDescription
idstringRota id (a board has one or two rotas).
namestring or null
membersRotaMember[]In rotation order.
onCallobject or nullA person, or null when nobody is assigned.
onCall.personIdstringPerson id.
onCall.namestring or nullDisplay name.
onCallUntildate-time or nullEnd of the current slot.
pagingbooleanTrue when this rota pages right now (its paging window is open).
pagingChangesAtdate-time or nullWhen paging flips next.
nextobject or nullThe next different person on call, or null if nobody is planned.
next.personIdstring
next.namestring or null
next.fromdate-timeWhen they take over.

Slot

FieldTypeDescription
startsAtdate-timeUse this exact value as slotStart in coverage changes.
endsAtdate-time
onCallobject or nullA person, or null when nobody is assigned.
onCall.personIdstringPerson id.
onCall.namestring or nullDisplay name.
awaybooleanTrue when the slot is a hole because its person is away.

Chain

If nobody acknowledges: who is paged next, after how long. Escalation stops after the last step.

FieldTypeDescription
boardIdstring
waitMinutes2 | 5 | 10 | 15 | 30 or nullBoard default wait between steps; null = the organization's.
rotasobject[]
rotas[].rotaIdstring
rotas[].namestring or null
rotas[].stepsChainStep[]

ChainStep

FieldTypeDescription
positioninteger 2–42, 3 or 4. Step 1 is always whoever is on call.
targetKind"next_on_rota" | "person" | "everyone_else" | "one_by_one"next_on_rota, a named person, everyone_else on the rota, or one_by_one.
personIdstring or nullSet when targetKind is person.
waitMinutes2 | 5 | 10 | 15 | 30 or nullWait before this step; null = the board's default.
personGonebooleanThe named person left: this step is a hole and escalation stops there.

Alert

A page (an alert that reached TeamPager).

FieldTypeDescription
idstringPage id.
titlestring
status"open" | "acked" | "resolved"open is still escalating, acked stopped escalating, resolved is over.
boardIdstring or null
escalationStepintegerHow far escalation went (1 = on call).
createdAtdate-time
ackedAtdate-time or null
ackedByActorRef or nullWho did it: a person or an API key.
ackedVia"app" | "link" | "call" | "slack" | "api" or null
reopenedAtdate-time or null
resolvedAtdate-time or null
resolvedByActorRef or nullWho did it: a person or an API key.

AlertList

FieldTypeDescription
dataAlert[]
nextCursorstring or nullPass as cursor to get the next page of results; null at the end.

ActorRef

Who did it: a person or an API key.

FieldTypeDescription
kind"person" | "api_key"
idstringPerson id, or API key id.

Person

Someone in the directory. Being in the directory does not need a login.

FieldTypeDescription
idstringPerson id. Use it in members, chains, absences and coverage.
namestring or null
kind"human" | "channel"human, or channel for a shared inbox or team address.
status"active" | "suspended" | "removed"suspended by directory sync (SCIM) is skipped when paged; removed left the organization.
canSignInbooleanTrue when the person has a login. People created through the API never do.
createdAtdate-time

PersonDetail

FieldTypeDescription
idstringPerson id. Use it in members, chains, absences and coverage.
namestring or null
kind"human" | "channel"human, or channel for a shared inbox or team address.
status"active" | "suspended" | "removed"suspended by directory sync (SCIM) is skipped when paged; removed left the organization.
canSignInbooleanTrue when the person has a login. People created through the API never do.
createdAtdate-time
channelsChannel[]

Channel

One way to reach a person.

FieldTypeDescription
idstringChannel id.
personIdstring
kind"email" | "sms" | "voice" | "teams" | "slack" | "push" | "webhook"How we reach the person. The API creates email, sms and voice; other kinds are read-only.
addressstringEmail address, or phone number masked as +1 ••• ••• 0344.
rung1 | 2 | 3Order of the ladder: 1 first, then 2, then 3.
verifiedbooleanA phone stays unverified until the person enters the code in the app.
optedOutbooleanThe person replied STOP to texts.
createdAtdate-time

OrgAbsence

FieldTypeDescription
idstring
personIdstring
startDatedateFirst day away, YYYY-MM-DD.
endDatedateLast day away, inclusive.

MuteState

FieldTypeDescription
personIdstring
muteobject or null
mute.endsAtdate-time or nullNull = muted until someone unmutes.
mute.reasonstring or null
mute.createdAtdate-time or null

Heartbeat

A heartbeat: pages when a job stops checking in.

FieldTypeDescription
idstringHeartbeat id.
namestring
boardIdstring or nullBoard paged when it goes silent; null = the organization's default board.
intervalMinutesinteger
graceMinutesinteger
state"waiting" | "up" | "down" | "paused"waiting for its first ping, up, down (silent: a page went out), or paused.
lastPingAtdate-time or null
downSincedate-time or null
createdAtdate-time

HeartbeatCreated

FieldTypeDescription
idstringHeartbeat id.
namestring
boardIdstring or nullBoard paged when it goes silent; null = the organization's default board.
intervalMinutesinteger
graceMinutesinteger
state"waiting" | "up" | "down" | "paused"waiting for its first ping, up, down (silent: a page went out), or paused.
lastPingAtdate-time or null
downSincedate-time or null
createdAtdate-time
pingUrlstringThe URL your job calls. Returned once, here only; it can't be read again.

PageAccepted

FieldTypeDescription
acceptedtrue
deliveryIdstringDelivery id. The page itself appears in GET /v1/alerts within seconds.

Error

Every error has this shape.

FieldTypeDescription
errorobject
error.codestringStable, machine-readable code (snake_case). Branch on this, not on the message.
error.messagestringOne sentence for a human.
error.requestIdstringGive this to support if you need help with a request.
error.detailsobjectExtra facts about the error, e.g. limit and used for a plan limit.