The API
The base URL is https://api.tissue.systems, and every Mast route is under /v1/mast/: alert sources, heartbeats, probes, destinations, maintenance windows, the feed, acknowledgements. Requests carry an API token as Authorization: Bearer, and bodies and answers are JSON. A script, a Cell or a CI job can make an alert source, mute it for the length of a deploy, or read back what paged last night.
List your probes, with a token that has mast:read:
export TISSUE_TOKEN=tok_…
curl -s https://api.tissue.systems/v1/mast/probes \
-H "Authorization: Bearer $TISSUE_TOKEN"{
"items": [
{
"id": "pr_5d0c7e9a13b24f6880a1c3e5d7f9b2d4",
"name": "homepage",
"kind": "http",
"target": "https://example.com/",
"interval_secs": 300,
"channel_id": "mc_2b7d4e6081a3c5f79024b6d8e0a2c4f6",
"alert_source_id": "mc_2b7d4e6081a3c5f79024b6d8e0a2c4f6",
"state": "up"
}
]
}Each probe carries more fields than these; Probes has them. An account with no probes answers {"items": []}, and a missing or wrong token answers 401 with {"error": {"code": "unauthorized", "message": "…"}}. Every error has that shape, a wrong method included: a DELETE on a path that only takes GET answers 405 with code method_not_allowed, and the Allow header lists what the path does take.
The whole API is described as OpenAPI 3.1 at https://api.tissue.systems/v1/openapi.json, which needs no token.
Sending an alert needs no token at all: an alert source's URL is its own credential. Sending alerts has that. This page is everything else.
Alert sources live at /v1/mast/alert-sources, their ids start mc_, and a field that names one is alert_source_id. The API first called them channels, and every channel spelling is still accepted: the /v1/mast/channels routes, channel_id, channel_ids and channel=. A few older names stay as they are so nothing that already calls the API breaks: an alert source's kind is "channel", a heartbeat is an alert source with kind: "heartbeat", and /v1/mast/state lists both under channels. The spellings kind: "vital", vital_state, vital_priority and vital_reason are still accepted, and a response carries both spellings of each field with kind set to "vital". The highest level is max_priority, mute hours are quiet_start, quiet_end and quiet_tz, and grouping is storm_threshold and storm_window_secs. The glossary has every term next to its API name.
ribo mast, in ribo 2026.10.0 or later, is a client of these same routes for the terminal: who's on call, sending and acknowledging pages, and the whole setup as a mast.toml. ribo mast has the commands, and alert sources as code has the file.
The Tissue MCP server is another client of them, for an agent: it has tools that list and create probes, check a URL without saving a probe, list and create alert sources, send a test page and list incidents. Have an agent set it up has a prompt to paste.
Credentials
| Credential | Where it lives | What it reaches |
|---|---|---|
| Send key | In the send URL (mk_ + 40 hex) |
One alert source, send only. No session, no header |
| Device | The app's keychain | Everything that owner has: alert sources, messages, devices, pairings |
| Account API token | Your account, mast:read / mast:write |
The same routes as the device, from anywhere |
A send key still sends without any account at all. A token is for the rest: reading the feed, acknowledging from a script, creating an alert source from a deploy pipeline.
Tokens
Make a token under API tokens in the web app, or with ribo. --scope is a repeatable flag, not a comma list:
ribo token create mast --scope mast:write --scope mast:readmast:read reads the feed, alert sources and state. mast:write makes and changes things. The same token can carry the platform scopes too.
GET /v1/me says what a token is: the account it belongs to, who made it, the name it was given and its scopes.
curl -s https://api.tissue.systems/v1/me \
-H "Authorization: Bearer $TISSUE_TOKEN" | jq '{accountName, email, tokenName, scopes}'{
"accountName": "Acme",
"email": "jon@example.com",
"tokenName": "mast",
"scopes": ["mast:read", "mast:write"]
}email is empty when the person who made the token has left the account.
A token reaches your account's alert sources as soon as it exists. A phone joins the account when someone signs in to Tissue Mast from Mast Pager, or enters a link code from Devices; the phone's alert sources are then the account's alert sources, and the token reaches those too.
Linking a phone by hand
For a phone that registered on its own and has never signed in, the account can claim it with the phone's device token. This is the call older versions of the app made after a token was pasted into them:
curl -X POST https://api.tissue.systems/v1/mast/connect \
-H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \
-d '{"device_token": "mt_…"}'One account holds one owner and one owner holds one account. Claiming an owner that's already linked, or linking a second owner to an account, answers 409, unless the account's own owner is still empty, in which case the phone's takes its place; the same request twice with the same pair answers 200 and changes nothing.
Alert sources from the command line
An alert source is created with mast:write and answers with its first key. Take it here if a script needs it. A key that was never written down isn't lost, because /v1/mast/state carries the live key of every alert source:
curl -X POST https://api.tissue.systems/v1/mast/alert-sources \
-H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \
-d '{"name": "deploys", "default_priority": "normal", "quiet_start": 1320, "quiet_end": 420, "quiet_tz": "America/Los_Angeles"}'{
"id": "mc_2b7d4e6081a3c5f79024b6d8e0a2c4f6",
"name": "deploys",
"kind": "channel",
"url": "https://mast.tissue.dev/mk_1c9f…",
"key": "mk_1c9f…",
"default_priority": "normal",
"max_priority": "loud",
"quiet_start": 1320,
"quiet_end": 420,
"quiet_tz": "America/Los_Angeles",
"message_count": 0
}Names are 1–32 characters of letters, digits, ., _, - and single spaces, starting with a letter or digit. Letters means letters in any script (数据库 and café-prod are names), lowercase where the script has a case, and the count is characters rather than bytes. Mute hours are minutes past midnight (1320 is 22:00, -1 means no mute hours) and a window that wraps midnight is written the way you would say it: start 1320, end 420.
max_priority is the alert source's highest level, and an alert source created with a token starts at loud: every send is clamped to it, so this alert source cannot page anyone until the highest level is raised. Raising it to the pager tier is done in Mast Pager on a registered phone: the API takes a max_priority of page only from a device credential, on the create and on the PATCH alike, and answers 400 to a token either way. So a leaked send key cannot promote its own alerts, and neither can the token that provisions the alert source.
quiet_tz takes an IANA zone name such as America/Los_Angeles or Europe/Berlin, and resolves it at the moment it judges a window, so a window set once keeps meaning the same local hours after the clocks change. A fixed offset (-07:00, +0200, Z) is accepted too, and cannot do that: it is one number, right for half the year. Anything that resolves to neither is read as UTC, which the sending host records in its log.
Mute hours and mute downgrade a send to a silent delivery rather than dropping it. The exception is a page, which is exempt from both. A page the highest level clamped to loud is a loud in every respect, mute hours included. The response says which happened:
state |
What it means |
|---|---|
queued |
Stored, and on its way to every device |
muted |
Stored and delivered silently: the alert source is muted or inside its mute hours |
deduped |
Merged into a message already on the phone. The response also carries "duplicate": true |
suppressed |
Grouped into a summary: the alert source has already had storm_threshold messages inside storm_window_secs (20 in 300 seconds by default) |
alive |
A bare beat on a heartbeat. Proof of life, and no card, so id is null |
held |
Stored and shown to nobody until its key has sent confirm times; count and needed say how far along it is |
cleared |
A resolve=1 on a held key, before the count was reached. Dropped unseen |
scheduled |
Stored for later; deliver_at says when. With a key, delivered only if that key is still open then |
folded |
A fire or resolve inside a flap window, noted on the incident named by id and pushed to nobody. Incidents has the windows |
Next to state, the answer carries priority, the level the message went out at, and capped, which is true when the alert source's highest level lowered it. The highest level has an example.
A suppressed message is stored and appears in the feed like any other; what collapses is the push, into one summary card per window that counts up in place. A page is exempt from grouping as well: it counts toward the window, and it is never the message that gets grouped away.
Everything the owner has (devices, alert sources, pairings and the most recent messages) in one call:
curl -s https://api.tissue.systems/v1/mast/state \
-H "Authorization: Bearer $TISSUE_TOKEN" | jq '.channels[] | {name, kind, url, message_count}'Each alert source here carries its live key, so a key that was never written down is readable again without rotating it.
For the list alone, three routes answer {"items": [...]} with mast:read:
| Route | What it lists |
|---|---|
GET /v1/mast/alert-sources |
Alert sources and heartbeats, told apart by kind |
GET /v1/mast/heartbeats |
Heartbeats only |
GET /v1/mast/rotations |
On-call rotations |
curl -s https://api.tissue.systems/v1/mast/alert-sources \
-H "Authorization: Bearer $TISSUE_TOKEN" | jq '.items[] | {id, name, kind, max_priority}'The rest of the alert source surface takes the same token:
# prove the whole path to the phone
curl -X POST https://api.tissue.systems/v1/mast/alert-sources/mc_2b7d…/test \
-H "Authorization: Bearer $TISSUE_TOKEN"
# issue a new key; the old one keeps working for seven days
curl -X POST https://api.tissue.systems/v1/mast/alert-sources/mc_2b7d…/rotate \
-H "Authorization: Bearer $TISSUE_TOKEN"
# silence a noisy alert source until an instant, without touching the sender
curl -X POST https://api.tissue.systems/v1/mast/alert-sources/mc_2b7d…/mute \
-H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \
-d '{"until": "2026-08-20T15:00:00Z"}'Testing an alert source
POST /v1/mast/alert-sources/{id}/test with no body sends one test message at the alert source's default level. It never asks for an acknowledgement and never repeats, so it proves the path to the phone and nothing more. Give it a body to ask for more:
curl -X POST https://api.tissue.systems/v1/mast/alert-sources/mc_2b7d…/test \
-H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \
-d '{"escalate": true, "priority": "page"}'{ "ok": true, "id": "mm_…", "state": "queued", "priority": "loud", "capped": true, "escalated": true }priorityasks for a level. The alert source's highest level still applies, so the answer'spriorityis the level actually sent andcappedistruewhen it was lowered.escalate: trueopens a real incident, marked as a test, and runs the alert source's escalation policy against it step by step: the first step's people are paged, and if nobody acknowledges, the next step's are, on the policy's own waits. Acknowledge or resolve it to stop it. With no policy it rings everyone on the account, the same as a real page.escalatedin the answer says whether a policy was run.
A test incident shows in Incidents with a test label and doesn't count toward uptime or reports. An alert source takes five tests a minute, and so does a device; past that the answer is 429 rate_limited.
Rotation is why a key belongs in a vault binding or a CI secret rather than in a source file: replacing one is an API call and a secret update, with a week of overlap to do it in.
To keep the whole set of alert sources and heartbeats in a file and let a script create, patch and rotate them, see Alert sources as code.
Devices
GET /v1/mast/devices lists the phones and watches on the account. Each row says whether Mast can still reach it:
| Field | What it means |
|---|---|
reachable |
false once Apple or Google has turned down a push to this device, usually because the app was deleted or the phone was reset |
rejected_at |
When that last happened, or null if it never has |
A device that has stopped answering is still listed until someone unlinks it, so reachable: false is the one to look for when a page went nowhere.
POST /v1/mast/devices/{id}/test sends one push at loud to that device and no other. It answers {"sent": true} when the push service took it, or an error that says why it didn't, such as a device that isn't on this account or one the push service has already rejected. Nothing is stored in the feed and no incident opens.
curl -X POST https://api.tissue.systems/v1/mast/devices/md_…/test \
-H "Authorization: Bearer $TISSUE_TOKEN"Heartbeats: page when something stops
A heartbeat is an alert source that expects to hear from you. Give it a period and a grace window; if no beat arrives inside period_secs + grace_secs, Mast pages instead of waiting for a sender that is never going to call:
curl -X POST https://api.tissue.systems/v1/mast/alert-sources \
-H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \
-d '{"name": "nightly-backup", "kind": "heartbeat", "period_secs": 86400, "grace_secs": 3600, "heartbeat_priority": "loud"}'A beat is a send with no text, which is what lets a crontab line be one curl:
17 3 * * * /usr/local/bin/backup.sh && curl -fsS -m 10 --retry 3 https://mast.tissue.dev/mk_8e2a… >/dev/nullThe answer to a beat says when the next one is due:
{
"ok": true,
"id": null,
"state": "alive",
"beat": true,
"beat_at": "2026-11-22T03:17:04.000Z",
"next_due_at": "2026-11-23T03:17:04.000Z",
"grace_secs": 3600
}next_due_at is when the heartbeat turns late if nothing else arrives: one period after this beat, or the schedule's next run. It's null for a heartbeat that only watches how long a run takes. grace_secs after that, the heartbeat is down.
A job that knows it failed says so, and marks the heartbeat down without waiting out the grace window:
curl -fsS -m 10 --retry 3 -X POST https://mast.tissue.dev/mk_8e2a…/fail -d body="nightly backup exit 1"Either way, whether the grace window runs out or a /fail arrives, the silence opens a page, and the next beat closes it. The red card on the phone turns green, stops repeating and stops escalating, and its text says how long the heartbeat was down. If one outage left several pages open, because a /fail sent its own key as the failure changed shape, the beat closes every one of them. A beat that arrives with no page open is a quiet card: there is nothing on the phone for it to answer.
From a Cell, the beat belongs in the pulse handler. The schedule that does the work is the thing whose silence should page you:
[[pulse]]
schedule = "*/15 * * * *"
[[bindings]]
type = "vault"
binding = "HEARTBEAT_URL"export default {
async pulse(event, env) {
const rows = await sweep(env);
// The beat goes out only on the path that finished. A throw here reaches
// no `fetch`, the beat does not land, and the heartbeat goes down on its own.
await fetch(env.HEARTBEAT_URL, {
method: "POST",
body: new URLSearchParams({ body: `swept ${rows} rows` }),
});
},
};A heartbeat accepts text like any other alert source, and a send that carries text is proof of life too. Sending title/body on a beat is how the notification says what the job did rather than that it happened.
Probes
Probes has every field and what a check can find. The routes:
| Route | Scope | Does |
|---|---|---|
GET /v1/mast/probes |
mast:read |
Your probes. rounds=N adds each one's recent checks and last_round |
POST /v1/mast/probes |
mast:write |
Make one. 409 duplicate_probe with existing_id for a probe that checks exactly the same thing as one you have |
POST /v1/mast/probes/check |
mast:write |
Run a probe once from every place without saving it. Takes a create body, answers verdict, places and round |
GET /v1/mast/probes/{id} |
mast:read |
One probe with recent, last_round and incident_id |
PATCH /v1/mast/probes/{id} |
mast:write |
Change it, or pause it with paused. Answers with page when the change gave a down probe an alert source |
POST /v1/mast/probes/{id}/check |
mast:write |
Check it now. places and round in the answer, or 202 with queued: true |
DELETE /v1/mast/probes/{id} |
mast:write |
Delete it and its history. An open incident is closed as {name} was deleted |
A create, an edit and a check before saving refuse a field a probe doesn't have:
{"error": {"code": "unknown_field",
"message": "A probe has no field \"interval\". Did you mean interval_secs?",
"field": "interval", "did_you_mean": "interval_secs"}}Each check, in recent and in places, has answer: expected, wrong, none, or null for a place that never asked. last_round has the counts for the latest check and summary, the same thing as a sentence. incident_id is the page that's open for a probe that's down. page on a PATCH is {"state", "incident_id", "alert_source_id"} with state one of sent, pending or recovered; on pending, read the probe again until incident_id fills in. Pausing a probe that's down closes its open page.
Deploy markers
A marker goes to the alert source's URL with /deploy on the end, like a send. The Deploys page covers the fields and the wait gate. Reading them back takes a token:
| Route | Scope | Does |
|---|---|---|
POST /m/{key}/deploy |
the send key | Record a deploy and check the alert source's probes now. With wait, answer 200, 503 or 504 as they settle |
GET /v1/mast/deploys |
mast:read |
Your markers, newest first. alert_source_id for one alert source, limit up to 50 |
Destinations and maintenance windows
Both have their own pages: Destinations for sending alert events to a webhook, Slack, Discord, Teams or email, and Maintenance windows for holding the sound while you work. The routes, for reference:
| Route | Scope | Does |
|---|---|---|
GET /v1/mast/destinations |
mast:read |
List destinations, with the plan's cap as limit |
POST /v1/mast/destinations |
mast:write |
Add one. A webhook's signing secret is in this answer and nowhere else |
GET /v1/mast/destinations/{id} |
mast:read |
Read one |
PATCH /v1/mast/destinations/{id} |
mast:write |
Change name, events or chat_ack, or pause and resume with state |
DELETE /v1/mast/destinations/{id} |
mast:write |
Remove it |
POST /v1/mast/destinations/{id}/test |
mast:write |
Send a test now and report the far end's answer |
GET /v1/mast/destinations/{id}/deliveries |
mast:read |
The delivery log, newest first |
POST /v1/mast/destinations/{id}/deliveries/{delivery}/replay |
mast:write |
Send a finished, given-up or skipped delivery again |
POST /v1/mast/destinations/{id}/reactivate |
mast:write |
Bring a dead destination back |
GET /v1/mast/maintenance |
mast:read |
List windows, hold windows included |
POST /v1/mast/maintenance |
mast:write |
Make a window |
PATCH /v1/mast/maintenance/{id} |
mast:write |
Change its name or scope, or its times before it starts |
POST /v1/mast/maintenance/{id}/end |
mast:write |
End an open window now and page what it held |
DELETE /v1/mast/maintenance/{id} |
mast:write |
Delete it, ending it first if it's open |
DMARC reports
The DMARC reports page covers adding a domain and what the screens show. The routes:
| Route | Scope | Does |
|---|---|---|
GET /v1/mast/mail/domains |
mast:read |
Your domains, with each one's address, state and last check |
POST /v1/mast/mail/domains |
mast:write |
Add {"domain": "example.com"}. The answer carries the token and the exact rua to publish. 409 if another account holds the domain |
DELETE /v1/mast/mail/domains/{id} |
mast:write |
Remove the domain and the reports filed for it |
POST /v1/mast/mail/domains/{id}/check |
mast:write |
Look for the address in the domain's _dmarc record now. Once every 10 seconds, then 429 |
POST /v1/mast/mail/domains/{id}/rotate |
mast:write |
Issue a new address. The old one keeps working for 7 days |
GET /v1/mast/mail/domains/{id}/summary?days= |
mast:read |
Totals, pass rates and a per-day series |
GET /v1/mast/mail/domains/{id}/sources?days= |
mast:read |
Sending IPs with reverse DNS, message and failure counts, and DKIM and SPF alignment |
GET /v1/mast/mail/domains/{id}/reports?days= |
mast:read |
The aggregate reports in the window |
GET /v1/mast/mail/reports/{id} |
mast:read |
One report with its rows |
GET /v1/mast/mail/reports/{id}/raw |
mast:read |
The original XML. Past 30 days, Company only |
GET /v1/mast/mail/domains/{id}/failures |
mast:read |
Failure samples, headers only. Company only, 402 otherwise |
GET /v1/mast/mail/domains/{id}/tls |
mast:read |
TLS reports |
The feed
mast:read reads the same history the app shows, newest first:
curl -s "https://api.tissue.systems/v1/mast/messages?limit=20" \
-H "Authorization: Bearer $TISSUE_TOKEN" \
| jq -r '.messages[] | [.received_at, .priority, .title, .state] | @tsv'{
"messages": [
{
"id": "mm_7a3e5b91c04d2f68a1b3c5d7e9f02468",
"channel_id": "mc_2b7d4e6081a3c5f79024b6d8e0a2c4f6",
"alert_source_id": "mc_2b7d4e6081a3c5f79024b6d8e0a2c4f6",
"received_at": "2026-08-19T03:17:44.902Z",
"priority": "loud",
"title": "db-01",
"body": "replication stopped",
"state": "acked"
}
],
"next_before": "2026-08-19T03:17:44.902Z~mm_7a3e5b91c04d2f68a1b3c5d7e9f02468"
}next_before is the cursor: pass it back as ?before= for the next page, and stop when it comes back null. ?limit= is 1–200 and defaults to 50; ?alert_source= (name or id) and ?priority= narrow the query. Messages are kept for the plan's history: 7 days on Free, 90 on Team, 365 on Company.
One message with its incident log. Every message keeps one, and the app shows it under the message: fired, delivered once per device, repeated with the count, escalated, acked with the device that did it, resolved, expired. It is the record to read when a page went off four times and you want to know why:
curl -s https://api.tissue.systems/v1/mast/messages/mm_7a3e… \
-H "Authorization: Bearer $TISSUE_TOKEN"A script that resolves what it raised needs mast:write. Acknowledging stops a repeating page; resolving ends the incident:
curl -X POST https://api.tissue.systems/v1/mast/messages/mm_7a3e…/resolve \
-H "Authorization: Bearer $TISSUE_TOKEN"Deleting a message takes mast:write too, and only the account the message was sent to can do it. A page escalated to you from a partner account answers 404. The delete is permanent: the message, its incident log, its deliveries and the stored body all go, and the phones drop it from their feed on their next sync. A banner already on a lock screen stays until someone swipes it away.
curl -X DELETE https://api.tissue.systems/v1/mast/messages/mm_7a3e… \
-H "Authorization: Bearer $TISSUE_TOKEN"Deleting an alert source (DELETE /v1/mast/alert-sources/{id}) deletes every message on it the same way. To retire an alert source and keep its history, archive it with PATCH and {"archived": true} instead.
A sender that holds only the send key can still follow its own message, which is how a deploy script waits for a human before it continues:
id=$(curl -sS -X POST https://mast.tissue.dev/mk_1c9f… \
-d title="promote 2026.08.019?" -d priority=page | jq -r .id)
until [ "$(curl -sS https://mast.tissue.dev/mk_1c9f…/messages/$id | jq -r .state)" = "acked" ]; do
sleep 10
doneA send can come back queued while Mast's storage is briefly unavailable. It still gets its id and is delivered once storage is back, and until then a read of that id answers 404, so a loop like this one keeps waiting.
The answer is the message's state and the facts behind it, and acked_by names the device that acknowledged it, as the app shows it:
{
"id": "mm_7a3e5b91c04d2f68a1b3c5d7e9f02468",
"state": "acked",
"received_at": "2026-08-19T03:17:44.902Z",
"dedupe_count": 0,
"acked_at": "2026-08-19T03:19:02.117Z",
"acked_by": "iPhone",
"resolved_at": null,
"expires_at": "2026-08-19T04:17:44.902Z"
}That key reads its own alert source and nothing else: a message id from another alert source answers 404, exactly as an id that never existed does.