on this page

IntegrationsSending alerts

Sending alerts

Every alert source is a URL, and a send is one HTTP request to it. There's no client library and no SDK: anything that can make a request can page you, from a shell, a Cell, a CI job, Grafana or a router's webhook field.

This page has every way to send, every field a send takes, callbacks, and the sounds. Recipes has a problem and the send that fixes it, one at a time. Home Assistant and Opsgenie have their own pages.


With a send key

The key is the whole credential. Anything that can make an HTTP request can page you, and the shapes below are all the same send:

# form-encoded, the shape most tools reach for first
curl -X POST https://mast.tissue.dev/mk_1c9f… \
  -d title="db-01" -d body="replication stopped" -d priority=loud

# JSON
curl -X POST https://mast.tissue.dev/mk_1c9f… \
  -H "Content-Type: application/json" \
  -d '{"title": "db-01", "body": "replication stopped", "priority": "loud"}'

# a bare line of text — the body is the message
curl -X POST https://mast.tissue.dev/mk_1c9f… -d "replication stopped"

# GET, for a sender that cannot issue anything else
curl -G https://mast.tissue.dev/mk_1c9f… --data-urlencode body="replication stopped"
{ "ok": true, "id": "mm_7a3e5b91c04d2f68a1b3c5d7e9f02468", "state": "queued" }

A send answers 202 once the message is stored, before the push goes out. Delivery is what the feed and the message's own state record; the 202 is not a claim that a phone made a noise. The same id is in the X-Mast-Message-Id response header, for a caller that would rather not parse the body. A repeat that merged into an earlier message answers with that message's id and "duplicate": true.

A field Mast doesn't know is ignored and the send still goes out. The answer lists up to 20 of those names in ignored_fields, each cut at 64 characters, so a typo like priorty shows up the first time you try it. There's no ignored_fields when Mast knew every field.

A sender built for Opsgenie can keep its request and change only the host and the key: the Opsgenie-compatible endpoint takes Opsgenie's alert and heartbeat calls at https://mast.tissue.dev/opsgenie.

From a Cell

There is no Mast binding, and type = "mast" is refused at deploy with a pointer to this shape. A Cell sends the way anything else does: with the send URL, kept out of the source in a vault binding:

[[bindings]]
type    = "vault"
binding = "MAST_URL"   # env.MAST_URL in your cell
ribo vault set my-cell MAST_URL     # paste the send URL, then deploy
export default {
  async fetch(request, env, ctx) {
    try {
      return await handle(request, env);
    } catch (err) {
      // A page is fire-and-forget: the request has already failed, and holding
      // the response open for a notification only makes the failure slower.
      ctx.waitUntil(page(env, err));
      return new Response("internal error", { status: 500 });
    }
  },
};

function page(env, err) {
  return fetch(env.MAST_URL, {
    method: "POST",
    headers: { "content-type": "application/json" },
    body: JSON.stringify({
      title: "checkout",
      body: String(err?.message ?? err).slice(0, 4096),
      priority: "page",
      url: "https://tissue.systems/dashboard",
      url_title: "Open the dashboard",
      key: "checkout-500",       // one incident, however many requests hit it
    }),
  });
}

key is the dedupe key: repeats inside the alert source's dedupe window merge into the message that is already on the phone instead of arriving again. A failing checkout that throws four hundred times pages once.

With an account token

POST /v1/mast/send takes the same fields as a send URL, plus an alert_source naming which one. It is the send for code that already holds an account credential and should not also hold a key:

curl -X POST https://api.tissue.systems/v1/mast/send \
  -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \
  -d '{"alert_source": "deploys", "title": "2026.08.019", "body": "live on both edges"}'

alert_source accepts a name or an alert source id, and channel is still accepted in its place. A name that is not yours answers 404, the same as a name that does not exist.

From CI

GitHub Actions, with the send URL in a repository secret. A key that can only send to one alert source is the right credential for a job that only needs to say one thing:

- name: Page on a failed release
  if: failure()
  run: |
    curl -fsS -X POST "${{ secrets.MAST_URL }}" \
      -d title="release ${{ github.ref_name }}" \
      -d body="${{ github.workflow }} failed on ${{ github.sha }}" \
      -d priority=loud \
      -d url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
      -d url_title="Open the run"

Send fields

Field Meaning
title Up to 250 characters. Optional if body is present
body Up to 4096 characters. Required when title is absent, except on a resolve
priority quiet, normal, loud or page, or one of the other names other tools use. Defaults to the alert source's
url, url_title A tap target on the notification. http:// or https:// only
key Dedupe key, up to 120 characters. Repeats inside the window merge into one message
resolve 1 to close the open message carrying this key, or a message id to close that one. See Incidents
ack required to make any priority wait for a human. A page always does
retry Seconds between repeats of an unacknowledged message: 30–86,400, or 0 to disable
expire Seconds after which an unanswered message stops repeating: 60–604,800, or 0 to disable
sound One of the names in Sounds. Overrides the alert source's sound
silent 1 stores the message and sends no push. Not with ack or a page
timestamp Accepted and range-checked. The feed orders on arrival, not on a sender's clock
callback An https:// URL told when this message opens, is acknowledged and is resolved. Up to 512 characters. Team and Company. See Callbacks
hold Seconds to hold this alert source's pages without a sound, starting with this one: 1–21,600, or 0 for none. Not with silent. See Maintenance windows
confirm How many sends of this key before anyone sees it: 2–100, or 0 or 1 for off. The first is held, the Nth pages. Needs key; not with silent, resolve, in or at. See Confirm before it pages
in Seconds from now to deliver this send: 60–604,800. Not with at or confirm. See Later, and again
at When to deliver this send, RFC 3339 or Unix time, 60 seconds to 7 days ahead. Not with in or confirm
every Seconds between re-sounds of this card while its key is open: 300–604,800. Needs key; not on a page, with ack=required or with silent
Priority In one line The detail
quiet No sound, shows in the list Lands in the notification list without a sound or a lit screen
normal Sound and banner, Do Not Disturb silences it An ordinary notification, delivered immediately
loud Breaks through Focus, Do Not Disturb still silences it Time-sensitive: asks to break through Focus and Notification Summary. The person can switch that off
page Rings through silent mode and Do Not Disturb, and repeats until someone answers Ignores the alert source's mute hours and mutes. On iPhone it sounds through the ringer switch only where Critical Alerts are turned on

loud and page both break through a Focus, Sleep included. What separates them is the ringer switch and the repeat, not whether the phone stays quiet at 03:00, so normal is the level for something that can wait until morning and loud is a decision to wake somebody. What softens a loud overnight is the alert source's mute hours, which are unset until you set them; a page ignores them by design.

Priority names from other tools

A sender that already speaks another tool's priorities doesn't need translating. The priority field takes these as well as the four levels, in any case:

You send Mast uses
critical, alarm, emergency, urgent, max, high-urgency, P1, 2, 5 page
high, P2, 1, 4 loud
default, medium, P3, 0, 3 normal
low, min, P4, P5, -2, -1 quiet

The numbers are Pushover's -2 to 2 and ntfy's 3 to 5. The two scales disagree about 1 and 2, and in the field Pushover wins, so 1 is loud and 2 is page. Anything else, P6 or highest say, is refused with a 400 that names the field.

A send with no priority field also reads an X-Priority or Priority header, on ntfy's scale (1 and 2 are quiet, 3 normal, 4 loud, 5 page) or by any of the names above. The field wins when both are there. A header Mast can't read is ignored rather than refused, because a browser or a proxy may set Priority for its own reasons.

The highest level

An alert source carries a highest level as well as a default, and a send is lowered to it: ask for page on an alert source whose highest level is loud and the message is stored and delivered as loud. The 202 says what happened. priority is the level the message went out at, after aliases and the highest level, and capped is true when it was lowered, with a note that says so in words:

{ "ok": true, "id": "mm_…", "state": "queued", "priority": "loud", "capped": true,
  "note": "Sent at loud, not page: loud is the highest level this alert source allows. The owner can raise it in the app." }

Reading the message back returns the same level. The highest level is max_priority in the API, it's set in the app on a registered phone, and no API token can raise it. Alert sources and levels has why.


Confirm before it pages

confirm=3 with a key says: don't show me this until it has happened three times.

curl -X POST https://mast.tissue.dev/mk_1c9f… \
  -d key=edge-s30 -d confirm=3 -d priority=loud \
  -d title="s30 not answering" -d body="sweep failed"

The first send is stored and shown to nobody. The 202 says "state": "held" with count and needed. Every later send of that key counts, with or without its own confirm=, and the third one pages, with its own title and body. The feed shows the held span as held · 2 of 3, and the first title stays in the message's log.

The count has to be reached by sends that keep coming. A held message that hears nothing for the alert source's expiry (an hour on a new alert source, or the send's own expire=) expires on its own, so a sender that sends once with confirm=3 and falls silent pages nobody. It's for: in Prometheus: the condition has to keep holding.

A resolve=1 before the count is reached drops it unseen. The 202 says "state": "cleared", and nothing reached a phone. That's what it's for: an edge that fails one sweep and answers the next.

Later, and again

in=43200 or at=2026-10-27T06:00:00Z stores the send and delivers it then. The 202 says "state": "scheduled" with deliver_at, the feed shows it with its time, and resolving it from the phone or with resolve=<id> cancels it. Mute hours and mute are judged when it's delivered, not when it was sent.

With a key, a scheduled send is delivered only if that key is still open when the time comes. If the key was resolved first, the send is cancelled, with a line in the feed and nothing on the phone. That's "remind me at 06:00 if this is still open":

# the page
curl -X POST https://mast.tissue.dev/mk_1c9f… \
  -d key=db-01 -d priority=page -d title="db-01 unreachable"

# and a reminder for the morning shift, if nobody has fixed it by then
curl -X POST https://mast.tissue.dev/mk_1c9f… \
  -d key=db-01 -d at=2026-10-27T06:00:00Z -d priority=loud \
  -d title="db-01 still unreachable" -d body="open since last night"

every=43200 re-sounds a loud or normal card every twelve hours while its key is open, and stops at the resolve. The card's text gains still open · 12 h each time. It's the repeat for a message nobody can acknowledge, which is why it's refused on a page and with ack=required: those repeat on retry and stop at the ack. A send with every and no expire= never expires; give it an expire= and the reminders stop there.


Callbacks

Put callback= on a send and Tissue Mast calls that URL back as the message moves: when it opens, when someone acknowledges it, and when it's resolved. It's for a sender that wants to know what happened to its own alert, such as a ticket that closes itself when the page is acknowledged, without saving a destination that hears about everything.

curl -X POST https://mast.tissue.dev/mk_1c9f… \
  -d title="db-01" -d body="replication stopped" -d priority=page \
  -d callback="https://ops.example.com/hooks/mast"

The callback gets a POST with the same JSON body a webhook destination gets, with type set to mast.message.opened (or mast.vital.flatlined when the send is a heartbeat's failure), mast.message.acked or mast.message.resolved. The body format is under Webhooks. The headers are the same too, webhook-id and webhook-timestamp included, except that a callback isn't signed: there's no webhook-signature, because there's no secret to sign with. Treat the URL itself as the secret, or check the message id in the body against one you sent. For signed requests, save a webhook destination instead.

Failed calls are retried on the same schedule as a destination's, nine attempts over about 44 and a half hours. A callback is never held by a maintenance window: it hears every event as it happens.

The URL has to be https:// on port 443, with a host name rather than an IP address and no user name or password, and it can't resolve to a private or internal address or point at one of Tissue's own services. A callback that breaks those rules doesn't cost you the page. The send still goes through, the callback is dropped, and the 202 says so:

{
  "ok": true,
  "id": "mm_7a3e5b91c04d2f68a1b3c5d7e9f02468",
  "state": "queued",
  "warning": "callback ignored: it must be an https URL on port 443 with a host name, not an IP address, no credentials, and not a Tissue address"
}

Callbacks are on Team and Company. On Free the send goes through, the callback is dropped, and the warning reads callback ignored: callback URLs are part of the Team plan and up. A URL over 512 characters is different: that's a 400 and nothing is stored.

The callback belongs to the message the send opened. A repeat that merges into a card already on the phone doesn't add a second callback or replace the first.


Sounds

The app carries six sounds. Name one with sound= on a send, or set it on the alert source so every message there uses it.

Name Length What it is
pager 20s Four sharp beeps, a pause, again. An old pocket pager, and what a page plays when nothing else is set
klaxon 20s Two low tones alternating without a gap. A machine room
rising 18s Starts slow and low, ends fast and high, so how long it has been ringing is audible from the next room
chirp 15s A rising two-note pair every second and a half. Long, but not the loudest thing in a house
bleep 0.7s Two notes down, twice. The short one
default ~1s The phone's own notification tone
curl -s -F priority=page -F sound=klaxon \
     -F title='db-01' -F body='replication stopped' \
     https://mast.tissue.dev/<key>

.caf on the end is accepted and optional: sound=pager and sound=pager.caf are the same thing. Any other name is refused with a 400 naming the list, because a phone answers a sound it cannot find by playing the default and reporting nothing: an unchecked typo would be a page that silently loses the alarm it asked for.

Length only matters where the phone is allowed to make noise. quiet carries no sound at all, and normal and loud stop at the first silent switch or Focus that catches them. A page on a phone with Critical Alerts turned on is the one tier that plays to the end at full volume, which is why it is the tier with a twenty-second default.

Sounds ship with the app, so a phone running a version from before they did plays its own notification tone instead. Nothing breaks; the page just sounds like every other notification.


Limits

Body 16 KiB, per request
Send rate 60 a minute per key, 600 a minute per owner
Messages a month Your plan's: 10,000 on Free, 1,000 on a phone with no account
History Your plan's: 7 days on Free and with no account, 90 on Team, 365 on Company
Rotated key Keeps working for 7 days

A refused field is named in the response. 429 means one of the two rate limits, not that anything was stored. Plans and limits has the rest.