# Tissue Mast: full documentation The complete Tissue Mast manual in Markdown, concatenated from https://tissue.systems/mast/docs/. Each section below is one page; the "Source" line gives its canonical URL. The platform's developer documentation is a separate file at https://docs.tissue.systems/llms-full.txt. --- # Get started / What is Tissue Mast? Source: https://tissue.systems/mast/docs/ # What is Tissue Mast? Tissue Mast is uptime monitoring that rings your phone. It checks your sites from eight places, watches the cron jobs that should run and quietly don't, and when something breaks it pages whoever is on call, through silent mode and Do Not Disturb, until somebody answers. It has two halves: - **Tissue Mast**, the service, at [dashboard.tissue.systems/mast](https://dashboard.tissue.systems/mast). Probes, heartbeats, alert sources, on call, incidents and status pages live here, on a Tissue Mast account. Free for ten sites. - **[Mast Pager](https://tissue.systems/mast/docs/pager/)**, the app for iPhone and Android. It's what rings. It also works on its own with no account, as a pager anything can post to. The servers that deliver pages don't run anything else and keep their own database, so the thing you're watching can't take your pager down with it. --- ## Start here - **Watch a website.** [Watch your first site](https://tissue.systems/mast/docs/start/): make an account, link your phone, add a probe, and send yourself a test page. About five minutes. - **Watch a cron job.** [Heartbeats](https://tissue.systems/mast/docs/heartbeats/): add one line to the end of a crontab entry and you're paged when it stops running. - **Only want a pager.** [Mast Pager](https://tissue.systems/mast/docs/pager/): install the app, make an alert source, `curl` it. No account. --- ## Have an agent set it up The [Tissue MCP server](https://docs.tissue.systems/docs/mcp/overview/) at `https://tissue.systems/mcp` has tools for Mast: check a URL without saving anything, list and create probes, list and create alert sources, send a test page, and list incidents. Connect it once, signing in through the browser: ```bash claude mcp add --transport http tissue https://tissue.systems/mcp ``` Any other MCP client takes the same URL. With a token instead of a browser sign-in, the token needs `mast:read` and `mast:write`. Then paste this, with your own URLs: ```text Set up Tissue Mast monitoring for these sites, using the Tissue MCP tools: https://example.com/ https://example.com/login 1. Run mast_probe_check on each URL and show me what every place answered. If a URL fails everywhere, stop and ask me before going on. 2. Run mast_alert_source_list. If there's an alert source called "websites", use it. If not, make it with mast_alert_source_create. 3. Run mast_probe_list and skip any URL that already has a probe. For the rest, run mast_probe_create with kind http, expect_status 200, interval_secs 300 and the alert source's id as alert_source_id. 4. Run mast_alert_source_test on the alert source and ask me whether my phone rang. 5. List what's left for me to do by hand. ``` Two things are left to you, and the agent will say so. Your phone has to be [linked](https://tissue.systems/mast/docs/start/#linking-your-phone), and an alert source made by an agent starts with a highest level of `loud`, so it can't ring through silent mode until you raise it to `page` in Mast Pager. [The highest level](https://tissue.systems/mast/docs/alert-sources/#the-highest-level) has the reason. An agent without MCP can do the same over [the API](https://tissue.systems/mast/docs/api/) with a token. Give it [llms-full.txt](https://tissue.systems/mast/docs/llms-full.txt), this whole manual in one file, or [llms.txt](https://tissue.systems/mast/docs/llms.txt) for the list of pages. --- ## The pieces **Probes** (uptime checks) are the checks we run. Give us a URL, a host and port, a certificate, a DNS record, a host to ping or a mail server, and every check runs from eight places on six networks. A site is down when more than half the places fail, on at least two networks, and a second check 10 seconds later agrees. One place failing doesn't page anybody. [Probes](https://tissue.systems/mast/docs/probes/). **Heartbeats** are the checks your jobs run. The job checks in when it finishes, and a missed check-in is the alert. A crontab line ending in `&& curl -fsS ` is a monitored backup. [Heartbeats](https://tissue.systems/mast/docs/heartbeats/), and [run signals](https://tissue.systems/mast/docs/run-signals/) for start, fail and exit codes. **Deploy markers** tell Mast you shipped. Every probe on the alert source checks at once, a page that opens within the hour names the deploy, and a deploy job can wait for the probes and fail when one is down. [Deploys](https://tissue.systems/mast/docs/deploys/). **Alert sources** are where alerts go. Each one is a URL, so anything that can make an HTTP request can page you: Grafana, a CI job, Home Assistant, a shell script. An alert source has a default level, a highest level it can never go above, mute hours and a dedupe window. [Alert sources and levels](https://tissue.systems/mast/docs/alert-sources/). **Levels** decide what the phone does with a message: | Level | What the phone does | |---|---| | `quiet` | No sound, shows in the list | | `normal` | Sound and banner, Do Not Disturb silences it | | `loud` | Breaks through Focus, Do Not Disturb still silences it. Once, unless the send asks for `every` | | `page` | Rings through silent mode and Do Not Disturb, and repeats until someone answers, then moves to the next person | **On call** decides who gets a page. Rotations, overrides, escalation steps, and per-person off hours. [On call](https://tissue.systems/mast/docs/on-call/). **Incidents** are what all of the above produce: one row per thing that went wrong, with who was paged, who acknowledged it, and what closed it. [Incidents](https://tissue.systems/mast/docs/incidents/). **Status pages** show your users what your probes and heartbeats see. [Status pages](https://tissue.systems/mast/docs/status-pages/). **Single sign-on** lets your team sign in through Okta, Entra ID, Google Workspace or another OpenID Connect provider, and SCIM lets that provider add and remove members. On Company and Enterprise. [Single sign-on](https://tissue.systems/mast/docs/sso/). --- ## Coming soon Everything linked above works on production and pages a real phone. These are next, and the web app marks them where you'd use them: - Status page **email to subscribers**. - **Investigate**, an agent that looks into an incident on the hosts you name. It's listed on the paid plans and is coming soon. --- ## Where to go next - Wiring up the things that should page you: [Sending alerts](https://tissue.systems/mast/docs/send/), [Home Assistant](https://tissue.systems/mast/docs/home-assistant/), [Alert sources as code](https://tissue.systems/mast/docs/alert-sources-as-code/). - Scripts, tokens and every route: [The API](https://tissue.systems/mast/docs/api/). - Something paged and you want to know what happened to it: [Delivery](https://tissue.systems/mast/docs/delivery/). - What each plan allows: [Plans and limits](https://tissue.systems/mast/docs/limits/) and [Billing](https://tissue.systems/mast/docs/billing/). Questions reach [support@tissue.systems](mailto:support@tissue.systems). --- # Get started / Watch your first site Source: https://tissue.systems/mast/docs/start/ # Watch your first site This gets one website watched and your phone ringing when it goes down. It takes about five minutes, and all of it is on the Free plan. The order is the same one the web app's first-run guide uses: your phone, then something to watch, then a test that proves it. --- ## 1. Make an account Go to [tissue.systems/mast/signin](https://tissue.systems/mast/signin/?new) and give it an email address, or use Google or GitHub. You don't need a password, since we mail you a link that signs you in, but **use a password instead** is there if you'd rather have one. No card either. You land in the web app at [dashboard.tissue.systems/mast](https://dashboard.tissue.systems/mast). ## 2. Link your phone Install Mast Pager from the [App Store](https://apps.apple.com/us/app/mast-pager/id6805232044?pt=129362925&ct=docs-start&mt=8) or [Google Play](https://play.google.com/store/apps/details?id=systems.tissue.mast). In the app's settings (the gear), tap **Sign in to Tissue Mast** and sign in with the same email. The phone joins your account. If you'd rather type a code, open **Devices** in the web app and **Get a link code**, then use **Connect with a code** in the app. [Linking your phone](#linking-your-phone) has the details. While you're in the app, turn on notifications when it asks, and turn on **Critical Alerts** in its settings. That's what lets a page ring with the silent switch on and through Do Not Disturb. On Android, give it Do Not Disturb access instead. The **Waking you** row in the app's settings checks the rest and has a button for each thing that's off. ## 3. Make an alert source that can page In the app, **New alert source**, name it `sites`, and pick **Page** as the default priority. An alert source that can wake you is made on the phone that will be woken. Nothing else can raise an alert source to the page level, not the web app and not an API token, so a leaked send URL can't either. One made in the web app tops out at loud until you raise it on the phone. ## 4. Add a probe A probe is an uptime check we run for you. In the web app, **Probes**, then **New probe**. Give it the address of a page that should always answer, like `https://example.com/health`, and pick `sites` as its alert source. With no expected status set, any 2xx or 3xx counts as up. Free checks every 5 minutes. The first check runs straight away, and the probe's screen shows what each of the eight places got back. If it says `blocked`, the service in front of your site turned our checks away; [Probes](https://tissue.systems/mast/docs/probes/#what-a-check-can-find) says what to allow. ## 5. Send yourself a test page Turn the ringer off first. On the `sites` alert source, in the app or the web app, **Send a test** and pick **page**. Your phone should ring through silent mode. Acknowledge it from the lock screen. That test proves the phone can be reached. Once a team shares the account, run the test with the escalation policy as well, so you know who gets woken and in what order: [Testing it end to end](https://tissue.systems/mast/docs/alert-sources/#testing-it-end-to-end). That's it. When the site goes down, the phone rings until you answer, and when it comes back the incident closes on its own. **Next:** watch a cron job with a [heartbeat](https://tissue.systems/mast/docs/heartbeats/), bring in the rest of the team with [on call](https://tissue.systems/mast/docs/on-call/), or publish a [status page](https://tissue.systems/mast/docs/status-pages/). --- # Around the web app The web app shows the same alert sources, heartbeats and incidents as the phone, and adds the things a phone is bad at: probes, a table you can sort and export, status pages, on call, and the account itself. It's your Tissue Mast account, which also signs you in to Tissue Cloud, and the plan on it sets the Tissue Mast caps. ## Signing in You don't need a password. The [sign-in page](https://tissue.systems/mast/signin/) takes an email address and mails you a link that signs you in, or you sign in with Google or GitHub. If you'd rather have a password, **use a password instead** on the same page creates an account with one or signs you in with it. A new address makes a free account. Once you're in, **Account** lets you add a passkey so the next sign-in is Face ID or Touch ID on the device in front of you, and turn on a two-factor code if you want one on top. Signing in is also what stops your probes pausing for inactivity: an account nobody has signed in to for 90 days has its probes paused, with an email a week before. [Limits](https://tissue.systems/mast/docs/limits/#probes-that-pause-themselves) has the rule. --- ## Linking your phone The quickest way is from the phone: **Sign in to Tissue Mast** in the app's settings opens this sign-in page in a sheet, and when you're signed in it hands the app a code and the phone links itself. The other way is a code you type. Sign in here, open **Devices**, and **Get a link code**. The code is eight characters, shown in two groups of four, and leaves out 0, 1, I and O so it can be read across a room. On the phone, **Connect with a code** under the gear takes it. A code works for one phone, for a few minutes. From then on the phone and the login are the same owner. An alert source made on the phone appears in the web app; an alert source made in the web app or with a token pages the phone. A second phone linked to the same login gets the same send URLs, and nothing needs changing on the sending side. The Devices screen lists the phones on your login, each with **unlink**. It doesn't list other people's phones; each person links their own, and a member's linked phone count shows under **On call**. If a phone says it's already connected to another account after a reinstall, a link code fixes that without changing any URL. [The iPhone page](https://tissue.systems/mast/docs/iphone/#a-reinstalled-phone) covers the phone side. --- ## The screens **Overview** is the state of everything at a glance. An account with no phone and nothing watched gets the first-run guide instead: link your phone, watch something, prove it. Once there's something to show, it's the full dashboard: open incidents, devices receiving pages, what was delivered today and this month, two short lists (heartbeats needing a look and probes needing a look), and **Start something** with shortcuts to the things you haven't set up yet. **Heartbeats** lists every heartbeat with its last beat and its schedule, and **New heartbeat** makes one and hands you the crontab line. This is also where a heartbeat's crontab schedule and run limit are set, which the phone can only read. [Heartbeats](https://tissue.systems/mast/docs/heartbeats/). **Probes** are the URLs and ports Mast checks for you. [Probes](https://tissue.systems/mast/docs/probes/). **Alert sources** is the same list as the phone's Alert sources tab, with the same settings, plus the YAML the [alert sources as code](https://tissue.systems/mast/docs/alert-sources-as-code/) reconcile reads. **Incidents** is one row per thing that went wrong, not per message: pages, near-pages, and what dedupe or grouping collapsed, with the open ones and the last 7 days showing by default. Opening one shows what the phone got and what Mast knows about it: the checks or the silence that opened it, and a **Timeline** of who was paged, who acknowledged it and from which device, and what closed it. **Export 90 days as CSV** downloads the table. [Incidents](https://tissue.systems/mast/docs/incidents/). **On call** holds rotations and escalation policies: who gets a page, in what order, and how long to wait between steps. [On call](https://tissue.systems/mast/docs/on-call/). **Status pages** are public pages for your users. [Status pages](https://tissue.systems/mast/docs/status-pages/). **Devices** is the link code and the list of your phones and watches, above. Each one has **Send a test**, which sends a single loud push to that device alone, and a device Apple or Google has stopped accepting pushes for is marked as not reachable. **Members** lists the people on the account, their role and whether they've linked a phone. **Plan and billing** shows the Mast plan, the subscription and each cap against what you're using; card, receipts and cancelling are on the billing portal it links to. **Plans**, under it, is the ladder with the same numbers as the [pricing page](https://tissue.systems/mast/pricing/). [Billing](https://tissue.systems/mast/docs/billing/). **Activity** has the audit log and **Take your data with you** (one export every five minutes). **Sign-in and security**, in the menu under your address at the top right, has your passkeys and **Unlink your phone**, which detaches the phone so it can be linked to another login. These follow you from account to account. On Company and Enterprise, the same page has the account's **single sign-on** for its owners: see [Single sign-on](https://tissue.systems/mast/docs/sso/). **API tokens** mints `tok_…` tokens for scripts, ribo and anything else that talks to the API. Each has a name and the scopes it may use, and the token is shown once. `mast:read` and `mast:write` are the Mast scopes; the same tokens carry the [platform scopes](https://docs.tissue.systems/docs/api/) too. [The API](https://tissue.systems/mast/docs/api/) has what a token can do. --- # Get started / Glossary Source: https://tissue.systems/mast/docs/glossary/ # Glossary Every word Tissue Mast uses for something of its own, in one place. Where the API or a config file uses a different name, it's in the right-hand column, because the API kept the names it shipped with. If you're moving from another tool, [Coming from PagerDuty](https://tissue.systems/mast/docs/coming-from-pagerduty/), [Coming from Opsgenie](https://tissue.systems/mast/docs/coming-from-opsgenie/) and [Coming from Grafana OnCall](https://tissue.systems/mast/docs/coming-from-grafana-oncall/) match these words to the ones you know. --- ## Levels Every alert goes out at one of four levels. The level is about what the phone does, not how bad the problem is. | Level | What the phone does | |---|---| | quiet | No sound, shows in the list | | normal | Sound and banner, Do Not Disturb silences it | | loud | Breaks through Focus, Do Not Disturb still silences it | | page | Rings through silent mode and Do Not Disturb, and repeats until someone answers | "Page" means only that top level. A page on a phone needs **Critical Alerts** turned on, which is Apple's name for the permission, and only the phone can give it. A sender using another tool's words (`critical`, `high`, `P1`, Pushover's numbers) is translated: [Priority names from other tools](https://tissue.systems/mast/docs/send/#priority-names-from-other-tools). ## Words | Word | What it means | In the API | |---|---|---| | **Alert source** | Somewhere alerts come from: a URL with its own key that you post to, with its default level, highest level, mute hours, grouping and escalation policy. [Alert sources and levels](https://tissue.systems/mast/docs/alert-sources/) | `/v1/mast/alert-sources`, `mc_` ids, `alert_source_id`; the older `channel` spellings are still accepted | | **Send URL** | An alert source's address, `https://mast.tissue.dev/mk_…`. The URL is the credential, so anything holding it can send to that alert source and nothing else | `url` | | **Send key** | The `mk_…` part of the send URL, for senders that take a key in a header | `mk_` key | | **Default level** | The level a send gets when it doesn't name one | `default_priority` | | **Highest level** | The loudest level an alert source may deliver at. A send asking for more is lowered to it and the answer says `"capped": true`. Only the phone can allow page. [The highest level](https://tissue.systems/mast/docs/alert-sources/#the-highest-level) | `max_priority` | | **Mute hours** | A daily window on one alert source when it arrives without a sound. A page still rings | `quiet_start`, `quiet_end`, `quiet_tz` | | **Mute** | Silencing one alert source for a while, 15 minutes to tomorrow morning. A page still rings | `muted_until` | | **Off hours** | A person's own hours off, set in the app and shown on the On call screen | | | **Dedupe** | An identical message, or one with the same `key`, inside the dedupe window merges into the card already there and counts up on it | `dedupe_window_secs`, state `deduped` | | **Grouping** | When an alert source floods, the pushes past the grouping threshold collapse into one card with a count. A page is never grouped away | `storm_threshold`, `storm_window_secs`, state `suppressed` | | **Incident** | One thing that went wrong, from the first alert to the recovery: a site down for twenty minutes is one incident. [Incidents](https://tissue.systems/mast/docs/incidents/) | a message, `/v1/mast/messages`, `mm_` ids | | **Timeline** | On an incident, the record of who was notified, at what level, on which device, who acknowledged and what closed it | | | **Acknowledge** | Saying "I've got it". Stops the repeats and the escalation. It doesn't close the incident | `ack` | | **Resolve** | Closing an incident, from the phone, the web app or the sender with `resolve=1` | `resolve` | | **Heartbeat** | A send URL that expects to hear from a job on a schedule, and pages when it doesn't. [Heartbeats](https://tissue.systems/mast/docs/heartbeats/) | kind `heartbeat` | | **Beat** | One request to a heartbeat's URL, saying the job ran | | | **Grace** | How late a beat may be before anyone is told | `grace_secs` | | **Waiting, Up, Late, Down, Paused** | A heartbeat's states: no beat yet; beating on time; overdue but inside the grace, nobody told; past the grace, someone is being paged; paused by you | `heartbeat_state`: `pending`, `alive`, `late`, `flatline`, `paused` | | **Run limit** | The longest a run may take between its start and its end before it counts as failed. [A run that takes too long](https://tissue.systems/mast/docs/heartbeats/#a-run-that-takes-too-long) | | | **Probe (uptime check)** | A URL or port Tissue Mast checks for you from eight places. [Probes](https://tissue.systems/mast/docs/probes/) | | | **Check** | One run of a probe from every place at once. Two down checks in a row turn a probe down | | | **Places** | Where the checks run from: eight places on six networks. [Where the checks run from](https://tissue.systems/mast/docs/probes/#where-the-checks-run-from) | | | **Escalation policy** | Who gets a page, in what order, and how long to wait between steps. [On call](https://tissue.systems/mast/docs/on-call/#escalation-policies) | `/v1/mast/policies` | | **Rotation** | A list of people who take turns being on call, handing off daily, weekly or on a custom length | | | **Override** | Someone covering another person's turn for a day or a few hours | | | **Device** | A phone or watch running Mast Pager and linked to your login. [Linking your phone](https://tissue.systems/mast/docs/start/#linking-your-phone) | `/v1/mast/devices`, `md_` ids | | **Link code** | The eight-character code that links a phone to your login, from **Get a link code** under Devices | | | **Status page** | A public page that shows your users what your probes and heartbeats see. Always "status page", never a bare "page". [Status pages](https://tissue.systems/mast/docs/status-pages/) | | | **Destination** | Somewhere Mast reports events to: a webhook, Slack, Discord, Teams or email. It never takes the place of the page. [Destinations](https://tissue.systems/mast/docs/destinations/) | | | **Maintenance window** | A time when the alerts it covers arrive without a sound. [Maintenance windows](https://tissue.systems/mast/docs/maintenance/) | | | **Deploy marker** | One request at the end of a deploy that checks every probe on the alert source and names the deploy on any page within the hour. [Deploys](https://tissue.systems/mast/docs/deploys/) | | | **Mast Pager** | The app for iPhone and Android that rings. [Mast Pager](https://tissue.systems/mast/docs/pager/) | | ## The words that changed Older posts, screenshots and scripts may use the names these words replaced. They mean the same thing: | Older word | Word used here | |---|---| | channel | alert source | | channel URL, channel key | send URL, send key | | ceiling | highest level | | storm, storm fold, folded | grouping, grouped | | route, on an incident | Timeline | | flatline, flatlined | down | | Phones | Devices | | quiet hours, on an alert source | mute hours | | quiet hours, for a person | off hours | | round, probe round | check | | locations, cities | places | --- # Get started / Watch a cron job Source: https://tissue.systems/mast/docs/start-cron/ # Watch a cron job A cron job that stops running doesn't send an error. It just stops, and you find out when you need the backup. A **heartbeat** turns that silence into a page: the job checks in when it finishes, and a missed check-in is the alert. This takes two minutes and works on Free. --- ## 1. Make a heartbeat In the [web app](https://dashboard.tissue.systems/mast/heartbeats), **Heartbeats**, then **New heartbeat**. Give it a name, `backups`, and say how often the job runs: every hour, every day, or a crontab line like `0 3 * * *` with its time zone. Give it some **grace**: how late is still fine. A backup that usually takes four minutes and sometimes twenty wants twenty minutes of grace, not five. It hands you a URL and the line to paste. ## 2. Add one line to the job Put the check-in on the end of the crontab entry, after `&&`, so it only runs when the job succeeded: ```bash 0 3 * * * /usr/local/bin/backup.sh && curl -fsS -m 10 --retry 3 https://mast.tissue.dev/mk_0c47e2a91d ``` A failed backup, a cron daemon that died and a box that's powered off are all the same thing now: one missing check-in, and one page. ## 3. Check it Run the job by hand once. The heartbeat's row shows the beat and when the next one is due. If you have Mast Pager on your phone, the dot for `backups` on the wall at the top of the feed turns green. --- ## Telling it the job failed A job that knows it failed doesn't have to wait to be missed. Send its exit status and Tissue Mast pages at once, with the code on the card: ```bash 0 3 * * * /usr/local/bin/backup.sh; curl -fsS -m 10 --retry 3 https://mast.tissue.dev/mk_0c47e2a91d/$? ``` `/0` is a clean run and anything else is a failure. [Run signals](https://tissue.systems/mast/docs/run-signals/) adds a start signal too, so a run that hangs is caught before the next one is due, and [Heartbeats](https://tissue.systems/mast/docs/heartbeats/) has schedules, run limits, GitHub Actions and Cells. --- # Monitors / Probes Source: https://tissue.systems/mast/docs/probes/ # Probes A probe is a heartbeat we run for you. Instead of your job checking in with Mast, Mast checks on your URL, port, certificate, DNS record, host or mail server on an interval, and pages you through an alert source when it stops answering. Probes live in the [web app](https://dashboard.tissue.systems/mast/probes) under **Probes**, and in the API under `/v1/mast/probes`. They need a Tissue Mast account; the phone app alone has [heartbeats](https://tissue.systems/mast/docs/heartbeats/), which cover the case where the thing being watched can make an outbound request. Down is the only state that pages. Everything else a check can find is shown on the probe, on the overview and on a status page, and stays quiet. --- ## Making one **New probe** asks for three things: the address, a name, and where the alert goes. The name is optional, and a probe without one is called by its target. Type `kieft.us` and the form makes it `https://kieft.us`. Everything else has a default: a `GET` that expects `200`, every minute (every 5 minutes on Free), from every place. **More checks** opens the rest of the form, and the line beside it says what the probe will do as it stands. **Check now**, beside the address, runs the check once from every place before anything is saved and prints a line per place. A mistake in the address shows up there instead of as a page a minute later. The form checks each field as you leave it and puts what's wrong under that field. A target Mast would refuse, such as a private address or one of Tissue's own names, is refused there, before you save. **Several at once.** The address box takes more than one target: one per line, a pasted list of host names, or a zone file, from which Mast takes the names of the `A`, `AAAA` and `CNAME` records. Each line becomes its own probe with the same settings, named after its target. The form counts them against your plan before making any, and afterwards lists each line with what happened to it. After a save the app shows the first check, says where a page would go, and offers **Add another like this**, which opens the form again with the same settings and an empty address. If no phone is linked to the account, that screen offers to link one. Otherwise it offers a test page through the alert source you picked. The kinds of check under **More checks**: **A URL.** A request to an `http://` or `https://` address, following up to three redirects, with ten seconds for the whole check. It's a `GET` unless you pick `HEAD`, `POST`, `PUT` or `PATCH`. Optional conditions tighten what counts as up: - the **status** the response must have, or several separated by commas, such as `200,301`. With none set, any 2xx or 3xx is fine. - a **header** the response must carry, written `Name: text`. The header's name matches in any case and its value has to contain `text`. `Name:` with nothing after it only asks that the header is there, which suits `Strict-Transport-Security:`. - a string the **body must contain**. - a string the **body must not contain**, for the page that answers 200 and says *maintenance* or *error*. - a **JSON path** and the **value** expected there, for a health endpoint that reports on itself. The path is a JSON pointer such as `/status` or `/checks/0/ok`, or the dotted `status.ok` if you'd rather. The value is read as JSON, so `"ok"`, `true` and `3` mean a string, a boolean and a number, and text that isn't JSON is taken as a string. Leave the value empty and the path only has to exist. A body that isn't JSON fails the check. The body conditions can't go with `HEAD`, since a `HEAD` response has no body, and a probe that asks for both is refused. Only the first 256 KiB of a body is read. **Ignore case** makes both body strings match whatever the case of the page. What Mast sends can be shaped too, for an endpoint that wants a key, a login or a request body: - **request headers**, up to 10 of them, blank ones included, each written `Name: value`, such as `Accept: application/json` or `X-Client: mast`. A value is up to 1024 bytes and the lot up to 4 KiB. Headers are stored as `Name: value` with one space after the colon, blank entries are dropped, and they're shown to anyone who can read the probe, so don't put a key or a cookie in one; use the credentials below. `Host`, `Content-Length`, `Transfer-Encoding`, `Connection` and the other headers that describe the connection rather than the request are set by Mast and refused here. So are `Accept-Encoding` and `Content-Encoding`: Mast reads the body uncompressed, so it can't ask for a compressed one. `Authorization` and `Content-Type` have their own fields below. - **credentials**: basic auth, a user name and password, or a bearer token. They're stored encrypted and never shown again. Reading the probe tells you which kind is set and, for basic auth, the user name. To change the password or token, enter a new one; a new user name needs its password too. Entering the same one again changes nothing and doesn't restart the probe. To remove the credentials, clear them. If the site echoes the secret back, as it was sent in the `Authorization` header, on its own, or escaped inside JSON, it's replaced with `[credential]` before Mast looks at the answer, so it never turns up in a check's detail. Basic auth's encoded header value, the base64 of `user:password`, is replaced with `[credential]` too, whatever the password's length. That also means a condition can't look for the secret itself: **body contains** `Bearer [credential]` matches an echoed token, and a condition or JSON path that holds the actual password or token, or the encoded basic value, is refused when you save the probe. With `ignore_case` on, that refusal ignores case as well, the same way the check does. A password or token shorter than four characters is only replaced where it appears in the `Authorization` header, because hunting for something that short would blank out ordinary text. Moving the probe to another host, port or scheme needs the secret entered again, or the credentials cleared: they were given for the old address, and Mast won't send them anywhere else. - a **request body**, for `POST`, `PUT` and `PATCH` only, up to 16 KiB and sent exactly as written, with its **content type**. A body with no content type goes as `application/json`. Like the headers, the body is shown to anyone who can read the probe, so don't put a key or a password in it. Request headers, credentials and the body go only to the address you gave. A redirect to a different host, port or scheme is followed without them, so a login redirect to another domain never sees your token or your login form. A `303` redirect is followed with a `GET`, and so is a `301` or `302` after a `POST`; the body isn't sent again. A `307` or `308` repeats the request with its method and body while it stays on the same host, port and scheme, and with its method alone once it leaves. A probe sends real requests on every check from every place, so a `POST` that creates something creates it each time. Point it at an endpoint made for health checks, or one that's harmless to repeat. **A port.** `host:port`, for databases, MQTT and anything else that isn't covered below. With nothing else filled in, Mast opens a TCP connection to `host:port` and closes it, sending nothing. Two optional fields turn that into a short conversation: - **send**: text to write once the connection is open, up to 1024 bytes. Write `\r`, `\n` and `\t` for carriage return, newline and tab, and `\\` for a backslash, so a Redis check sends `PING\r\n`. - **reply contains**: text the server's answer has to contain, such as `+PONG`. With nothing to send, Mast reads what the server says first, which is how you check a banner on an FTP or SSH port. Up to 4 KiB of the reply is read, within the check's deadline. **Ignore case** applies to the reply match. A server that closes the connection without saying the text, or says something else, fails the check. **A certificate.** `host` or `host:port`, port 443 when you leave it out. Mast connects, does a TLS handshake, checks that the chain is trusted and the certificate is for that name, and hangs up without sending an HTTP request. That makes it the probe for a TLS service that isn't a website (an IMAPS or LDAPS port, a mail server on 465) and for a site where you care about the certificate and not the page. An untrusted chain, a certificate for another name or one that has expired is down. One with less than 14 days left is class `tls` and stays up. **A DNS record.** The name to look up, such as `example.com`, and one record type: `A`, `AAAA`, `CNAME`, `MX`, `TXT` or `NS`, `A` when you don't pick. An IP address isn't a name and is refused. Mast asks a public resolver and judges the answer. NXDOMAIN, SERVFAIL, a refusal, or an answer with no record of that type is down, and so is a resolver that doesn't answer within four seconds. Three optional conditions: - **a record is**: one record has to be exactly this. Names compare without case or the trailing dot, an `MX` can be given as `mx.example.com` or with its preference as `10 mx.example.com`, addresses compare as addresses, and a `TXT` record has to match character for character. - **a record contains**: text one of the records must contain, such as `v=spf1` in a `TXT` record. - **records are exactly**: the whole answer, one value per line or separated by commas. The records have to be that set, no more and no fewer, in any order, with names compared without case or the trailing dot. It's the condition for an `NS` or `MX` set that should never change, where an extra record means someone else has been at your zone. The **resolver** is the one to ask, an IP address with an optional port (53 otherwise). Leave it empty and Mast asks 9.9.9.9, and asks 8.8.8.8 when 9.9.9.9 answers SERVFAIL or doesn't answer within four seconds, so one public resolver's bad minute isn't counted against your domain. NXDOMAIN or an empty answer from 9.9.9.9 is believed and not asked again. When both fail, the check fails, and a SERVFAIL from either is the reason it gives. A resolver you name is asked alone. A resolver given by name is refused, and so is a private one. **A ping.** A host name or an IP address, no port. Mast sends three pings, one after another, and waits two seconds for each. Any reply means the host is up. Losing two of the three makes the check `slow`, which shows on the probe and on a status page as degraded and pages nobody. No reply at all fails the check. A name with several addresses is pinged at the first one. Some of the places we check from aren't allowed to send pings at all; they sit out ping checks instead of counting as failures, and a verdict is made on the places that can. **A mail server.** `host:port`, port 25 when you leave it out. Mast connects and wants a `220` greeting. How far it goes after that is up to you: - **Banner only** reads the greeting and says `QUIT`. - **EHLO** also sends `EHLO`, which has to be answered `250`. - **STARTTLS** goes on to `STARTTLS`, which the server has to offer and accept, then does a TLS handshake and checks the certificate the way a certificate probe does. A string the **banner must contain** is optional, and **ignore case** makes it match in any case. No mail is ever sent: the check never gets as far as `MAIL FROM`. Port 465 speaks TLS from the first byte, with no greeting in the clear, so check it with a certificate probe on `host:465` instead. Each place says its own name in `EHLO`, such as `probe-us-w.tissue.systems`, and each name resolves back to that place's address. The names are listed with the addresses at [tissue.systems/mast/probes](https://tissue.systems/mast/probes). **A refusal is not down.** Mail servers turn away connections they don't like the look of, and the reasons have nothing to do with whether the server is up: an address on a blocklist, a reverse DNS check, a reputation score, or no reason given at all. A greeting that refuses us with a `5xx` code, or a `4xx` that names a reason about us, such as a blocklist or too many connections, is class `blocked`, shown on the probe as *refused*. It never pages and never closes an outage. A place deferred with a `4xx` like that also leaves the server alone for 15 minutes. A `421` with no reason, or one that says the service isn't available, is the server saying it's unwell, and that fails the check like any other failure. When every place that voted in a check was refused, the probe's alert source gets one quiet notice, *``: every place was refused*, at `normal` with no acknowledgement and no repeat. It isn't sent again until a check gets through and then everyone is refused again. To stop the refusals, ask whoever runs the server to allow our addresses or EHLO names. Or check port 587 instead: servers there expect clients, not other mail servers, and rarely refuse by address. **Port 25 is checked at most every 5 minutes**, whatever your plan allows. Mail servers throttle and blocklist addresses that connect to port 25 often, and a probe that knocked every 30 seconds would soon be refused everywhere. A shorter interval is refused when you save the probe. Port 587 and every other port take your plan's floor. Some of our places can't reach port 25 at all, because their network blocks it; they sit out port-25 checks instead of counting as failures. **Interval.** Every 30 seconds, minute, 2, 5, 10, 15 or 30 minutes, or every hour. Free checks no more often than every 5 minutes; every paid plan goes down to 30 seconds. An interval below your plan's floor is greyed out in the form and refused by the API with the floor in the error. A mail server on port 25 has a floor of 5 minutes on every plan. **Send alerts to.** Where the page goes. With one alert source on the account, it's already selected. With several, the form opens on the one your newest probe uses. With none, the form asks for a name and makes the alert source when you save. **New alert source**, the last line of the list, does the same at any time. An alert source made this way sends at `loud`; raising it to `page`, which rings through Do Not Disturb, is done in Mast Pager on your phone. **Nobody** lists the probe and sends nothing. Adding an alert source to a probe that's already down sends its alert straight away, and the app says so when you save. A probe with no alert source is checked and shown and pages nobody, and the probe's page says so in those words. A probe pages at the alert source's default level, capped by the alert source's highest level as any send is, so a probe on an alert source whose highest level is `loud` can never wake you. Pick an alert source made at **page** for the things that should. The same fields over the API: ```bash curl -X POST https://api.tissue.systems/v1/mast/probes \ -H "Authorization: Bearer $TOKEN" -H "content-type: application/json" \ -d '{"name":"homepage","kind":"http","target":"https://example.com/", "expect_status":200,"body_contains":"","max_ms":2000, "interval_secs":300,"alert_source_id":"mc_9f2a41c8"}' ``` `kind` is `http`, `tcp`, `tls`, `dns`, `icmp` or `smtp`. `paused: true` saves the probe without starting it. A duplicate is a probe that checks exactly the same thing as one you already have: the same kind, target and every expectation. It's refused with `409 duplicate_probe` and the other probe's id in `existing_id`, so a create retried after a timeout doesn't make two. Two probes on one address that expect different things aren't duplicates. A field a probe doesn't have is refused with `400 unknown_field` on a create, an edit and a check before saving, so a misspelt `interval` can't save a probe on the default interval without telling you. The error names the field in `field` and, when it's close to a real one, the one you meant in `did_you_mean`. The fields a probe comes back with (`id`, `state`, `last_checked_at`, `recent`, `last_round`, `incident_id` and the rest) are ignored when you send them back, so a `GET` can be edited and sent as a `PATCH`. Listing and reading are `GET`, editing is `PATCH` and deleting is `DELETE` on the same path, with the token's `mast:read` scope to read and `mast:write` for the rest. Pausing is a `PATCH` with `{"paused": true}`, and `false` resumes. Each kind reads its own fields, and a field another kind reads is refused rather than ignored: | Field | Kinds | Meaning | |---|---|---| | `target` | all | A URL for `http`, `host:port` for `tcp`, `host` or `host:port` for `tls` and `smtp`, a host or address for `icmp`, a name for `dns` | | `method` | `http`, `dns`, `smtp` | `GET` (the default), `HEAD`, `POST`, `PUT` or `PATCH` for `http`; the record type for `dns`, `A` by default; `EHLO`, `STARTTLS` or empty for the banner alone for `smtp`. `""` or `null` sets the default back, which a probe with a `request_body` refuses | | `expect_status` | `http` | The one status that counts as up, or `0` for any 2xx or 3xx | | `expect_statuses` | `http` | Several statuses that count as up, comma-separated (`200,301`). When set, it replaces `expect_status` | | `expect_header` | `http` | `Name: text`, a header the response must carry with `text` in its value; `Name:` alone only asks that it's there | | `body_contains` | `http`, `dns`, `smtp`, `tcp` | Text the body, one of the records, the banner or the reply must contain. Up to 200 bytes | | `body_not_contains` | `http` | Text the body must not contain. Up to 200 bytes | | `ignore_case` | `http`, `smtp`, `tcp` | `true` to match `body_contains` and `body_not_contains` in any case | | `send` | `tcp` | Text to send after connecting, with `\r`, `\n`, `\t` and `\\` decoded. Up to 1024 bytes | | `expect_set` | `dns` | Every record the answer must hold and nothing else, comma- or newline-separated | | `json_path` | `http` | A path into a JSON body, `/status` or `status.ok`. Up to 200 bytes | | `expect_value` | `http`, `dns` | The value at `json_path`, as JSON or a bare string, empty to ask only that the path exists; for `dns`, a record the answer must hold | | `resolver` | `dns` | `ip` or `ip:port`, empty for the default pair | | `request_headers` | `http` | Headers to send, a list of `"Name: value"` strings, up to 10 entries counting blank ones. `User-Agent` is refused: every check says it's from Tissue Mast. `[]` or `null` removes them. Shown back as `Name: value`, so not for secrets | | `request_body` | `http` | What to send with `POST`, `PUT` or `PATCH`, up to 16 KiB. `""` or `null` removes it, and its content type with it. Shown back as written, so not for secrets | | `request_content_type` | `http` | The body's `Content-Type`, `application/json` when a body comes without one | | `auth` | `http` | `{"type":"basic","username":"…","password":"…"}` or `{"type":"bearer","token":"…"}`, `null` to remove. Comes back as `{"type":"basic","username":"…","password_set":true}` or `{"type":"bearer","token_set":true}`, never with the secret. An edit that gives the same `type`, and for basic the same `username`, without the secret keeps the stored one. A `target` on another host, port or scheme needs the secret sent again, or `null` | | `max_ms` | all | Above this an answer is `slow` | | `expect` | all | `up` (the default) or `down`, for a target that should stay unreachable. See [Check that something stays down](#check-that-something-stays-down) | `POST /v1/mast/probes/check` takes the same body and runs it once from every place without saving anything. It's what **Check now** on the form calls. `alert_source_id` (or `channel_id`), `policy_id`, `paused` and `domain_expiry` are accepted and do nothing, and neither the probe count nor the duplicate check applies. It waits up to 20 seconds and answers with a verdict, a line per place, and the check in one sentence: ```json { "verdict": "down", "ok": false, "places": [ {"at": "2026-11-01T10:00:02.000Z", "vantage": "us-w", "ok": false, "status": 404, "ms": 90, "detail": "HTTP 404, expected 200", "cause": "HTTP 404, expected 200", "class": "down", "answer": "wrong"} ], "round": {"at": "2026-11-01T10:00:00.000Z", "places": 2, "expected": 0, "wrong": 2, "none": 0, "not_counted": 0, "status": 404, "cause": "HTTP 404, expected 200", "summary": "2 of 2 places got a wrong answer: HTTP 404, expected 200"} } ``` `verdict` is one of `ok`, `slow`, `tls`, `down`, `regional`, `partial`, `blocked`, `policy` or `inconclusive`. It shares the six-a-minute allowance with a saved probe's check, and one host can be tried once every 30 seconds (5 minutes on port 25); sooner than that is a `429` with the seconds left in `retry_after`. A check that doesn't finish in 20 seconds answers `503` and keeps nothing. Changing a probe's `kind` empties the fields the old kind read, apart from the ones the same request sets again. An `expect_value` on an `http` probe needs a `json_path`. A text field that's empty comes back as `null`. A health endpoint behind a token, asked with a `POST`. This one needs `example.com` [proven yours](#sites-you-own) first: ```bash curl -X POST https://api.tissue.systems/v1/mast/probes \ -H "Authorization: Bearer $TOKEN" -H "content-type: application/json" \ -d '{"name":"api health","kind":"http","target":"https://api.example.com/health", "method":"POST","request_body":"{\"deep\":true}", "request_headers":["X-Client: mast"], "auth":{"type":"bearer","token":"'"$HEALTH_TOKEN"'"}, "json_path":"/status","expect_value":"ok", "interval_secs":60,"alert_source_id":"mc_9f2a41c8"}' ``` A DNS probe for a mail domain's MX record, asked of a resolver you name: ```bash curl -X POST https://api.tissue.systems/v1/mast/probes \ -H "Authorization: Bearer $TOKEN" -H "content-type: application/json" \ -d '{"name":"mail MX","kind":"dns","target":"example.com","method":"MX", "expect_value":"mx.example.com","resolver":"9.9.9.9", "interval_secs":300,"alert_source_id":"mc_9f2a41c8"}' ``` ### What a probe may check A probe reaches public addresses only, whatever its kind. A target, a DNS probe's resolver and every address a target's name resolves to have to be public: loopback, private ranges, link-local, carrier-grade NAT and the other reserved spaces are refused, and so are `localhost` and names under `.internal`. A name that resolves to a public address and a private one is refused as a whole rather than half-used. The check runs when the probe is saved and again at every check, because a name that resolved to a public address on Monday can resolve to a private one on Tuesday. Every redirect hop is resolved and checked the same way. A probe whose name starts resolving into denied space shows *not a public address* on every check until you fix the name or the probe. A DNS probe's target is the name being asked about, not a host anyone connects to, so it isn't resolved here; the resolver it's sent to is the address that has to be public. Tissue's own service names are refused too: `tissue.systems` and anything under it, and names like `mast.tissue.dev` and `edge.tissue.dev`. Your Cells at `<cell>.<account>.tissue.dev` are yours and fine to check. On the addresses our edges serve from, a probe reaches ports 80 and 443 only, which is where your Cells and custom domains answer. A site can ask us to stop checking it. Once it has, a probe aimed at it is refused when you save it and paused if it already exists, with the reason `target_opted_out`, unless you've proven the site is yours. A kind that too few of our places can run yet is refused when you save the probe, with an error that says how many can. A verdict needs at least three places on two networks, and a probe that could never have that would sit inconclusive forever. The same goes for the newer conditions: **body must not contain**, **JSON path**, several statuses, a header and **ignore case** on a URL, **send** and **reply contains** on a port, **records are exactly** on a DNS record, and request headers, credentials, a body or a method other than `GET` and `HEAD` on a URL. A plain URL check and a plain port connect run everywhere and are never refused for this. ### Sites you own A plain `GET` or `HEAD` works on any public URL. Anything more needs the domain proven yours first: a `POST`, `PUT` or `PATCH`, a request body, or credentials. Otherwise anyone could point a probe at someone else's login form and have it posted every 30 seconds from eight places. Add the domain, then publish the proof one of two ways: ```bash curl -X POST https://api.tissue.systems/v1/mast/probe-domains \ -H "Authorization: Bearer $TOKEN" -H "content-type: application/json" \ -d '{"domain":"example.com"}' ``` The answer holds a token. Put `tissue-mast-verify=<token>` in a TXT record at `_tissue-mast.example.com`, or in a file at `https://example.com/.well-known/tissue-mast.txt`, then ask us to look: ```bash curl -X POST https://api.tissue.systems/v1/mast/probe-domains/example.com/verify \ -H "Authorization: Bearer $TOKEN" ``` A proven domain covers its subdomains, so `example.com` covers `api.example.com`. We look again once a day. If the proof is gone, or we haven't been able to read it for eight days because the site or its DNS isn't answering, the domain stops counting as yours, and probes that needed it pause as `domain_unverified` with an email. Put the proof back and verify again to resume them. `GET` lists your domains and `DELETE …/probe-domains/example.com` removes one. A probe saved before this rule keeps running as it is. Changing its target, method, body or credentials needs the proof. Proving a domain also takes your probes on it out of the shared limit below. Checks of one site from every Tissue account that hasn't proven it share about one check a second. A few probes never come near that. Hundreds aimed at one site you don't own get spread out instead of all firing at once. --- ## What a check can find | Class | Meaning | Pages? | |---|---|---| | `ok` | Answered the way you asked | no | | `slow` | Answered, over the **slower than** threshold, or a ping that lost two of its three echoes | no | | `tls` | Answered, and the certificate expires within 14 days | no | | `blocked` | A URL answered 429, or 503 with a `Retry-After` header, or 401, 403, 405 or 503 carrying a known bot filter's fingerprint, or a mail server refused us (shown as *refused*) | no | | `partial` | Failed from one place, or from places on one network, while the rest reached it | no | | `regional` | Failed from two or more networks, but most places still reached it | no | | `down` | Failed from most places, on two or more networks | yes, once confirmed | A place's check fails when the site refused the connection, timed out, failed TLS, served an expired certificate, redirected more than three times, answered the wrong status, answered without the string or with the one it must not have, or answered JSON without the value. For the other kinds it fails on a certificate nobody trusts or that names another host, a DNS answer that is NXDOMAIN, SERVFAIL, empty or missing the record you asked for, no reply to three pings, a port that didn't send the reply you asked for, and a mail server that never greets, isn't speaking SMTP, says it's unavailable, or fails the step you asked for. A mail server that refuses us is `blocked`, not a failure. The classes above are what the answers from all the places add up to. **`blocked` is neither up nor down.** For a mail server, it's the refusal described [above](#making-one). For a URL, the site answered, but a WAF or a CDN's bot filter refused the prober, so the site's own status is unknown. A `429`, or a `503` with a `Retry-After` header, is the site limiting how often we ask, and that's `blocked` too, unless the probe expects that status, in which case it's `ok`. Paging on that would wake you for something your own CDN did on purpose, so it never pages, and it never closes an outage that was already confirmed either. The probe's page names the vendor when the fingerprint is recognisable and tells you what to allow: a rule for the probe's vantage in the service in front of your site. The addresses to allow, and the User-Agent every probe sends, are at [tissue.systems/mast/probes](https://tissue.systems/mast/probes), also as [probes.txt](https://tissue.systems/mast/probes.txt) and [probes.json](https://tissue.systems/mast/probes.json). A probe that stays `blocked` is checking nothing useful until you do, and 72 hours of mostly turned-away checks pauses it (7 days on a domain you've proven yours), unless it [expects its target down](#check-that-something-stays-down). When every place in a check is turned away, the alert source gets the same single quiet notice a refused mail server sends. If Mast ever can't read a probe's saved credentials, no place can check it. That's a fault on our side, but it still leaves the site unwatched, so the probe goes back to `pending` (an outage already confirmed stays `down`), its last result says so, and the alert source gets one quiet notice, *`<name>`: Mast can't read its credentials*. Enter the password or token again and checks pick up on the next check. A check you run by hand in the meantime says the same thing and doesn't count against the probe's uptime. An **expiring** certificate is class `tls` and stays up. An **expired** one fails the TLS handshake and is down. That goes for every probe that sees a certificate: an `https://` URL, a certificate probe, and a mail server probe that goes as far as STARTTLS. ### Certificate notices A probe that sees a certificate also tells you before it runs out. When the certificate has 30, 14 and 7 days left, a notice goes to the probe's alert source at `normal`, and at one day left a `loud` one. These are notices, not pages: they never page, ask for an acknowledgement or escalate, and the alert source's highest level still applies to them. A probe with no alert source sends none. Each certificate gets each notice once. A renewed certificate has a new serial, so its notices start over; the old one's are not sent again. For a URL, the certificate is read on the first `https` hop, an `http://` address that redirects to `https://` included, and read again about every six hours. Once a certificate has expired there is no more notice; the probe is down, and that pages. ### Domain expiry On Team and Company, Mast also watches the registration of the domain behind each probe's target and tells you before it lapses. A probe on `https://www.example.co.uk/` watches `example.co.uk`. We ask the domain's registry once a day over RDAP, the registries' public lookup service, and when the registration has 30 or 14 days left a notice goes to the probe's alert source at `normal`. At 7 days it's `loud`. Like certificate notices, they never page, ask for an acknowledgement or escalate, and the alert source's highest level still applies. Each mark is sent once for each registration. When you renew, the registry gives a date a year or more later and the marks start over. A date that moves by a few days without a renewal, because the registry corrected it, doesn't send a mark again. An alert source gets one notice per mark for a domain however many of its probes watch that domain, and the title names the probe only when one probe does. Probes on the same domain with different alert sources each send to their own. A paused probe sends none, and neither does a probe with no alert source. Some registries don't run an RDAP server, and a few answer without an expiry date. For those domains, and whenever a lookup fails, the probe shows the domain expiry as unknown and sends nothing. An unknown expiry is never a reason to page you. If one lookup fails less than three days after a good one, we keep the date we already had. A probe on an IP address, on a reverse-DNS name under `.arpa`, on a name like `localhost`, or on a bare public suffix like `co.uk` has no domain to watch. A site on a name someone else hands out, like `me.github.io`, watches the domain they registered, `github.io` in that case. To stop the notices for one probe, set `domain_expiry` to `false` on it, and set it back to `true` to turn them on again. In the API, `GET /v1/mast/probes/{id}` and each probe in `GET /v1/mast/probes` show `domain_expiry` with the domain, the expiry date, the days left, the registrar and when it was last looked up. A part day counts as a day, so a domain that runs out in 4 days and 20 hours shows 5. A domain with letters outside ASCII, like `bücher.de`, comes back in both spellings: `domain` is the registry's form, `xn--bcher-kva.de`, and `domain_unicode` is the same name in lowercase Unicode, `bücher.de`. `BÜCHER.de`, `bücher.de` and `xn--bcher-kva.de` are one domain, looked up once a day however many probes watch it. While the probe is paused its `state` is `paused`. ### What down means Every check runs from eight places on six networks at once: they fetch your target, starting a moment apart over about four seconds so they don't all land on your site together, and the probe is judged on what came back. **Down is more than half of them failing, on at least two different networks.** One place failing is `partial`; a continent failing while the rest get through is `regional`. Both are shown and neither pages, because a page for either would mostly be about the internet between us and you, not about your site. Some sites only let so many requests through in a burst. If places on two different networks got the page and every place that failed got a `429` or `503` straight back, the site was up and turning some of us away, so the check is `regional` or `partial`, not down. A place that cannot reach a control site of ours in the same check has lost its own connectivity, and nothing it says counts, its clean answers included. A place that answers after the deadline is not counted either. When fewer than three places could vote, or fewer than half of them, the check is `inconclusive`: nothing changes and nobody is paged. A probe whose checks keep coming out inconclusive is our problem, and we watch for it. ### One failure is a suspicion A down check is re-run 10 seconds later, and only the second down check in a row turns the probe down and pages. Until then the card keeps showing what it showed. Two clean checks in a row close the outage, which resolves the page on every phone it reached, the same way a heartbeat's first beat after a silence does. The page says what was seen and where: the detail of a failing check (*HTTP 502, expected 200*, *connect refused*, *timed out*), what that detail usually means, which places failed and which still answered, and when the failure started, was confirmed, and was last clean. A site that comes back and fails again inside ten minutes pages once more, as *down again*. After that, for half an hour, every further flip is noted on the open incident and pages nobody. A site that stays down past that window is paged for again. ### The path to your site On Team and Company, a place whose check fails also traces the route to your target, the way `traceroute` does: it sends three probes to each hop, up to 30 hops, and keeps each hop's address, how many of the three came back, and the average and worst time. It traces to the address the check used, and a DNS probe traces to the resolver it asked. This happens only when a check fails because nothing answered: a timeout, or a connection that never opened. A wrong status code, a refused connection, a certificate or other TLS error, or a name that doesn't exist got an answer from somewhere, so the path isn't the problem and no trace is taken. Each place traces a probe at most once every ten minutes, so a site that keeps flapping doesn't get traced on every check. Hops that answer from a private address, like your own router or a carrier's internal network, show without an address. When the probe is confirmed down, the page carries one line from that trace, saying where the path stopped answering: *Path from Chicago: last answer from hop 7 (203.0.113.9, 31 ms), nothing past it toward 198.51.100.4.* A hop that answered in under a millisecond shows as *<1 ms*. A path that reached your server while the check still failed points at the server; one that stops partway points at the network in between. Plenty of routers on the internet don't answer traces at all, so a silent hop on its own proves nothing. A site that comes back and goes down again within ten minutes may page without a path line, because the only trace that place has is from the earlier outage. Changing a probe's target, kind or resolver drops its traces, since they describe a different path, and a trace of the old target that was still running when you made the change isn't kept. In the API, each check in `recent` on `GET /v1/mast/probes/{id}` has `answer`, which tells a wrong answer from none: `expected`, `wrong` when the target answered with something the probe doesn't accept, `none` when it didn't answer at all (no such name, a refused connection, a timeout, a TLS failure that isn't about the certificate), and `null` when that place never asked. The probe carries `last_round`, the latest check across every place, `null` before the first one: the counts `places`, `expected`, `wrong`, `none` and `not_counted`, the HTTP `status` when every wrong place got the same one, the `cause`, and `summary`, a sentence such as *3 of 8 places got no answer: no answer within 10 s*. The list has it too when you ask for `?rounds=N`. `incident_id` is the id of the page that's open for the probe, `null` when it isn't down, is paused or pages nobody. Each check also has `fired_at`, when that place sent it, and each failed check carries `trace`: the trace that place took after it, or `null` if it took none. `GET /v1/mast/probes/{id}/traces` lists them newest first by `at`, the time each trace came in, 20 by default and up to 100 with `?limit=`. On Free that call answers `402`. Each trace has the hops, whether the target answered (`reached`), the one-line `summary`, and `error`, which says why a trace couldn't run, for instance when the place can't set the hop limit on its packets or has no IPv6 route to an IPv6 target. When `error` is set, `summary` reads *trace did not run:* and the same reason. A trace is kept as long as the check it followed is still in the probe's history, and never more than 7 days. It goes when the probe is deleted. A place that can't send traces from its network just doesn't add one, and nothing else about the check changes. ### Where the checks run from The places and their networks are listed, with addresses, at [tissue.systems/mast/probes](https://tissue.systems/mast/probes). The probe shows which of them failed and which reached it on every check. A site that refuses one place for half an hour while every other place reaches it, a geo block or a blocklist your provider subscribes to, stops counting that place for that probe. The probe's page lists it, with the time the refusals started; the first clean answer from that place counts it in again. ### Check that something stays down Some things should never answer from the internet: a database port, an admin panel behind a VPN, a staging host, a domain you retired. Set **The target should be** to **Down** on the probe, or send `"expect":"down"` in the API, and the probe reads the other way around. A check that comes out down is ok, and the card says *down, as expected*. A check where the target answered, fast, slow, or with a certificate problem, is down, and pages the same way a site going down does: two checks in a row, with the places it answered from. The card says *up, expected down*. The checks themselves don't change. Each place still reports what it saw, and the probe's page still shows the real result of every check. Uptime and the daily bars count the time the target stayed unreachable as up. `partial`, `regional`, `blocked` and `inconclusive` checks stay what they are and page nobody. A probe that expects its target down isn't paused when its target is gone or keeps turning every place away, since that's what it's there for. The same setting keeps a probe on a site that turns us away. A probe on a site behind a bot filter reads `blocked` on every check, and after 72 hours of that (7 days on a domain you've [proven yours](#sites-you-own)) an ordinary probe [pauses itself](https://tissue.systems/mast/docs/limits/#probes-that-pause-themselves). Set it to expect **Down** and it keeps running: its checks still read `blocked` and page nobody, the alert source still gets the one quiet *every place was refused* notice, and it pages *up, expected down* if the filter ever lets our places through and the site answers. Changing `expect` restarts the probe at `pending`. ```bash curl -X POST https://api.tissue.systems/v1/mast/probes \ -H "Authorization: Bearer $TOKEN" -H "content-type: application/json" \ -d '{"name":"postgres closed","kind":"tcp","target":"db.example.com:5432", "expect":"down","interval_secs":300,"alert_source_id":"mc_9f2a41c8"}' ``` --- ## Reading a probe Each probe has a row on the Probes screen: its state, how many of the recent checks passed, the interval, the vantage, the last result, and a strip of the last hour's checks coloured by class. The list opens with the probes that are down, then the blocked ones, then the rest from slowest to fastest. The **Probe**, **State** and **Last result** headings sort it, and the order is kept in the page's address, so a link to the list carries it. The box above the list finds a probe by name or target, and the menu beside it keeps one state. **Overview** lists any probe that needs a look. A probe that has been checked once shows that check: *8 of 8 places got HTTP 404, expected 200* means the site answered and the answer was wrong, and *0 of 8 places got an answer* means nothing came back. The 90-day strip has one bar per UTC day; tap or hover a bar for that day's numbers. Opening a probe shows the recent checks with their timings and details, the alert source it pages, and three buttons: - **Pause** and **Resume**. A paused probe keeps its history and checks nothing. Pausing a probe that's down closes its open page. - **Check now** puts the probe in the next check, which runs within a few seconds from the usual places under the usual rules, and shows the result under the button, a line per place. It's a real check, so it counts toward opening or closing an outage like any other. It never runs sooner than the probe's interval floor after the last check (30 seconds, or 5 minutes on port 25), and an account can ask six times a minute. The API's answer has `places` and `round`, in the shapes [a check before saving](#making-one) returns. When the check takes longer than 20 seconds, the API answers `202` with `queued: true` and the result shows on the probe when it lands. - **Edit** and **Delete**. An edit that changes what's checked clears the last result, closes the probe's open page and checks the new target at once; the probe's page shows the result. A rename or a different alert source leaves the state and the last result alone. Deleting a probe deletes its check history and closes its open incident with the line *{name} was deleted*. Giving an alert source to a probe that's already down doesn't wait for the next failure. The `PATCH` waits up to 12 seconds for a check and says what happened in `page`: `{"state": "sent", "incident_id": "mm_…", "alert_source_id": "mc_…"}` when the page went out, `pending` when the check hasn't run yet (`incident_id` is `null`; read the probe again and its `incident_id` fills in once the page is sent), or `recovered` when the target answered and nothing was sent. An edit that didn't do that has no `page`, and neither does a create, since a new probe starts at `pending` and pages the usual way. A probe's outage is an incident like any other: it appears under **Incidents** with the checks that opened and closed it, and on any [status page](https://tissue.systems/mast/docs/status-pages/) that lists the probe as a component. --- ## Caps, and probes that pause themselves | | Free | Team | Company | |---|---|---|---| | Probes | 10 | 100 | 1,000 | | Shortest interval | 5 min | 30 s | 30 s | At the cap, **New probe** and the API both say so and name the plan that raises it. Nothing already checking is touched. Probes need a Tissue account, and a free one is enough. The phone app on its own, not connected to an account, can't make them. A probe pauses on its own if its target has been gone for 7 days (the name doesn't resolve, or there's no route to it), if the site has turned most checks away for 72 hours (7 days on a domain you've proven yours), if the site asked us to stop, or if nobody has signed in to the account for 90 days. The account owner gets an email, the reason shows on the probe, and **Resume** starts it again. For the 90 days the email comes a week ahead. A probe that [expects its target down](#check-that-something-stays-down) skips the first two. [Limits](https://tissue.systems/mast/docs/limits/#probes-that-pause-themselves) has the exact rules. --- # Monitors / Heartbeats Source: https://tissue.systems/mast/docs/heartbeats/ # Heartbeats A heartbeat is a send URL that expects to hear from you. Beat it when a job finishes; if a beat doesn't arrive in time, Mast pages the phone that owns the alert source. A failed backup, a dead cron daemon and a powered-off box are all one missing check-in and one page. This page has the whole of it: a bare period or a crontab schedule, a start signal that catches the run which never finished, the beat history, the exit-code form of a beat, the web app screen that shows all of it, and a status badge you can paste into a README. The short forms of a beat (`/start`, `/fail`, the exit code, run ids and the failure threshold) have a page of their own under [run signals](https://tissue.systems/mast/docs/run-signals/). --- ## Making one In the app, **New alert source**, then **Heartbeat** instead of the ordinary kind; a new one starts at every hour with ten minutes of grace. In the [web app](https://dashboard.tissue.systems/mast/heartbeats), **Heartbeats**, then **New heartbeat**, which also hands you the crontab line. Over the API a heartbeat is an alert source with `kind: "heartbeat"` and a period: ```bash 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"}' ``` Every route below takes either the phone's own credential or an account API token, and the token needs `mast:read` to read and `mast:write` to publish a badge. They work before a phone is linked, but nothing rings until [one is](https://tissue.systems/mast/docs/start/#linking-your-phone). `period_secs` is how often you promise to beat. `grace_secs` is how late that may be before anyone is woken. Silence past `period_secs` makes the heartbeat **late** and does nothing else; silence past `period_secs + grace_secs` makes it go **down** and sends a page at `heartbeat_priority`. The next beat closes that page. A new heartbeat starts as **waiting** (`pending` in the API): nothing is counted until its first beat, so one you make on Friday and wire up on Monday pages nobody over the weekend. After a period plus grace with no beat it gets one quiet card saying it's still waiting, and that's all it gets. A heartbeat is only swept while it watches something. Set `period_secs`, `schedule` and `max_duration_secs` all to 0 or `""` and nothing sweeps it, so it never goes late. That's how you park one without deleting it. Clearing only `period_secs` on a heartbeat that also has a schedule leaves the schedule watching. The app and the web app show five states for a heartbeat: **Waiting** until its first beat, **Up**, **Late** once a beat is overdue, **Down** once the grace has run out too, and **Paused**. The API calls them `pending`, `alive`, `late`, `flatline` and `paused`. When a heartbeat goes down, [webhooks](https://tissue.systems/mast/docs/destinations/#events) get `heartbeat_down`, and `vital_flatline` with the same payload for receivers that already read that name. A heartbeat can watch three different things, and it needs at least one of them: | Field | Watches | Fails when | |---|---|---| | `period_secs` | How long between beats | Nothing heard for longer than the period allows | | `schedule` | That the beat lands on a crontab | A fire came and went with no beat behind it | | `max_duration_secs` | How long one run may take | A run opened and is still open past the limit | `period_secs` and `schedule` answer the same question two ways, so a heartbeat that sets both is judged on the schedule and the period is ignored. `max_duration_secs` is independent and stacks with either. Each plan includes a number of heartbeats. Past it, a create answers `402` with `plan_limit`, says which plan and how many, and carries `limit` and `used`. Archive one or move up a plan; [Limits](https://tissue.systems/mast/docs/limits/) has the numbers. Beats, history and badges are never rationed; the count is of live heartbeats on the account. --- ## Beating it The plain beat is a POST to the send URL with nothing in it, which is what lets a crontab line be one `curl`: ```cron 17 3 * * * /usr/local/bin/backup.sh && curl -fsS -m 10 --retry 3 https://mast.tissue.dev/mk_8e2a… >/dev/null ``` `-m 10` gives up on a request that hangs, and `--retry 3` tries again after a timeout or a 5xx, waiting a little longer each time. `mast.tissue.dev` answers from more than one host, and curl already moves to the next address when it can't connect, so the retries cover the rest: a host that went away after DNS handed it out, or a reply that never came. A beat that arrives twice is still one beat. ### With the exit status `&&` only beats when the job succeeds, and says nothing at all when it fails. The heartbeat waits out its grace window before anyone hears about it. Put the exit status in the path instead and the failure is reported the moment it happens: ```cron 17 3 * * * /usr/local/bin/backup.sh >/tmp/backup.log 2>&1; \ curl -fsS -m 10 --data-binary @/tmp/backup.log \ "https://mast.tissue.dev/mk_8e2a…/$?" >/dev/null ``` `$?` is the shell's exit status of the command before it, so the route sees `0` on success and the real status on failure: | Path | What happens | |---|---| | `POST /mk_…/0` | A beat. The heartbeat stays up and nothing rings, whatever the body says | | `POST /mk_…/17` | Down, right now. The card reads `nightly-backup exited 17` | | `POST /mk_…/fail` | Down the same way, with no status to name. The card reads `nightly-backup failed` | `0` is a beat even when the body carries warnings. A job that prints to stderr on a good run shouldn't wake anybody, so on this route the exit status is the whole message and the text is only logged. The code has to be an integer from 0 to 255. Anything else (`abc`, `256`, `-1`, an empty segment) answers the same flat `404` an unknown key gets, because the caller holds a key and nothing else, and a more specific refusal would describe the alert source behind it. Whatever you send as the body is kept as the job's output: up to 16 KiB on the wire, of which the history keeps the first 4096 characters. `--data-binary @file` is the usual way to hand it a log. ### From a Cell The beat belongs in the [pulse handler](https://docs.tissue.systems/docs/pulse/api/), on the path that finished: ```js export default { async pulse(event, env) { const rows = await sweep(env); await fetch(`${env.HEARTBEAT_URL}/0`, { method: "POST", body: `swept ${rows} rows` }); }, }; ``` A throw before that `fetch` sends nothing, and the heartbeat goes down on its own once the grace window closes. ### From GitHub Actions A scheduled workflow is a common thing to put a heartbeat on. In a **public** repository, GitHub disables a workflow's `schedule` trigger after 60 days with no commit to the repository. Tags, issues, releases and merges from a fork do not count; only a push to a branch resets the clock. The Actions tab shows no error, and the disable also stops the workflow's other triggers (`workflow_dispatch` included) until somebody re-enables it. Private repositories are not affected. From our side a workflow disabled this way looks exactly like a job that died: the beats stop and the heartbeat goes down. We cannot tell the two apart, and we do not try. If the repository is public and the page says the heartbeat went quiet a couple of months after the last commit, check the workflow's page on GitHub first; a yellow banner there means the fix is one click and the alert was benign. The recipe below beats a heartbeat and keeps itself enabled without a commit. The re-enable call is the same endpoint the Actions tab's button uses, and calling it on a workflow that is still enabled resets the 60-day clock; the token the workflow already has can make the call once it is granted `actions: write`. ```yaml name: nightly on: schedule: - cron: "17 3 * * *" workflow_dispatch: permissions: contents: read actions: write # the keepalive step jobs: nightly: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: ./nightly.sh - name: Beat the heartbeat if: always() run: | curl -fsS -m 10 --retry 3 -X POST "${{ secrets.HEARTBEAT_URL }}/${{ job.status == 'success' && 0 || 1 }}" \ --data-binary "run ${{ github.run_id }} ${{ job.status }}" - name: Keep the schedule enabled if: always() env: GH_TOKEN: ${{ github.token }} run: gh api --method PUT "repos/${{ github.repository }}/actions/workflows/nightly.yml/enable" ``` `if: always()` runs both steps whether or not `nightly.sh` failed, and the exit-code segment tells the heartbeat which it was. `nightly.yml` in the last line is the workflow's own file name. If you would rather not grant `actions: write`, `gautamkrishnar/keepalive-workflow` does the same thing with an empty commit instead, at the cost of one commit every so often in the history. The heartbeat's URL is a write capability; keep it in a repository secret, never in the workflow file, because a public repository's history is public forever and a key seen in it has to be rotated. --- ## On a schedule instead of a period A period is a stopwatch: beat every 86400 seconds, whenever those seconds start. That's the wrong shape for a job that runs at 03:17, because a beat at 03:17 on Monday and one at 03:16 on Tuesday are 86340 seconds apart and the stopwatch has nothing to say about it. A schedule is the crontab itself: ```bash curl -X PATCH https://api.tissue.systems/v1/mast/alert-sources/nightly-backup \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"schedule": "17 3 * * *", "schedule_tz": "America/Los_Angeles", "grace_secs": 1800}' ``` Five POSIX fields (minute, hour, day of month, month, day of week) with ranges, lists and steps: `*/15`, `0,30`, `1-5`, `17 3 * * 1-5`. Day of week is 0 to 6 with Sunday 0, and 7 is also Sunday, which is what a line lifted straight out of a real crontab means. Names work too: `mon`, `fri`, `jan`. `schedule_tz` is an IANA zone name such as `America/Los_Angeles` or `Europe/Berlin`, a fixed offset like `+02:00`, or empty for UTC. Prefer the name. A backup written as `17 3 * * *` at a fixed `-08:00` runs an hour off for eight months of the year; the name follows the clocks. The two rungs are the same, hung off the last fire instead of a stopwatch. Past the fire the heartbeat is **late**; past the fire plus `grace_secs` it goes **down**, and the card names what it was waiting for: *No beat for 1200s; expected 03:17 America/Los_Angeles daily.* A weekly heartbeat stays quiet for six days on purpose: it's the fire that's compared against the last beat, not the clock. **A schedule needs a `grace_secs` above zero,** and a create or patch that would leave it at zero is refused. On a period, zero is honest: the period is itself the wait. On a schedule it means "page the second the minute ticks", which is before the job has started, let alone reported. Give it the time the job actually takes plus room. A schedule that doesn't parse pages nobody. The API refuses the ones it can see at write time, and the sweep treats anything it can't read as owing nothing. The edit that broke it was made at a desk and the page it would cause arrives at 03:00. --- ## A run that takes too long Everything above notices a job that stopped. None of it notices a job that started and never finished, the one that's been holding a lock for six hours. Say the run began: ```bash curl -fsS -m 10 --retry 3 -X POST https://mast.tissue.dev/mk_8e2a…/start /usr/local/bin/backup.sh >/tmp/backup.log 2>&1 curl -fsS -m 10 --retry 3 --data-binary @/tmp/backup.log "https://mast.tissue.dev/mk_8e2a…/$?" ``` With `max_duration_secs` set, a run still open past that many seconds goes **down** immediately. There's no `late` rung under it, because that number is you writing down the longest this job may honestly take: ```bash curl -X PATCH https://api.tissue.systems/v1/mast/alert-sources/nightly-backup \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"max_duration_secs": 5400}' ``` The card reads *nightly-backup is still running* rather than *stopped reporting*, because those are different incidents with different first moves. An overrun outranks a silence: while a run is in flight the last beat is by definition older than the run, so a long job trips the silence threshold as a side effect of doing what it was told. **A start is not a beat.** It moves neither `last_ping_at` nor the heartbeat's state, and it pages nobody. A job that starts every hour and never finishes is exactly what a heartbeat is for, and counting the start as proof of life would hide it for as long as the job kept starting. | Answer | Means | |---|---| | `202 {"state": "started"}` | The run is open and the clock is running | | `202 {"state": "running"}` | A start was already open: the previous run never reported an end | `running` is not an error and doesn't reset the clock, so a retried `curl` can't rescue an overdue run by starting it again. It's also what a hung job looks like from the outside. `/start` exists only on a heartbeat; on an ordinary alert source it answers the same flat `404` an unknown key gets. The body is the run's own label (a git sha, a dataset name), kept in the history and never turned into a card. The beat that ends the run carries how long it took, which is where `duration_ms` comes from. --- ## The beat history `last_ping_at` is one column and answers "is it late". The history answers "when did it last actually run, and what did it say", which is the question you have after being paged: ```bash curl -s "https://api.tissue.systems/v1/mast/alert-sources/nightly-backup/pings?limit=50" \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` ```json { "pings": [ { "id": "mpi_9c1e4b70d25a8f3691c04e7b2d5a8f13", "at": "2026-09-18T03:19:44.207Z", "kind": "beat", "source_ip": "203.0.113.19", "user_agent": "curl/8.7.1", "exit_code": 0, "duration_ms": null, "body": "backup: 41 tables, 1.9 GiB in 94s" }, { "id": "mpi_4a7f0b3ce918d26504af71b8e3c92d06", "at": "2026-09-17T03:19:41.880Z", "kind": "fail", "source_ip": "203.0.113.19", "user_agent": "curl/8.7.1", "exit_code": 17, "duration_ms": null, "body": "backup: error: connection to server failed" } ], "next_before": null } ``` Newest first. A heartbeat that went down from silence has no sender and writes no row, so the gap in the list is the outage. `exit_code` is `null` when the sender reported none, which is not the same statement as `0`. A bare beat and `POST /fail` both report none; the exit-code route always reports one. `kind` is `beat`, `fail` or `start`. `duration_ms` is the run length on the beat that closed a run opened by `/start`, and `null` on every other row, including a beat from a heartbeat that never sends a start, which is most of them. It's measured on the server from the two stamps, so a job that reports from a machine with a wrong clock still gets an honest number. Paging is by cursor. `limit` defaults to 50 and caps at 200; pass the `next_before` you got back as `before` and the next page starts where the last one ended. A plain time works too, and reads the beats strictly before it: ```bash curl -s "https://api.tissue.systems/v1/mast/alert-sources/nightly-backup/pings?limit=200&before=2026-09-17T03:19:41.880Z" \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` `next_before` is `null` once the page came back short, so a loop that pages until the cursor clears terminates. Every plan keeps the same amount: **200 beats per heartbeat**, and **30 days** whatever the count says. The per-heartbeat trim rides along with each write, and the age sweep is what reclaims a heartbeat that stopped beating and would otherwise hold its last 200 rows forever. --- ## The web app Heartbeats live in the Tissue Mast web app at **[dashboard.tissue.systems/mast/heartbeats](https://dashboard.tissue.systems/mast/heartbeats)**, not in the platform dashboard: every heartbeat on the account, its state, how often it's meant to beat and when it last did. Clicking one opens its history, the badge controls and the key. You can create a heartbeat there too. --- ## A status badge A badge is a public read of one heartbeat's state. Mint the token: ```bash curl -X POST https://api.tissue.systems/v1/mast/alert-sources/nightly-backup/badge \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` ```json { "badge_token": "mb_3f9d1a4c7e0b25869d13c4a7f0e28b56", "badge_url": "https://mast.tissue.dev/badge/mb_3f9d1a4c7e0b25869d13c4a7f0e28b56.svg", "badge_json_url": "https://mast.tissue.dev/badge/mb_3f9d1a4c7e0b25869d13c4a7f0e28b56.json" } ``` ```markdown ![nightly-backup](https://mast.tissue.dev/badge/mb_3f9d1a4c7e0b25869d13c4a7f0e28b56.svg) ``` | State | Badge reads | Colour | |---|---|---| | `alive` | `up` | green | | `late` | `late` | yellow | | `flatline` | `down` | red | | `pending` | `waiting` | grey | | never swept, or not a heartbeat | `unknown` | grey | The image is drawn by Mast rather than fetched from anywhere, so a README on a network that can't reach a badge CDN still renders, and a badge outage can only ever be our outage. The label is the alert source's name, cut at 40 characters. Responses carry `Cache-Control: public, max-age=60`, which is about the resolution the sweep behind the state has anyway. The `.json` form is [Shields' endpoint schema](https://shields.io/badges/endpoint-badge), so `https://img.shields.io/endpoint?url=…` renders it in whatever style the rest of the README already uses: ```json { "schemaVersion": 1, "label": "nightly-backup", "message": "up", "color": "brightgreen" } ``` A bare `https://mast.tissue.dev/badge/mb_…` with no extension is the image, which is what a paste into a README wants. The token is a read capability and nothing else. It can't send, it doesn't name the alert source's key, and it's revoked on its own. What it does expose is the alert source's name and whether the thing behind it is up. That's what a badge is, and it's why one is minted on request instead of existing on every alert source from birth. Minting twice gives back the same token, because a badge URL gets pasted into places you don't control and a second mint that silently retired the first would break every copy. Replacing one is a revoke and a mint, which is the same two steps said out loud: ```bash curl -X DELETE https://api.tissue.systems/v1/mast/alert-sources/nightly-backup/badge \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` Every pasted copy `404`s from then on, and a `404` renders as a broken image. An unknown token, a malformed one and a revoked one all answer the same way, so nobody reading a badge URL can learn whether it was ever real. --- ## Not here yet - The phone's own create form offers a period. A schedule or a run limit is set in the web app or over the API; the phone reads both back and shows them. - The badge is the only unauthenticated read of one heartbeat. Several at once go on a [status page](https://tissue.systems/mast/docs/status-pages/). - A heartbeat's history is per alert source. There's no account-wide feed of beats. --- # Monitors / Run signals Source: https://tissue.systems/mast/docs/run-signals/ # Run signals A plain heartbeat tells Mast that a job finished. Run signals tell it more: when the job started, whether it failed, how it exited, and which run a signal belongs to. With them a heartbeat can page on a job that hangs instead of waiting out the whole period, and it can let a job that flakes once try again before anyone is woken up. Every example below uses a heartbeat's URL, `https://mast.tissue.dev/mk_8e2a…`. Each signal is a path added to the end of it. `GET` and `POST` both work. --- ## Start ```sh curl -fsS -m 10 --retry 3 https://mast.tissue.dev/mk_8e2a…/start ``` A start says a run began. It is not a beat: the heartbeat's state stays where it was, and a job that keeps starting without ever finishing still goes down. What a start buys you is the longest-run limit. Set **Longest run** on the heartbeat, and a run that is still open after that long pages right away, without waiting for the period or the schedule to catch up. A backup that hangs at 04:00 pages at 04:30, not the next morning. The end of the run is the next beat, fail or exit code. Mast records how long the run took, and the time shows in the heartbeat's history. Anything in the body of the start is kept as the run's label, a git sha or a dataset name. It is shown in the history and never pages. ## Fail ```sh curl -fsS -m 10 --retry 3 -X POST https://mast.tissue.dev/mk_8e2a…/fail -d body="disk full on /var/backups" ``` A fail says the job ran and it went wrong. It marks the heartbeat down at once and pages, carrying the body as the reason. The next beat closes the page. ## Exit code ```sh 17 3 * * * curl -fsS -m 10 --retry 3 https://mast.tissue.dev/mk_8e2a…/start; /usr/local/bin/backup.sh; curl -fsS -m 10 --retry 3 https://mast.tissue.dev/mk_8e2a…/$? ``` Put the job's exit status on the end of the URL and one line covers both outcomes. `/0` is a beat. Any other number, from 1 to 255, is a fail with that code on the card and in the history. The body is kept as the job's output and never becomes a page of its own, so a job that prints a warning on a good run does not page anyone for it. ## Run ids ```sh rid=$(date +%s)-$$ curl -fsS -m 10 --retry 3 "https://mast.tissue.dev/mk_8e2a…/start?rid=$rid" /usr/local/bin/backup.sh status=$? curl -fsS -m 10 --retry 3 "https://mast.tissue.dev/mk_8e2a…/$status?rid=$rid" ``` When two runs of the same job can overlap, say a slow run that is still going when the next one starts, Mast cannot tell whose end is whose. Add `?rid=` with the same value to the start and to the end, and the end is matched to its own start. The duration is measured from that start, and the other run stays open. A run id is up to 64 letters, digits, dashes, underscores and dots. One that breaks those rules is ignored, not refused, and the signal is still counted. Without a run id, an end is paired with the most recent open start. ## Failures before a page By default the first failure pages. **Failures before a page** raises that: set it to 3, and it takes three failed runs in a row before anyone is told. The first two are recorded in the history and on the heartbeat, and the phone stays quiet. A failed run is a `/fail`, a non-zero exit code, a run that went past its longest-run limit, or a run that started and never reported an end. Any beat resets the count to zero. A job that just goes quiet, with no start and no end, is not a failed run: it pages when its grace runs out, whatever the threshold says. On the API it is `fail_threshold`, from 1 to 100. ## Early warning Turn on **Early warning** and the heartbeat learns how long the job usually takes to report, from its last 20 beats. When a run is well past its usual time but still inside grace, you get one quiet notification saying it is later than usual. It has no sound and it is not a page. It needs at least five beats before it says anything, and it sends at most one notification between two beats. On the API it is `smart_early_warn`, `true` or `false`. ## Unknown Sometimes the problem is on our side. If the monitor could not accept beats for a stretch, a heartbeat that was due during that stretch has no way to prove it ran. Rather than page you for our outage, Mast marks that heartbeat `unknown` and says why: ``` the monitor could not accept beats 03:10–03:24 UTC ``` An unknown heartbeat pages nobody. It goes back to ok on its next beat. If no beat comes by the time the next one is due, it is judged the normal way and pages if it is late. The reason and the window are on the heartbeat as `heartbeat_reason` and `blind_window`, and on a public status page the component shows as unknown with the same sentence. --- # Monitors / Deploys Source: https://tissue.systems/mast/docs/deploys/ # Deploys A deploy marker tells Mast you just shipped. Mast checks every probe on that alert source right away instead of waiting out each probe's interval. If a page opens within the hour, it starts by naming the deploy: > 3 min after deploy v2026-10-20 (a1b2c3d), from GitHub Actions #418. Add `wait=` and the marker becomes a gate: the request stays open until the probes have been checked, and it fails when one of them is down. Put it as the last step of a deploy job and a broken release fails the job that shipped it. Every example uses an alert source's URL, `https://mast.tissue.dev/mk_8e2a…`, the same one you send messages to. Probes that page into that alert source are the ones a marker checks. `GET` and `POST` both work. --- ## Send a marker ```sh curl -fsS "https://mast.tissue.dev/mk_8e2a…/deploy?v=v2026-10-20&sha=a1b2c3d4e5f6" ``` The answer comes back at once with `202`: ```json {"ok":true,"id":"dp_…","label":"v2026-10-20 (a1b2c3d)","version":"v2026-10-20","sha":"a1b2c3d4e5f6","at":"2026-10-20T14:02:11.402Z","burst":3,"check_at":"2026-10-20T14:02:11.402Z"} ``` `burst` is how many probes were moved up to check at `check_at`. They run on the prober's next check, within a few seconds. | Field | What it is | |---|---| | `v` or `version` | The version you shipped, up to 64 characters. A date plus the short commit reads well on a phone: `v2026-10-20`. | | `sha` or `commit` | The commit, 4 to 64 hex digits. The card shows the first 7. | | `source` | Where the deploy ran, up to 120 characters: `GitHub Actions #418`, `deploy.sh on build-01`. | | `url` | A link to the run. It has to be `https://`. Anything else is dropped and the answer carries a `warning`. | | `wait` | 1 to 300 seconds. Hold the request until the probes settle. See the next section. | Send `v`, `sha` or both. The fields can go in the query string, a form body or a JSON body. When the same field is in both, the query string wins. ```sh curl -fsS -X POST https://mast.tissue.dev/mk_8e2a…/deploy \ -H 'content-type: application/json' \ -d '{"version":"v2026-10-20","sha":"a1b2c3d4e5f6","source":"deploy.sh on build-01"}' ``` ## Wait for the probes ```sh curl -fsS --max-time 200 "https://mast.tissue.dev/mk_8e2a…/deploy?v=v2026-10-20&sha=a1b2c3d4e5f6&wait=180" ``` With `wait`, the request answers once every probe on the alert source has been checked after the marker and has settled: | Status | When | |---|---| | `200` | Every probe answered. `gate` is `up`, or `degraded` when one fails from some places but not enough to page. | | `503` | A probe is confirmed down. It answers as soon as that happens. `gate` is `down` and `message` names the probe and what failed. | | `504` | The wait ran out before every probe settled. `gate` is `pending`. | `curl -f` turns `503` and `504` into a failed step. The body lists each probe with its `verdict`, `state`, `checked_at` and `detail`, so the job log says which one broke. A probe settles the same way it does for paging. A first failure is rechecked 10 seconds later before it counts as down, and a down probe needs two good checks to come back. Allow a minute or more on top of the slowest probe's timeout. An alert source with no probes answers `200` with a `warning`, because there was nothing to check. Set curl's `--max-time` a little above `wait`, so curl doesn't give up before Mast answers. ## GitHub Actions ```yaml - name: Tell Mast if: success() run: | curl -fsS --max-time 200 \ "https://mast.tissue.dev/${{ secrets.MAST_KEY }}/deploy?wait=180" \ --data-urlencode "v=v$(date -u +%Y-%m-%d)" \ --data-urlencode "sha=${{ github.sha }}" \ --data-urlencode "source=GitHub Actions #${{ github.run_number }}" \ --data-urlencode "url=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" ``` `MAST_KEY` is the `mk_…` part of the send URL, kept as a repository secret. `--data-urlencode` makes this a `POST` with a form body. ## On the alert When a probe or a heartbeat on the alert source goes down within an hour of a marker, the page on the phone and the incident card both start with the deploy. The card's evidence keeps the full commit, the time and the link to the run. A deploy longer ago than that is listed in the evidence only. The probe's screen in the app lists the alert source's latest deploys. On its sheet of checks, each deploy is a dashed line with the version over it, drawn before the first check that ran after the marker, so you can see what every place got back right before and right after you shipped. ## Limits - An alert source's probes are moved up at most once a minute. A second marker inside that minute is recorded, and its probes check a minute after the first burst. - An account can hold 5 `wait` requests open at once. A sixth gets `429` with `Retry-After`. - Markers count against the alert source's send rate limit like any other message. - Markers are kept for 90 days, and they're deleted with their alert source. ## Reading them back `GET /v1/mast/deploys` lists your markers, newest first. Add `alert_source_id` for one alert source and `limit` for up to 50. `GET /v1/mast/probes/{id}` carries the newest 10 on the probe's alert source as `deploys`. See the [API](https://tissue.systems/mast/docs/api/). --- # Monitors / DMARC reports Source: https://tissue.systems/mast/docs/dmarc/ # DMARC reports Gmail, Outlook, Yahoo and most other large mail providers send a daily report to every domain that asks for one. Each report lists the servers that sent mail claiming to be from your domain, how many messages each sent, and whether they passed SPF, DKIM and DMARC. Tissue Mast takes those reports in, reads them, and shows you who is sending as your domain. When a server you've never seen starts sending as you and failing, it pages you. Add a domain under **Email** in the [web app](https://dashboard.tissue.systems/mast/mail). Mast gives you an address for it, and you put that address in the domain's DMARC record. --- ## Adding a domain **Add a domain** asks for the domain in your From: addresses, like `example.com`. You get an address shaped like this: ``` k3vq2xw7mnc4rdy5@dmarc.tissue.systems ``` Each domain has its own address. The same address takes aggregate reports (`rua`), failure samples (`ruf`) and TLS reports, and Mast sorts them by what arrives. Then publish the record at your DNS host. With no DMARC record yet, add a TXT record at `_dmarc.example.com`: ``` v=DMARC1; p=none; rua=mailto:k3vq2xw7mnc4rdy5@dmarc.tissue.systems ``` `p=none` asks receivers to deliver your mail the way they do today and only send reports. Keep it there until the sources page shows nothing of yours failing, then move to `quarantine` and `reject`. If you already have a record, keep it and add our address to its `rua` list, after a comma. Every address in the list gets every report, so a service you already send reports to keeps getting them: ``` v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com,mailto:k3vq2xw7mnc4rdy5@dmarc.tissue.systems ``` The setup page shows the record your domain has now and the exact record to publish in its place, with our address added. ### Checking A domain is **waiting for DNS** until Mast finds its address in the domain's `_dmarc` record. **Check DNS** looks straight away, once every 10 seconds at most, and Mast looks again every day by itself. Finding the address there is the proof the domain is yours, since only someone who runs its DNS could have put it there, so there's no other record to add. Reports that arrive before the check are kept. Google and Microsoft send one report a day, so the first numbers usually turn up within about 24 hours of the record going live. If the record stops naming our address, the domain stays as it is for 7 days, in case you're in the middle of an edit. After that it's **lapsed**, and reports sent to its address are refused until you publish it again and check. One account at a time can hold a domain. If another account already has it, adding it answers `409`. The domain frees up 7 days after its record stops naming that account's address. ### A new address **New address** on the setup page issues a fresh address, for when the old one turned up somewhere it shouldn't. The old one keeps working for 7 days while you publish the new record. The address is on show to anyone who looks up your `_dmarc` record, so the most anyone can do with it is send reports that claim to be from a receiver. Mast checks each report's own DKIM signature, and rows from a report that doesn't pass are kept out of the sources page unless you ask to see them. --- ## Sources A domain's main page shows the last 7, 30 or 90 days: how many messages the reports covered, the share that passed DMARC, the share with aligned DKIM and aligned SPF, and a bar for each day split into passed and failed. Below that, **Who sends as** lists every sending IP the reports named, busiest first, with its reverse DNS name, its message count, and how many of its messages passed DMARC, had aligned DKIM and had aligned SPF. A source we saw for the first time in the window is marked new. A message passes DMARC when DKIM or SPF passes for your domain itself, not for some other domain. A newsletter service that signs with its own domain passes DKIM but fails DMARC for you; set it up to sign as your domain and it passes. Most sending services have a domain authentication page that gives you the DKIM record to publish. Open a source to see it by receiver: each report that named it, the SPF and DKIM results with the domains they were for, whether it passed DMARC, and what the receiver did with the mail (delivered, quarantined or rejected). The page reads the 15 newest reports in the window for this, and says so when there are more. ### Paging on a new source A new sending IP that fails DMARC the first time it shows up, and has sent more than 10 messages, pages the domain's alert source once. A source that keeps failing doesn't page again. One that fails with only a few messages, like a forwarder or a test, shows on the page without paging. --- ## Reports **Reports** lists every aggregate report in the window: who sent it, the day it covers, its message and failure counts, and whether its own mail was signed. Open one to see each row the receiver sent, the policy it saw on your domain, and **Download the XML** for the original file. Originals are kept for 30 days on every plan. The Company plan keeps them for 400 days. --- ## Failure samples Some receivers also send a copy of the headers of single messages that failed DMARC. To ask for them, add `ruf` with the same address, and `fo=1` to get a sample when either SPF or DKIM fails: ``` v=DMARC1; p=none; rua=mailto:k3vq2xw7mnc4rdy5@dmarc.tissue.systems; ruf=mailto:k3vq2xw7mnc4rdy5@dmarc.tissue.systems; fo=1 ``` Failure samples come with the Company plan. On other plans they're turned away when they arrive. Mast keeps the headers for 30 days and throws away any message body as soon as it arrives. Only a few receivers send these, and most take out the body and personal fields first, so treat them as examples, not counts. --- ## TLS reports TLS reports are about mail coming in to your domain. Servers that deliver to you report how many of their connections to your mail servers succeeded over TLS, and why the others failed. To get them, add a TXT record at `_smtp._tls.example.com` with the same address: ``` v=TLSRPTv1; rua=mailto:k3vq2xw7mnc4rdy5@dmarc.tissue.systems ``` **TLS reports** on the domain's page lists them by day and receiver. --- ## Limits | Plan | Domains | Reported messages a month | Failure samples | Originals | |---|---|---|---|---| | Free | 1 | 100,000 | no | 30 days | | Team | 10 | 2 million | no | 30 days | | Team 10 (closed) | 10 | 2 million | no | 30 days | | Company | 100 | 50 million | yes | 400 days | A domain that has had no mail reported for 30 days doesn't count toward the domain cap. Adding one past the cap answers `402 plan_limit`. The monthly number counts the messages the reports describe, not the reports. Past it, reports are still taken in, so receivers don't retry them for days, but for the rest of the month each one is kept as its totals only, without the per-source rows, and the page says so. Reports and their rows are kept for the plan's [history](https://tissue.systems/mast/docs/limits/#messages-and-history). --- ## From the API With a token that has `mast:read` (and `mast:write` to change anything): ```bash curl -s https://api.tissue.systems/v1/mast/mail/domains \ -H "Authorization: Bearer $TISSUE_TOKEN" curl -s -X POST https://api.tissue.systems/v1/mast/mail/domains \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"domain": "example.com"}' ``` The answer to the second carries the token and the exact `rua` to publish. [The API](https://tissue.systems/mast/docs/api/#dmarc-reports) lists every route. --- # Alerts and on call / Alert sources and levels Source: https://tissue.systems/mast/docs/alert-sources/ # Alert sources and levels An alert source is where an alert goes, and every alert source is a URL. Anything that can make an HTTP request can send to it: a probe or a heartbeat of ours, Grafana, a CI job, Home Assistant, a line of shell. The alert source decides how loud a message is allowed to be, who it reaches, and when it should keep quiet. What a sender can put in a message is on [Sending alerts](https://tissue.systems/mast/docs/send/). Who a page goes to on a team is on [On call](https://tissue.systems/mast/docs/on-call/). --- ## Making one Make an alert source under **Alert sources** in the [web app](https://dashboard.tissue.systems/mast/alert-sources), from the Alert sources tab in Mast Pager, over the [API](https://tissue.systems/mast/docs/api/#alert-sources-from-the-command-line), or from a [`mast.toml` with `ribo mast apply`](https://tissue.systems/mast/docs/alert-sources-as-code/). Whichever you use, it asks for three things: - **name**: letters, digits, dot, underscore, hyphen and spaces, up to 32 characters, starting with a letter or digit. - **kind**: an **Alert source** receives messages when something happens; a **Heartbeat** expects a beat, and silence is the alert. A new heartbeat starts at every hour with ten minutes of grace. - **default priority**: quiet, normal, loud or page. This also sets the alert source's highest level, so only an alert source created at **Page** can carry a page. Creating it hands you the key card: the send address as text and as a QR code, with **Copy** and **Share**, and a `curl` line to paste. For a heartbeat the line is `curl -fsS` on the end of a crontab entry. **Send a test page** sends at the alert source's highest level so you hear what the loudest thing this alert source can do sounds like; on a heartbeat the test doesn't count as a beat. ### The address is the secret The URL is the whole credential for one alert source. Anything holding it can send to that alert source, and nothing else; it can't read the feed, make alert sources or reach any other alert source. Keep it wherever you keep other secrets. If it leaks, someone can fill your feed, but they can't make the phone ring louder than the highest level you set, and **Rotate key** on the alert source's page replaces it in one tap. The old key keeps working for seven days, so there's time to update whatever sends with it, unless you're at your plan's key cap, when it stops at once. If you think someone else has the address, **This isn't mine** on a message cuts the old key off immediately. [Delivery](https://tissue.systems/mast/docs/delivery/#this-isn-39-t-mine) has that one. ### An alert source's settings Open an alert source and every setting is a row. The web app and the app show the same ones: | Row | Choices | Notes | |---|---|---| | Default priority | quiet / normal / loud / page | What a send gets when it names no level | | Highest level | quiet / normal / loud / page | A send asking for more gets this. Only the phone can allow page, because it needs permission to ring through Do Not Disturb. Lowering it below the default lowers the default too | | Sound | default, bleep, chirp, rising, pager, klaxon | Tap a tone to hear it. A send that names its own tone wins | | Mute hours | off, or from / until | Inside the window this alert source arrives silently. Pages are the exception | | During a pause | quiet / still sounds | Whether a phone-wide [pause](#mute-hours-muting-and-pausing-pages) holds this alert source's pages | | Escalation | none, or a policy | Web app only. Which people a page goes to, in what order. [On call](https://tissue.systems/mast/docs/on-call/) | | Escalation partner | never, or after 2 / 5 / 10 / 30 min | Where an unacknowledged page goes next. [A second phone](https://tissue.systems/mast/docs/on-call/#a-partner-without-an-account) | | Mute | not muted, 15 min, 1 h, 4 h, until 8:00 tomorrow | Silence in a hurry. Pages are the exception | | Repeat | once, or every 1 / 2 / 5 min | How often a page comes back while nobody has acknowledged it | | Expire | 15 min, 1 h, 4 h, 1 day, never | When a page stops repeating and stays in the feed as one nobody answered | | Dedupe window | off, 1 / 5 / 15 min, 1 h | Merges an identical message into the one already there and counts it. Alert sources only | | Grouping threshold | never, or 10 / 20 / 50 in five minutes | An alert source that floods collapses into one row with a count. Alert sources only | A heartbeat has three rows of its own instead of dedupe and grouping: **Period** (5 min, 15 min, an hour, 6 hours, a day), **Grace**, and **When it stops**, which is the level a missed beat pages at. Crontab schedules and run limits are set in the web app or over the API, and the phone shows them read-only. [Heartbeats](https://tissue.systems/mast/docs/heartbeats/) has them. At the foot of every alert source: **Send a test**, **Rotate key**, **Delete alert source**. Deleting stops the address at once; messages already in the feed stay until they age out of retention. ### Testing it end to end **Send a test** sends one message and stops there. It doesn't ask for an acknowledgement and doesn't repeat, so it tells you the phone can be reached and nothing about who gets woken at 3am. To try the whole thing, open the test's options in the web app and pick **Run the escalation policy**. That opens a real incident, labelled as a test, and runs the alert source's policy on it: step 1's people are paged, and if nobody acknowledges, step 2's are, on the waits you set. Acknowledge it to stop it. It's still held to the alert source's highest level, so on an alert source that tops out at loud the test arrives at loud and says so. Test incidents are marked in **Incidents** and don't count toward uptime. Over the API it's `{"escalate": true}` on the [test route](https://tissue.systems/mast/docs/api/#testing-an-alert-source). To check one device on its own, **Send a test** next to it under **Devices** sends a single loud push to that device and no other. A device Apple or Google has stopped accepting pushes for is marked there as not reachable, with the date it was turned down. Neither a dedupe window nor a grouping threshold ever collapses a page. A pager that swallowed the second page because it looked like the first has lied to you once, and you wouldn't know which time. ### The list on the phone The Alert sources tab is two sections, **heartbeats** and **alert sources**, each row with a one-line summary: *pages*, *escalates to Sam*, *mute hours 22–07*, *muted until 14:10*, *3 today*. Swipe right on a row to **Mute 1h** (or **Unmute**); swipe left to **Delete**, behind a confirmation. Neither fires on a full swipe. Pull the row and the button waits to be tapped. --- ## Levels Every message carries one of four levels. A level isn't a score for how bad something is; it decides what the phone does and who gets interrupted. | Level | In one line | The detail | |---|---|---| | **quiet** | No sound, shows in the list | Into the feed and the notification list. No banner, no lit screen | | **normal** | Sound and banner, Do Not Disturb silences it | Also held by the ringer switch, by a Focus and by the alert source's mute hours | | **loud** | Breaks through Focus, Do Not Disturb still silences it | Time Sensitive. Once, unless the send asks for `every` | | **page** | Rings through silent mode and Do Not Disturb, and repeats until someone answers | Needs Critical Alerts on, on iPhone. Re-alerts every two minutes until somebody acknowledges it, then moves to the next person or a second phone | Three questions pick a level, in order, stopping at the first no. Does a person have to do something? If not, quiet or normal. Does it have to be today? If it can wait for morning, normal, and mute hours will hold it there. Would you rather be woken than find it at breakfast? Yes is a page. No is loud. The cost of over-paging isn't the noise. It's that the next real page arrives at a phone you've already taught yourself to ignore. ### The highest level A sender can ask for any level it likes. Asking for more than the alert source's highest level gets the highest level, and the feed shows both: *asked for page · sent loud*. An alert source made in the app can be given any highest level, page included, because the person choosing it is holding the phone that will ring. An alert source made with an API token starts at loud and the token can't raise it. Deciding to be woken up is not something a credential should do on your behalf. ### What to put on each one **quiet** is for things you want on the record and never want to be told about: a deploy that landed, a backup that finished with the byte count in the body, a certificate that renewed early. You read these when you go looking. **normal** is for something a person should see today, on their own time: a payment that failed and will retry, a webhook that gave up, a signup flagged for review. Most alert sources never need to be louder. **loud** is for something that turns into a page if it's left alone: storage down to two replicas of three, a queue growing for an hour, a disk at 92%. It gets through a Focus once and stops, unless the send asks for `every`. **page** is for when somebody has to act and it can't wait until they next pick up the phone: the database is unreachable, the backup hasn't checked in for 25 hours, a probe says the site is down from six places. It assumes somebody will be found, so use it where that's true. --- ## Mute hours, muting, and pausing pages **Mute hours** are a window on the alert source. Inside it, that alert source's messages arrive without a sound. **Mute** is the same idea in a hurry: an hour of silence from a swipe on either list, from the notification you're looking at, or longer from the alert source's own page. A page ignores both, and there is no setting to change that. An alert source that can wake you is an alert source you asked to be woken by. If you have an alert source that should never wake anyone, the setting you want is its highest level: hold it at loud and mute hours hold everything it sends. There is one thing a page does obey. **Pause pages**, in the app's settings, runs for half an hour, an hour or two hours. Pages that land inside it go into the feed without a sound, and the moment it closes, the ones nobody answered go out again at full volume. Nothing is dropped. While a pause runs the feed carries a banner counting it down, **End now** is one tap, and you can move the end. An escalation partner is still paged on time. An alert source can be exempted under **During a pause** in its own settings. Keep that for the one thing worth standing up and walking out of the meeting for. --- # Alerts and on call / On call Source: https://tissue.systems/mast/docs/on-call/ # On call A page on its own goes to every phone linked to your account. That's right for one person and wrong for five. On call decides who gets a page, in what order, and how long to wait before trying the next person. It lives under **On call** in the [web app](https://dashboard.tissue.systems/mast/oncall). There are two pieces. A **rotation** says whose turn it is. An **escalation policy** says who a page goes to, step by step, and an alert source or a probe names the policy it pages through. --- ## Who can be on call Anyone who's a member of the account and has linked a phone. Each person links their own: they sign in to Tissue Mast from Mast Pager, or get a link code under **Devices** and enter it in the app. Someone without a linked phone shows up in the list but can't take a shift or be named in a step, because there'd be nothing to ring. One step of a policy rings at most 25 people at the same moment, and 2 on Free. That's a limit on each step, not on the account: a rotation rings one person, the next step rings the next, and a team of sixty is reached a few people at a time. An alert source with no policy rings everyone on the account, up to 5 people on Free and 25 on the other plans. [Limits](https://tissue.systems/mast/docs/limits/#people-and-the-ring) has the rules. ![The Responders table on the On call screen: five people with their login, role, linked phones and off hours. Sam Okafor is on call for the backend rotation until 12 Oct 09:00, and Lee Huang has no phone yet and cannot be on a rotation until one is linked.](https://tissue.systems/mast/shots/oncall-responders.png) ### Inviting someone An owner or an admin invites people from **Members** in the web app, or from **Invite someone** under Responders on On call and under a rotation's order. Type their email address, pick a role, and send it. Developer is the usual role. An admin can invite people too. The invite is an email with a link that works once, for seven days. It says the invite is for getting pages from Tissue Mast, and accepting it opens **Devices**, where they link their phone. Until they accept, they're listed on Members as invited, with the date the link runs out and a **Withdraw** button that stops the link working. Once they've joined and linked a phone they show up in Responders and can be added to a rotation. It's the same invite Tissue Cloud's Members page sends, so the person can also deploy Cells on the account if it has Tissue Cloud. Roles are changed on that page. An account sends at most 20 invites an hour and 50 a day, and you need to have confirmed your own email address before you can send one. Free holds 5 people, and Team and Company have no limit. On Free an invite past the fifth person is refused with the count, and nothing is deleted; the escalation partner on the app doesn't count. Open invites do. ### When someone leaves the account Removing a member in Account settings signs their phones out of Mast, deletes the numbers Mast called them on, and takes them out of every rotation. Whoever is on call stays on call. If the person removed held the shift, it passes to the next person in the order, and the handoffs after that fall where they did before. Before you confirm, the remove dialog lists what the removal changes: - the phones it signs out, and who's on call for each rotation afterwards, - overrides it drops, because they named that person on either side. Those shifts go back to the rotation, - policy steps that named that person, or a rotation that's left empty. A step that names nobody pages everyone on the account, and a step with **Call** ticked phones everyone with a confirmed number, until you edit it, - phones with nobody signed in. Mast can't tell whose those are, so they stay connected and keep getting pages sent to everyone. Remove the ones that were theirs under **Devices**. When a removal drops an override or leaves a step paging everyone, Mast also emails the account's owners and admins with the same list. --- ## Rotations **New rotation** asks for a name (`backend`, `weekends`), the people in order, and when the shift changes hands: - **every day**, **every week** on a day you pick, **every two weeks**, - or a **custom length** of 1 to 720 hours, like 12-hour shifts or a 36-hour on-call, - at a time of day, in a time zone you pick. The handoff stays at that hour when the clocks change, so a 09:00 handoff is still at 09:00 the week after daylight saving starts. If the handoff time is in the hour the clocks skip, the handoff happens as the clock comes out the other side, at 03:00 for a 02:00 handoff. A custom length counts from the handoff time on the day you make the rotation. The first person in the order has the shift that's running when you make it, and every shift after that is the length you picked. It doesn't have to divide into a day: 36-hour shifts from 08:00 hand off at 08:00, then 20:00 the next day, then 08:00 again. Custom shifts keep to the clock too, so 12-hour shifts at 08:00 and 20:00 stay there all year, and the one that runs across a daylight saving change is an hour shorter or longer than the rest. An **override** puts someone else on for a while, in the rotation's zone. Give it a first and last day for whole days, or add a time to either end for part of a day: an afternoon, or from 18:00 Friday to 09:00 Monday. An end time is when the override stops, so 13:00 to 17:00 hands back at 17:00. An override can cover the rotation outright, or cover only one person's shift, so "Ana covers Ben's week" doesn't also take Cy's shift if the rotation lands on Cy that week. Under **Next on call**, the rotation's page lists the override's start and end too, wherever they change who's on. Each rotation can have a **calendar feed**: a read-only link any calendar app can subscribe to, showing who's on and when. Making a new link stops the old one. ![A rotation named backend: hands off every week on Monday at 09:00 America/Los_Angeles, Sam Okafor is on until 12 Oct 09:00, then Ana Lindqvist, Priya Natarajan and Marco Reyes, with a calendar feed link underneath.](https://tissue.systems/mast/shots/oncall-rotation.png) --- ## Escalation policies A policy is a list of steps. Step 1 fires the moment a page arrives. Each later step fires if nobody has acknowledged by the time its wait runs out. A new step waits 5 minutes. A step pages one of: | Target | Who it reaches | |---|---| | whoever is on call for a rotation | The person on shift right now | | the next person on a rotation | The one after them, for a second line | | a specific person | Their linked phones | | everyone on the account | Every linked phone | | an alert source | Another alert source's audience | A step rings at most 25 people, or 2 on Free, counting people and not phones. A step that lists more than that is refused when you save it. So is an everyone step, or an alert source step, on an account with more people than that; use a rotation there, and put the rest on later steps. Apart from step 1, each step waits at least a minute after the step before it. A step that names someone with no linked phone, or a rotation with nobody on it, pages everyone instead, up to the same number of people. A page that can't find its person shouldn't quietly go nowhere. Each step also has a **priority**: page, loud or quiet. It's the level that step's pushes go out at, so a later step can break through Do Not Disturb when nobody answered step 1. A few rules keep it from ringing louder than you meant: - The alert source's highest priority caps it, the same way it caps a sender. - Step 1 can lower a message's level but never raise it. A loud probe alert stays loud at step 1 even when the step says page. Raising is for the steps after it, which only fire because nobody acknowledged. - A later step set to page rings through the alert source's mute hours and mutes, like any page. Loud and quiet steps are still muted. - Step 1's priority applies to messages that wait for an acknowledgement (any message sent with `ack=required`, which pages have by default) and to probe and heartbeat alerts. Any other message on the alert source arrives at the level it was sent with. ![An escalation policy named production: step 1 pages whoever is on call for backend, after 5 minutes the next person on backend, after 15 minutes everyone on the account. It is used by the infra alert source and 2 probes.](https://tissue.systems/mast/shots/oncall-policy.png) After the last step, a policy either stops and leaves the incident open, or goes round again. Going round again means: wait the time you set, then start over at step 1, and do that up to the number of times you set (1 to 10). The later steps keep their own waits. Every round pages its people afresh, including phones an earlier round already reached. An acknowledgement or a resolve stops it. A maintenance window holds a round back, and once the window ends the round waits its usual time before it starts. A policy that's deleted or paused partway through stops where it is. Between steps, the page keeps ringing on every phone it has reached, on the alert source's repeat, until somebody acknowledges it or it expires. Each phone rings once per repeat, at the priority of the last step that reached it. Attach a policy from the alert source's or the probe's settings, under **Escalation**. Every message on an alert source with a policy goes to step 1's people. Only messages that wait for an acknowledgement, and probe and heartbeat alerts, go on to the later steps. A policy past your plan's cap, after a downgrade, is paused. A paused policy pages the way no policy does: everyone on the account, up to 5 people on Free and 25 on the other plans. ### Phone calls Tick **Call** on a step and it phones the people it reaches as well as pushing to them. The call goes out at the same moment as the push. It says "This is Tissue Mast with a page" and reads the page's title. Press 1 to acknowledge, which stops the policy the same way acknowledging in the app does, or press 2 to hear it again. If nobody presses anything after the second time, the call hangs up. - **Each person adds their own number** under **Devices** in the [web app](https://dashboard.tissue.systems/mast/phones). Mast calls it straight away and reads out a six-digit code, and the number counts once that code is typed back in. A code works for 10 minutes. Each person can keep three numbers, and a step calls the one they confirmed most recently. - **No confirmed number, no call.** That person still gets the push, and the incident notes that the step had nobody to call. - **Voicemail gets a hangup.** If a greeting picks up, Mast hangs up without leaving the page there, and the incident says the call went to voicemail. - **One call per step.** The repeat between steps rings the app, not the phone line. A policy that goes round again calls again on each round. - **Calls come from +1 360-837-6431,** shown as Tissue Mast. Save it as a contact and let it through Do Not Disturb. Calling it back plays a short message, because the number doesn't take calls. - **Countries:** numbers in the US and Canada, the UK, the EU, Australia and New Zealand. Premium, shared-cost and toll-free numbers are refused. Team includes 100 calls a month and Company 1,000. Free has no calls. When the month's calls run out, steps marked Call push only until the 1st, and the incident says the call was skipped. [Limits](https://tissue.systems/mast/docs/limits/#phone-calls) has the details. ### Taking turns A step to everyone or an alert source can ring one person per page instead of all of them. Tick **one person per page, taking turns** under the step's target. Each page goes to the next person along, in the same order every time, so the pages spread evenly over the people on the step. A person with a phone and a watch is one turn, and both ring. Anyone in off hours is left out of the turn. If the step runs again for the same page, it rings the same person, and the incident says whose turn it was. A rotation step or a step to a specific person already rings one person, so it doesn't take turns. ### Off hours Each person can set their own off hours: a window like 22:00 to 07:00, in their own time zone, on the nights they choose. Set them from the On call screen, under **Responders**, with **edit** beside a person. You can change your own, and an owner or admin can change anyone's. The window follows the clocks when they change, and the days are the nights it starts on, so Friday's 22:00 to 07:00 still holds at 03:00 on Saturday. During someone's off hours: - **A rotation step** (whoever is on call, or the next person) hands their page to the next person on the rotation who isn't in off hours and has a linked phone. - **A step to everyone or an alert source**, and a page with no policy, leaves their phones out. - **A step that names them** still rings them. If a step has to reach one particular person, name them. - **If everyone the step reaches is in off hours**, it rings the people it would have rung anyway. A page never goes nowhere. Each time off hours change who a page reaches, the incident timeline says who was skipped and who rang instead. A step's priority doesn't override off hours; an alert source's mute hours are a separate setting. --- ## Acknowledged isn't fixed Acknowledging stops the repeat and the escalation. It doesn't mean anyone fixed anything. Set an **ack timeout** on the alert source and an acknowledged page that still isn't resolved after that many minutes pages again, once. [Delivery](https://tissue.systems/mast/docs/delivery/#ack-timeout) has the setting. --- ## A partner, without an account Mast Pager has a smaller version of this that needs no account: an **escalation partner** on an alert source. A page nobody acknowledges goes to the partner after 2, 5, 10 or 30 minutes, once, and only for pages from that alert source. A partner is another phone that agreed to be woken. On the alert source's **Escalation partner** row, **Get a pairing code**: it comes back as a code and a QR, works once, and expires. Show it across a desk or send it, and there's nothing else to set up on either side. An alert source can have both a partner and a policy. They're separate: the policy walks your team, and the partner is one extra phone that said yes. --- # Alerts and on call / Delivery Source: https://tissue.systems/mast/docs/delivery/ # How a page reaches your phone This page covers what Mast does between a script posting to a send URL and you reading the card: how it tells you who sent it, what happens when your phone is off, what it records along the way, and the two settings that decide how often you get woken up. --- ## Every page says who sent it Each notification carries the name of the alert source it came from and a short label for the key that sent it, like `backups · mk_1a2b3c`. The label is the first six characters of the key, which is enough to tell two keys apart and not enough to send with. Both are copied onto the message when it arrives, so renaming the alert source or rotating the key later doesn't change what an old card says. The same two fields are on every message the API returns: ```json { "id": "mm_4f1c…", "channel_name": "backups", "key_label": "mk_1a2b3c", "first_link": false, "canary_url": "", "sent_at": "2026-09-24T03:12:01.204Z", "shown_at": "2026-09-24T03:12:02.918Z", "acked_at": "2026-09-24T03:14:40.051Z" } ``` ## "This isn't mine" A send URL is a send credential. If a page arrives that you don't recognise, someone else has the URL. Tap **This isn't mine** on the card, or call: ```bash curl -X POST https://api.tissue.systems/v1/mast/messages/mm_4f1c…/disown \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` Mast then does four things at once: 1. Rotates the alert source's key with no grace period. An ordinary rotation lets the old key keep working for seven days so a cron job you haven't updated yet doesn't drop pages; this one doesn't, because the old key is the one being used against you. Any older key still inside its grace period stops working too. 2. Mutes the alert source for 24 hours. 3. Records a `disowned` event on the message. 4. Returns the alert source id, the new key's label and the new URL, so you can hand the URL to the senders that should have it. ```json { "channel_id": "mc_9b2e…", "channel_name": "backups", "key_id": "mk_7d0e44", "rotated_from": "mk_1a2b3c", "muted_until": "2026-09-25T03:20:00.000Z", "url": "https://mast.tissue.dev/mk_7d0e44…" } ``` ## The first link from an alert source is flagged An alert source that has only ever sent "backup finished" and then sends "reset your password at …" is worth a second look. The first message from an alert source whose title, body or URL holds a web address or a phone number is marked `first_link`, the card says so, and the send gets a warning back: ```json {"ok": true, "id": "mm_…", "state": "queued", "first_link": true, "warning": "first link or phone number from this alert source"} ``` After that, links from the alert source go through unmarked. Rotating the key resets it, so the first link sent with the new key is flagged again. Version numbers, times, dates and IP addresses don't count as links. If you'd like pages from an alert source to carry a link you trust, set `canary_url` on the alert source. It's an http or https address, it rides on every page from that alert source, and the app shows it as the link to open. A page that points somewhere else stands out against it. ```bash curl -X PATCH https://api.tissue.systems/v1/mast/alert-sources/backups \ -H "Authorization: Bearer $TISSUE_TOKEN" \ -d '{"canary_url": "https://status.example.com/backups"}' ``` ## A phone that was off gets the newest page, and the rest when it opens Apple's push service keeps only one notification per app for a phone it can't reach: the newest one. If three pages go out while your phone is off, it will show the third when it comes back, and the app picks up the other two from the feed the next time it opens. Mast chooses what is allowed to take that one slot. A page is kept until the message expires, or for an hour if it has no expiry. Acknowledgements, resolves and card updates are sent once and never kept, so they can't push a waiting page out of the slot. If you've been offline, open the app before you trust the lock screen. ## Three timestamps on every page | Field | Whose clock | What it means | |---|---|---| | `sent_at` | Mast's | Apple's push service accepted the page | | `shown_at` | Mast's | The app reported the page on screen | | `acked_at` | Mast's | Someone acknowledged it | The app also sends its own clock reading when the notification arrived, stored as `arrived_at`. The gap between `sent_at` and `shown_at` is delivery time; `arrived_at` next to `shown_at` tells you whether the phone's clock is off. Each one is written once. The web app's feed shows all three. A push can also reach a phone whose notifications are off. An app that reports this says so: the delivery carries `presented: false` and a `presented_reason`, `shown_at` stays unset, and the incident's timeline reads *Not shown on Pixel 9*, with *notifications are off for Mast Pager on it* under it. Escalation carries on, as it would for any page nobody has answered. ## When Mast stops sending to a phone If Apple tells Mast a phone no longer accepts pushes, usually because the app was deleted or the phone was reset, Mast stops sending to it. It tells you once, by email to your account address and as a page on another of your phones: > Mast retired a phone: iPhone 15, it stopped accepting pushes; open the app to link it again If that was the only phone, the email is the only notice. The web app's home screen shows how many phones are receiving pages, in red when the answer is none. ## The weekly line The web app's home screen shows how often you were paged over the last seven days: > 14 pages this week, 6 between 23:00 and 07:00 It counts loud and critical pages, not quiet notices or silent checks, and reads the night in your phone's time zone. The same numbers, plus the median minutes from page to acknowledgement, are at: ```bash curl https://api.tissue.systems/v1/mast/owners/me/budget \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` ```json {"pages": 14, "night_pages": 6, "median_minutes_to_ack": 3.5, "tz": "America/Los_Angeles", "since": "2026-09-18T12:00:00.000Z", "line": "14 pages this week, 6 between 23:00 and 07:00"} ``` ## Ack timeout Acknowledging a page stops it repeating. It doesn't mean the problem is fixed. Set `ack_timeout_min` on an alert source and an acknowledged page that still isn't resolved after that many minutes pages again, once. Acknowledge it a second time and it stays quiet until it's resolved or expires. ```bash curl -X PATCH https://api.tissue.systems/v1/mast/alert-sources/backups \ -H "Authorization: Bearer $TISSUE_TOKEN" \ -d '{"ack_timeout_min": 30}' ``` `0` turns it off, which is the default. The longest timeout is a week (10080 minutes). You can also set it in the web app's alert source settings. --- # Alerts and on call / Maintenance windows Source: https://tissue.systems/mast/docs/maintenance/ # Maintenance windows A maintenance window is a stretch of time when the alerts it covers reach your phone without a sound. They still arrive and still land in the feed, marked as held by maintenance, so you can read them. When the window ends, anything it held that is still a problem pages you once, at the level it was sent at. There are two ways to open one. Make a window with the API when you know the work is coming: tonight's database upgrade, every Sunday's backup run. Or put `hold=` on a send when the sender itself knows it's about to be noisy, and the alert source holds its own pages for that long. --- ## What a window does While a window covers an alert: - its push goes out quiet, `page` included. The feed records a `held` event naming the window, - an escalation waits. A page doesn't move to the next person, or to a teammate's phone, while the window that covers it is open, - repeats, escalation policy steps and the expiry timer wait too, rather than being used up in silence. A repeat comes one repeat interval after the window ends. The others keep the delay they had from the page, and land at least a minute after the window ends, so the re-page at the close reaches the phone first. When the window ends, on time, by `end` or by being deleted, each alert it held is checked. It pages again if it's still open and unacknowledged and it's still an incident: | Held alert | At the close | |---|---| | A probe that's still down, or a heartbeat that's still down | Pages | | Anything sent with `ack=required`, as `loud`, or as a `page` | Pages | | A `normal` notice that didn't ask for an answer | Stays in the feed | | Anything `quiet` or `silent` | Stays in the feed | | Anything acknowledged or closed during the window | Nothing to do | A window that `hold=` opened is more generous: every held send that wasn't `quiet` or `silent` pages at the close, `normal` included. Only alerts that arrived during the window are re-paged by its close. A page that was already ringing when the window began wasn't held by it. Its repeats wait for the window to end and then carry on where they left off. --- ## Scope A window covers the alerts its scope names. Name any mix of: | Field | Matches | |---|---| | `channels` | Alerts sent to these alert sources. Takes alert source names or ids | | `probes` | Pages from these probes. Takes probe ids | | `hosts` | Alerts from any alert source or probe whose `host` label is one of these. Case doesn't matter | An alert matching any one entry is covered. Each list takes up to 50 entries, and a blank entry is refused. An alert source or probe that isn't yours answers `404`. To cover everything on the account, say so with `"whole_owner": true` and leave the lists out. A window with no alert sources, probes or hosts is refused with a `400` unless it has `whole_owner`, and the same goes for a PATCH that empties the last list. That's so a script that removes one alert source too many can't quietly turn a narrow window into one that silences everything. `whole_owner` alongside a list with something in it is also a `400`. --- ## Making one ```bash curl -X POST https://api.tissue.systems/v1/mast/maintenance \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"name": "db upgrade", "hosts": ["db-01", "db-02"], "minutes": 90}' ``` ```json { "id": "mm_0c6e2a94d17b35f8a2c4e6081b3d5f79", "name": "db upgrade", "source": "api", "channels": [], "probes": [], "hosts": ["db-01", "db-02"], "whole_owner": false, "starts_at": "2026-10-06T21:00:00.000Z", "ends_at": "2026-10-06T22:30:00.000Z", "recurrence": null, "ended_at": null, "active": true, "active_until": "2026-10-06T22:30:00.000Z", "next_close_at": "2026-10-06T22:30:00.000Z", "last_closed_at": null, "created_at": "2026-10-06T21:00:00.000Z", "updated_at": "2026-10-06T21:00:00.000Z" } ``` The answer is `201`. The fields a window takes: | Field | Meaning | |---|---| | `name` | Up to 80 characters. Shown in the feed next to what the window held | | `channels`, `probes`, `hosts`, `whole_owner` | The scope, above | | `starts_at` | An ISO-8601 instant. Leave it out to start now | | `ends_at` | An ISO-8601 instant after `starts_at` | | `minutes` | The length instead of `ends_at`, 1 to 44,640. Give one or the other, not both | | `recurrence` | `weekly`, or leave it out for a one-off | A one-off window lasts up to 31 days and can't end in the past. A `weekly` window repeats the same span every seven days from `starts_at`, until you delete it. It has to be shorter than seven days. The times are UTC instants, so a window set for 02:00 UTC stays at 02:00 UTC, and the local time it falls on moves when the clocks change. ```bash # every Sunday 02:00 to 04:00 UTC, for the backup job curl -X POST https://api.tissue.systems/v1/mast/maintenance \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"name": "sunday backup", "channels": ["backups"], "starts_at": "2026-10-11T02:00:00Z", "minutes": 120, "recurrence": "weekly"}' ``` A window that starts now is on every plan. One that starts later, more than two minutes from the request, and any `weekly` window, need Team or Company, and Free answers `402 plan_limit`. An account can have 100 windows that aren't over yet, counting every weekly one, and the next answers `409 too_many_windows`. ## Reading, changing and ending `GET /v1/mast/maintenance` lists every window you haven't deleted, newest start first, as `{"items": [...]}`. `active` says whether it's holding alerts right now, and `active_until` when the current stretch ends. ```bash # change the scope or the name, any time curl -X PATCH https://api.tissue.systems/v1/mast/maintenance/mm_0c6e… \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"hosts": ["db-01", "db-02", "db-03"]}' # the work finished early: end it now curl -X POST https://api.tissue.systems/v1/mast/maintenance/mm_0c6e…/end \ -H "Authorization: Bearer $TISSUE_TOKEN" # remove it curl -X DELETE https://api.tissue.systems/v1/mast/maintenance/mm_0c6e… \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` A PATCH takes the same fields as the create. A list you leave out keeps what the window had. The scope can change while a window is open, and the close re-pages what's in the scope it has when it closes. The times can't change once a window is in progress: `starts_at`, `ends_at`, `minutes` or `recurrence` on an open window answers `409 window_in_progress`. Moving the end would risk losing what it already held. End it and make another. On a window that hasn't started, moving `starts_at` alone keeps its length. `end` closes the window now and pages what it held before it answers. A weekly window ends this week's stretch and comes back next week. A window that isn't open answers `409 window_not_active`. `DELETE` answers `204`. Deleting an open window ends it first, and what it held pages just as it would at the end. --- ## `hold=` on a send ```bash curl -X POST https://mast.tissue.dev/mk_1c9f… \ -d title="deploy 2026.10.004" -d body="restarting the api, errors expected" -d hold=600 ``` `hold=N` holds every page on this alert source for the next N seconds, starting with this send. It's on every plan. N is a whole number of seconds from 1 to 21,600 (six hours), and `0` or leaving it out holds nothing. `hold` can't go with `silent=1`: that's a `400`, since a silent send makes no sound to hold. Each alert source has one hold window. A later send with `hold=` stretches it, including one that merges into a card that's already open, but never past six hours from when it opened. At six hours the window closes and pages whatever it's still holding, however many sends keep arriving, so a sender stuck in a loop can't keep an alert source quiet forever. If the window can't be written for any reason, the send pages as it normally would. Hold windows show up in `GET /v1/mast/maintenance` with `source: "hold"` and the alert source as their scope. They can be ended and deleted like any other. Their times and scope come from the sends, so a PATCH that touches them answers `409 hold_window`. A rename is fine. --- ## Destinations during a window [Destinations](https://tissue.systems/mast/docs/destinations/) that a person reads, Slack, Discord, Teams and email, are held along with the phone. They hear nothing about a held alert while the window is open. At the close, every held alert that's still open gets its opening event sent to them, and the events after it follow, whether or not the close pages your phone again for it. An alert that opened and was acknowledged or closed inside the window never reaches them. Alerts that weren't held, because they were already open when the window began or were `quiet`, `silent`, or quieted by mute hours or a mute before the window saw them, reach them as usual. Webhooks and `callback=` URLs aren't held. They get every event as it happens, window or not, so a ticketing system or a log keeps a full record. A window doesn't post anything to a [status page](https://tissue.systems/mast/docs/status-pages/). If you want visitors to see planned work, post a **Planned maintenance** update there by hand. --- # Incidents and status / Incidents Source: https://tissue.systems/mast/docs/incidents/ # Incidents An incident is one thing that went wrong. A site that's down for twenty minutes is one incident, not the forty failed checks, the page, its repeats and the recovery. **Incidents** in the [web app](https://dashboard.tissue.systems/mast/incidents) is the list of them. --- ## The list One row per incident: pages, near-pages (loud messages that would have paged if the highest level allowed it), and the floods that dedupe or grouping collapsed into one. The open ones and the last 7 days show by default. Opening one shows what the phone got and what Mast knows about it: - what opened it: the failing checks with the places that failed and the ones that still answered, or the silence that ran past a heartbeat's grace, - who it paged, when each escalation step fired, who acknowledged it and from which device, - what closed it: two clean probe checks, a heartbeat's next beat, a `resolve=1` from the sender, or a person. The API's answer for one incident, `GET /v1/mast/incidents/{id}`, also has `destination_deliveries`: what went to each [destination](https://tissue.systems/mast/docs/destinations/) about it, with the state, the number of attempts and the last status the far end gave. **Export 90 days as CSV** downloads the table, for a postmortem or a monthly review. --- ## Working an open incident An open incident has four more buttons beside **Acknowledge** and **Resolve**. They're on the incident page in the web app. ### Snooze **Snooze** quiets a page for 15 minutes up to 24 hours. Until then it counts as acknowledged: the repeats stop and nobody else gets escalated to. When the snooze ends, every phone it reached rings again and the escalation policy carries on from the step it was on, so a snoozed page that nobody picks up still climbs. Acknowledging or resolving it before then ends the snooze. A page can be snoozed ten times. ### Reassign **Reassign** hands the incident to someone else, either a person on the account or another escalation policy. It starts over with them: a policy from its first step, a person on every phone they have signed in. Any acknowledgement or snooze is cleared, and whoever was being paged stops. The timeline shows who reassigned it and to whom. ### Add a responder **Add responder** rings one more person now without changing the escalation. Their phones get the page straight away, and if they have a verified number you can tick **Call their verified number too**. The policy keeps going as it was, and the extra person can acknowledge or resolve like anyone else. ### Notes The **Notes** box under the timeline is for what you found and what you tried. Everyone on the account can read them, and notes show up in the timeline at the time they were written. You can edit or delete your own notes. Account owners and admins can edit or delete anyone's. A note can be up to 4,000 characters, and notes go away with the incident when its retention runs out. --- ## How an incident closes Probes and heartbeats close their own. A probe's outage closes after two clean checks in a row, and a heartbeat's after its first beat. The card on every phone it reached turns green, says how long it was open, and stops repeating. Anything else closes when the sender says so, or when a person resolves it. ### Closing one from the sender A `page` repeats until somebody acknowledges it. When the thing it's about comes back, the sender can say so, and the card on the phone stops repeating and turns green: ```bash # the outage curl -X POST https://mast.tissue.dev/mk_1c9f… \ -d priority=page -d key=db-01 \ -d title="db-01 unreachable" -d body="no WAL segment in 11 minutes" # the recovery, closing that incident curl -X POST https://mast.tissue.dev/mk_1c9f… \ -d resolve=1 -d key=db-01 \ -d title="db-01 recovered" -d body="WAL shipping resumed" ``` `resolve=1` closes the most recent open message on the alert source carrying that `key`. The send doesn't become a second message: its title and body replace the outage text on the original card, the repeat and the escalation are cancelled, and every device the page reached gets a quiet update. The 202 names the message that was closed and how long it was open: ```json { "ok": true, "id": "mm_7a3e5b91c04d2f68a1b3c5d7e9f02468", "state": "resolved", "open_for": 842 } ``` `open_for` is whole seconds from the moment Tissue Mast received the alert to the moment it was closed. A message id works in place of the key, for a sender that kept the id from its own 202: ```bash curl -X POST https://mast.tissue.dev/mk_1c9f… \ -d resolve=mm_7a3e5b91c04d2f68a1b3c5d7e9f02468 -d body="back up" ``` The title and body are optional on a resolve. Leave both out and the card keeps the wording it already has and just turns green. A resolve with no text that finds nothing open stores nothing, and answers `"state": "nothing_open"` with no `id`. Three things to know before you wire this into a monitor: - **A resolve that finds nothing open isn't an error.** It's stored as an ordinary message at `quiet`, whatever priority was asked for, and it never repeats or asks for an acknowledgement. So a recovery that overtakes its own alert, or one for an incident a person already closed, still shows up in the feed and still wakes nobody. The catch is that a wrong key fails silently, with the page still ringing. Test the pair once on a test alert source. The one exception is a resolve that lands inside a flap window (below): that one is merged into the flapping incident, not stored. - **`key` alone isn't enough.** A repeat of the same key merges into the open card only inside the alert source's dedupe window, which is minutes; an incident isn't. Past the window, a recovery without `resolve=1` is a separate card and the page keeps repeating. - **A key can only close its own alert source's incidents.** A message id belonging to another alert source is answered as though it didn't exist. --- ## Flapping A site that comes back and fails again inside ten minutes pages once more, as *down again*. After that, for half an hour, every further flip is noted on the open incident and pages nobody. A site that's still down past that window is paged for again. [Probes](https://tissue.systems/mast/docs/probes/#one-failure-is-a-suspicion) has the rest of the rule. The same rule applies to a sender that closes its own incidents with `resolve=1`. A key the sender resolved and fires again inside ten minutes pages once more, as a reopen. For half an hour after that, every further fire and resolve is noted on that incident and pages nobody; the 202 says `"state": "folded"` with that incident's `id`. A key that's still fired when the window closes is paged for then, so a sender that fires once and goes quiet isn't lost, only held for up to thirty minutes. A resolve from the phone ends the flap: a person decided it was over, and the next fire is a new incident. Both windows are fixed, the same ones probes use. --- # Incidents and status / Status pages Source: https://tissue.systems/mast/docs/status-pages/ # Status pages A status page is a public page that shows your users what your probes and heartbeats see, with room for you to write on it. Make one under **Status pages** in the [web app](https://dashboard.tissue.systems/mast/status-pages). **New status page** asks for an address, a title, and the components to show. - The **address** is 3 to 40 lowercase letters, digits and dashes, and the page is served at `tissue.systems/mast/status/<address>`. Anyone with the URL can read it, with no sign-in. - **Components** are rows, each with a label and a source: one of your probes or one of your heartbeats. The row shows the source's state as the public sees it: up, slow or down for a probe, late or down for a heartbeat. - **Incidents** on the page can be posted automatically, from the moment a probe or heartbeat goes down until it recovers, or only when you write them. --- ## Writing updates Updates are written by hand from the page's edit screen, each with a kind, **Planned maintenance**, **Investigating**, **Identified** or **Resolved**, and a line of text. They show on the public page newest first. Each posted update has **edit** and **delete** beside it. An edit can change the text, the kind, or both. The update keeps the time it was first posted, so the order on the page doesn't change, and the public page puts **edited** next to its time, with the time of the edit on hover. Delete asks first and takes the update off the public page straight away. When the newest update is **Investigating** or **Identified**, it also has **Resolve**. That sets up a **Resolved** update for you to write and post on top. The earlier updates stay under it, so the page still shows what happened, in order. Edits and deletes show in the account's activity log, and a deleted update's kind and text are kept there. From the API, with a token that has `mast:write`: ```http PATCH /v1/mast/status-pages/sp_8f2c41d0/updates/su_3a91c07e Authorization: Bearer tok_... { "text": "The database is back on its primary. Orders placed between 14:05 and 14:20 were saved." } ``` Send `kind`, `text`, or both. The reply is the update, with `edited_at` set. An edit that changes nothing writes nothing and leaves `edited_at` alone. `DELETE` on the same path answers `204`. An update on another page, or one that isn't yours, answers `404`. Update ids come back in the page's `updates` from `GET /v1/mast/status-pages/{id}`. --- ## How many you get Free has no status pages. Team has 3 and Company 10. Deleting a page stops its address at once. Each component also carries its uptime for the last full month. [Uptime and reports](https://tissue.systems/mast/docs/reports/) has how it's counted. A single heartbeat also has a [badge](https://tissue.systems/mast/docs/heartbeats/#a-status-badge) for a README, which needs no page and works on Free. --- ## Your own domain On Team and Company, a status page can also be served on a subdomain of your own, such as `status.example.com`. It has to be a subdomain: `example.com` itself can't hold the CNAME record the page needs. It also has to sit under a public suffix such as `.com` or `.co.uk`, so IP addresses and internal names like `.local` are refused, and so are names under tissue.systems, tissue.dev and any other domain our nameservers serve. International names go in their `xn--` form, the way your DNS host shows them. A name is served by one status page at a time. Set it as `custom_domain` on the page, and the reply lists the two records to publish at your DNS host: ```http PATCH /v1/mast/status-pages/sp_8f2c41d0 Authorization: Bearer tok_... { "custom_domain": "status.example.com" } ``` ```json "domain": { "name": "status.example.com", "state": "pending", "records": [ { "type": "TXT", "name": "_mast-challenge.status.example.com", "value": "3f9c...e1" }, { "type": "CNAME", "name": "status.example.com", "value": "edge.tissue.dev" } ], "serving": false, "checked_at": null, "verified_at": null, "error": null } ``` The TXT record proves the name is yours, and the CNAME sends its traffic to us. Once both are published, ask for a check: ```http POST /v1/mast/status-pages/sp_8f2c41d0/domain/verify ``` The page comes back with `domain.state` set to one of these: - `verified`: both records were found. The page is live on `https://status.example.com`, with its own certificate, and `/` goes straight to it. - `failed`: one of the records is missing or doesn't match, and `domain.error` says which. Fix it and check again. DNS changes can take a while to reach everyone, so a check straight after publishing can fail and a later one pass. - `pending`: nothing was checked yet, or DNS couldn't be read at all. The check changed nothing; try again in a minute. A check where DNS couldn't be read at all, such as a lookup that times out or a resolver answering SERVFAIL because the zone's DNSSEC is broken, never changes the state, whatever it was. The reply's `check.transient` is `true` when that happened. `domain.serving` is `true` while the page is actually live on the name. A verified domain stops being served when the account's plan drops to Free or the page is paused over its plan's status page limit. It stays `verified`, `serving` turns `false` and `domain.error` says which, and it's served again once that's sorted out, without a new check. A domain that's verified stays verified when a check misses its records, so a check made halfway through a DNS change can't take the page down. That lasts a day from when the records were last found: after that, a check that still misses them moves the domain to `failed`, the same as our own re-check below. Changing `custom_domain` starts over with a new TXT value, and setting it to `""` removes the domain. Checks are spaced at least 10 seconds apart per page; one sooner answers `429`. Setting a name another status page has already claimed isn't refused, since a claim proves nothing until it's checked. The page whose TXT value is in DNS is the one that verifies, and when it does it takes the name over: the page that held it goes to `failed` with a note saying so. A name that a Cell on Tissue has already verified answers `409`. If that name is yours, write to support@tissue.systems. We also check every verified domain again every six hours. If the records have been missing or wrong for a day, the domain goes to `failed` and within a few minutes the page stops being served there; a DNS outage that leaves the records unreadable doesn't count. Publish the records again and check to bring it back. The page on your domain is the same page as at `tissue.systems/mast/status/<address>`, which keeps working too. Nothing else is served on your domain. --- ## Coming soon - **Email to subscribers.** - Publishing the page as a Cell on your own account. --- # Incidents and status / Uptime and reports Source: https://tissue.systems/mast/docs/reports/ # Uptime and the weekly report Tissue Mast keeps a daily uptime record for every probe and heartbeat, and keeps it for 400 days. You can read a month's uptime from the API, your status pages show the last full month next to the 90-day bars, and on Team and Company you get a short email every Monday about the week before. The web app shows both under **Uptime and reports**. It opens on the month in progress, lists every month back to the first one with figures, and starts with the lowest uptime at the top. Press a column heading to sort by it; the address keeps the sort, so a link you send opens the same way. Everything on this page also works through the API with an account token. --- ## How uptime is counted - A **probe** is up or down for the time between one check and the next. If checks stop for a while, say the probe was paused, that gap counts as neither. A check that was blocked, or that the places couldn't agree on, doesn't count either way. - A **heartbeat** is down from the moment it goes down until the page for it resolves, and up the rest of the time from its first beat. The time between creating a heartbeat and its first beat counts as neither, and a heartbeat that has never beaten isn't counted. - Time inside a [maintenance window](https://tissue.systems/mast/docs/maintenance/) that covers the probe or heartbeat counts as neither up nor down, so planned work doesn't cost you uptime. It shows up separately as maintenance minutes. Days are UTC. Downtime is rounded up to the minute, and the percentage is never rounded up to 100, so a probe that was down for 20 seconds in a month reads 99.999%, not 100%. --- ## A month's uptime ``` curl https://api.tissue.systems/v1/mast/uptime?month=2026-09 \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` Leave out `month` and you get the last full month. The month in progress works too and reads up to now. A month that hasn't started, or one before 2020, is refused. The answer lists every probe and heartbeat: ```json { "month": "2026-09", "from": "2026-09-01", "to": "2026-10-01", "complete": true, "first_month": "2026-03", "probes": [ { "id": "pr_4b1e…", "name": "api", "uptime_pct": 99.981, "downtime_minutes": 8, "maintenance_minutes": 120, "measured_minutes": 43080, "checks": 43200, "failed": 9, "incidents": 2, "avg_ms": 184, "median_ms": 171, "max_ms": 2140, "estimated": false } ], "heartbeats": [] } ``` `uptime_pct` is `null` when nothing was measured in that month. `estimated` is true when the figure includes days from before Tissue Mast kept the daily record. Those days are worked out from the number of checks that passed and failed, without maintenance windows taken out. `avg_ms`, `median_ms` and `max_ms` are response times for a probe's passing checks: the average, the median and the slowest one. One slow check moves the average and leaves the median where it was, so read the two together. The median is the middle day's median, with each day weighted by how many checks it had, because single checks are kept for 7 days and the daily record for 400. `median_ms` and `max_ms` are `null` for a month from before Tissue Mast kept them. A heartbeat has no response time. `first_month` is the earliest month the account has any figures for, or `null` when nothing has been measured yet. The uptime figure is on every plan, Free included. --- ## On a status page Each component on a [status page](https://tissue.systems/mast/docs/status-pages/) carries the last full month as `uptime_month`, with the month, the percentage, the minutes of downtime and `estimated`, which means the same as it does above. A probe listed twice on a page shows the same figure both times. --- ## The weekly report On Team and Company, Tissue Mast emails a report every Monday at 08:00 UTC about the week from Monday to Sunday before it. If you'd rather have it once a month, switch it to monthly: it then goes out at 08:00 UTC on the 1st and covers the calendar month before, in UTC. Either way it has: - uptime and minutes down for each probe and heartbeat - how many incidents there were, and how many alerts rang your phones (anything sent loud or as a page, which includes every probe and heartbeat alert) - your slowest probes by average response time, each with its median and its slowest check - the probes that failed most often The account owner gets it. Anyone else on the account can ask for it too. Each person gets one copy a week, or one a month on monthly. How often is set for the whole account, so everyone on the list gets the same one. Read the settings: ``` curl https://api.tissue.systems/v1/mast/reports/settings \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` ```json { "weekly": true, "frequency": "weekly", "available": true, "subscribed": false, "can_change_weekly": true, "subscribers": [], "next_send_at": "2026-10-19T08:00:00.000Z" } ``` `weekly` is the switch for the whole account and starts out on. Despite the name, it turns the report on or off at either frequency. `frequency` is `weekly` or `monthly`, and starts out weekly. `next_send_at` follows it: a Monday for weekly, the 1st for monthly. `available` says whether your plan includes the report. `subscribed` says whether you, the person calling, get it as a member. `can_change_weekly` says whether you can flip `weekly` and change `frequency`. The account owner and admins see everyone in `subscribers`; anyone else sees only themselves. The account owner or an admin can turn the report off for everyone, or on again. Anyone else gets a 403 and should use `subscribe` instead: ``` curl -X PUT https://api.tissue.systems/v1/mast/reports/settings \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"weekly": false}' ``` They can also switch it to monthly, or back to weekly. This doesn't turn it on or off: ``` curl -X PUT https://api.tissue.systems/v1/mast/reports/settings \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"frequency": "monthly"}' ``` Anything other than `weekly` or `monthly` answers 400. Get it yourself as a member of the account, or stop getting it: ``` curl -X PUT https://api.tissue.systems/v1/mast/reports/settings \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"subscribe": true}' ``` Subscribing is per person, so it needs your own sign-in or account token. A phone's device key can't subscribe anyone or change `weekly`. The report goes to the address on your Tissue account, and stops if you leave the account. If the account has no email address for you, subscribing answers 400. If you're no longer a member of the account, it answers 403. If the account's member list can't be read at that moment, subscribing answers 503 with `members_unavailable`, and so does changing `weekly` with an account token. Try again shortly. Each email has a link at the bottom to stop it, with no sign-in. The link opens a page with one button. On the owner's copy it turns the report off for the whole account; on anyone else's it takes only that person off the list. Mail programs that show their own unsubscribe button use the same link. The footer also says how to do it from the API: the owner's copy points at `weekly`, everyone else's at `subscribe`. See the last full week's or month's report without sending it: ``` curl https://api.tissue.systems/v1/mast/reports/weekly/preview \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` That returns the subject, the plain text and the HTML of the email, `frequency`, the period it covers and who it would go to. It follows the account's frequency; add `?frequency=monthly` or `?frequency=weekly` to see the other one. The path says weekly either way. The account owner and admins see the owner's copy and every address on the list. Anyone else sees the copy they'd get and only their own address, if they're on the list. On Free, turning the report on, changing `frequency`, subscribing and the preview answer 402 with `plan_limit`. Turning it off, with `weekly` or `subscribe`, always works, so an account that moved to Free can still stop it. --- # Mast Pager / Mast Pager Source: https://tissue.systems/mast/docs/pager/ # Mast Pager Mast Pager is the app that rings. It's on the [App Store](https://apps.apple.com/us/app/mast-pager/id6805232044?pt=129362925&ct=docs-pager&mt=8), free, for iPhone on iOS 17.2 or later. The Android app is on [Google Play](https://play.google.com/store/apps/details?id=systems.tissue.mast), free, for Android 12 or later. It does two jobs. Signed in, it's the phone Tissue Mast pages when a probe, a heartbeat or anything else you've wired up needs a person. On its own, with no account, it's a pager anything can post to. --- ## On its own, or with an account Install it and open it. The phone registers itself and that's the whole setup: no sign-up, no password. Make an alert source and it hands you a URL, and anything that can make an HTTP request can now ring your phone: ``` $ curl -d "disk 92% on db1" https://mast.tissue.dev/mk_9f2a41c8b7 {"ok":true,"id":"mm_7a3e5b91c04d2f68a1b3c5d7e9f02468","state":"queued"} ``` `queued` means Mast has the message. You get the same answer if Mast's storage is briefly unavailable, and then the message goes out as soon as it's back. The body of the request is the message. The phone is the credential and the address is the only secret. On its own, a phone gets 2 alert sources, 1 heartbeat, 1,000 messages a month and 7 days of history. Signing in to Tissue Mast, under **Sign in to Tissue Mast** in the app's settings, adds: | | On its own | Signed in | |---|---|---| | Alert sources and heartbeats | 2 alert sources, 1 heartbeat | Your plan's, 10 of each on Free | | Probes from eight places | No | Yes | | On call and escalation | One [partner](https://tissue.systems/mast/docs/on-call/#a-partner-without-an-account) | [Rotations and policies](https://tissue.systems/mast/docs/on-call/) | | A web app, incidents, status pages | No | Yes | | API tokens, alert sources as code | No | Yes | | Alert sources after a reinstall | Gone with the install | Kept; [link the new phone](https://tissue.systems/mast/docs/iphone/#a-reinstalled-phone) | Signing in doesn't change the app. Your alert sources, keys and messages stay where they are, and nothing on the sending side needs changing. [Watch your first site](https://tissue.systems/mast/docs/start/) is the five-minute version. --- ## Four levels Every message carries one of four levels, and the level decides what the phone does: - **quiet**: into the feed. No sound, no banner. - **normal**: a banner and a sound, held by the ringer switch, a Focus and the alert source's mute hours. - **loud**: time-sensitive, so it gets through a Focus. Once, unless the send asks for `every`. - **page**: rings through silent mode and repeats every two minutes until somebody acknowledges it, then moves on to the next person. An alert source has a default level and a highest level a sender can never go above, so an address pasted into a CI config can't wake you unless you said it could. [Alert sources and levels](https://tissue.systems/mast/docs/alert-sources/) has picking a level, the highest level, mute hours, mute and pausing pages. --- ## Making a page wake you A pager that doesn't wake you is worse than no pager. Each phone has its own settings that can take a page away, and the app checks them for you: the **Waking you** row in its settings lists each one live, with a button that fixes it. - **On iPhone**, a page is a critical alert once you've turned **Critical Alerts** on. That sounds with the ringer off and the volume down, and through a Sleep Focus. Until then a page is time-sensitive, which gets through a Focus but not the ringer switch. [iPhone](https://tissue.systems/mast/docs/iphone/#making-a-page-wake-you). - **On Android**, a page plays on the alarm stream and rings through Do Not Disturb once you've given the app Do Not Disturb access. Battery optimisation is the other thing to turn off. [Android](https://tissue.systems/mast/docs/android/#making-a-page-wake-you). The lock screen says what a page did as it lands, read off the phone's own settings: *critical alert · sounded through silent*, or *time sensitive · breaks through Focus*. Send yourself one before you rely on it. --- ## Answering **Acknowledge** means *I have this*. It stops the repeat and the escalation. **Resolve** means *it's over*. Both are on the notification itself and work from the lock screen with no Face ID and no app launch, because the point of a pager is the seconds. Swiping a page out of the notification list is neither. It keeps repeating, because a swipe is also what a hand does to a phone in a pocket. Every state change is a button somebody pressed on purpose. The rest of what the app does, the feed, the wall of heartbeats, the widget, Siri and the Watch, is on the [iPhone](https://tissue.systems/mast/docs/iphone/) and [Android](https://tissue.systems/mast/docs/android/) pages. --- ## Things people page themselves with - **A backup or a cron job.** A [heartbeat](https://tissue.systems/mast/docs/heartbeats/) pages when the check-ins stop. One `curl` on the end of the crontab line. - **Home Assistant.** A water leak, a freezer, a door left open. [Home Assistant](https://tissue.systems/mast/docs/home-assistant/). - **A spot on the band.** HamAlert and DX cluster spots, quiet by default and loud for the one you've been chasing. [Ham radio](https://tissue.systems/mast/hamradio). - **A deploy, a payment, a webhook.** Any service that can call a URL. [Sending alerts](https://tissue.systems/mast/docs/send/) has every field a send takes. [A day on the pager](https://tissue.systems/mast/day) follows one Tuesday end to end: what arrives, what waits for the morning, and the one thing that wakes somebody at 02:58. --- # Mast Pager / On iPhone Source: https://tissue.systems/mast/docs/iphone/ # Mast Pager on iPhone Mast Pager is the phone half of Tissue Mast: the app that rings, the settings that decide how loudly, and the buttons that answer. It's on the App Store as [Mast Pager](https://apps.apple.com/us/app/mast-pager/id6805232044?pt=129362925&ct=docs-iphone&mt=8), free, for iPhone on iOS 17.2 or later. The Android app is on [Google Play](https://play.google.com/store/apps/details?id=systems.tissue.mast), for Android 12 or later. It works with no account at all; signing in to Tissue Mast is [optional and adds to it](https://tissue.systems/mast/docs/pager/#on-its-own-or-with-an-account). This page is the manual for the app itself, written from the iPhone. The Android app is the same app with a different route from the push to your ear; [the Android page](https://tissue.systems/mast/docs/android/) has only what differs. What a sender can put in a message is on [Sending alerts](https://tissue.systems/mast/docs/send/); what happens to a page between the send and the lock screen is under [Delivery](https://tissue.systems/mast/docs/delivery/). --- ## First run Install it and open it. The phone registers itself with the server and that is the whole setup: no sign-up, no password, no permission prompt yet. If the registration fails, the feed says so with a **Retry** button, and the phone can't be paged until it succeeds. With no alert sources the app opens on the Alert sources tab. Two things are offered: - **New alert source** makes your first address. The rest of this page follows from there. - **See an example** opens a full copy of the app on sample data, marked *demo data · nothing here is live* on every screen, so you can see a page, a down heartbeat and a burst of grouped alerts before you have any of your own. **Close** brings you back. Notifications are not requested until you ask. The line at the top of the feed offers **Turn on notifications**; until you do, messages land in the feed and nowhere else, and the app checks the server every few seconds while it's open to make up for it. Critical Alerts, the permission that lets a page beat the ringer switch, are a separate step, under [making a page wake you](#making-a-page-wake-you). A reinstall starts unregistered, as a new phone. Getting your old alert sources back is a [link code](#a-reinstalled-phone), not a sign-in. --- ## Alert sources on the phone The Alert sources tab has **New alert source**, which asks for a name, a kind (an alert source, or a heartbeat where silence is the alert) and a default level, and hands you the key card: the address as text and a QR code, **Copy**, **Share**, and a `curl` line. Every setting is a row on the alert source's own page. [Alert sources and levels](https://tissue.systems/mast/docs/alert-sources/) has what each one does. The tab is two sections, **heartbeats** and **alert sources**, each row with a one-line summary: *pages*, *escalates to Sam*, *mute hours 22–07*, *muted until 14:10*, *3 today*. Swipe right on a row to **Mute 1h** (or **Unmute**); swipe left to **Delete**, behind a confirmation. Neither fires on a full swipe. Pull the row and the button waits to be tapped. --- ## Making a page wake you A page is delivered as a **critical alert** once you've allowed it: it sounds with the ringer switch off and the volume all the way down, and it goes through a Sleep Focus. Apple grants that entitlement app by app, and it's off until you turn it on from the phone that will be woken. The gear on either tab opens Settings. Under **this device**, the **Critical Alerts** row has a **Turn on** button. iOS asks you once, and only once per install; say no and there's no second prompt, only the Settings app, which is why the row then reads **Open Settings**. Until it's on, a page arrives as time-sensitive instead. That gets through a Focus, Sleep included, but not past the ringer switch. The **Waking you** row in Settings is a checklist of what a page has to get past on this phone: - **What this phone reports**, checked live, each with a button that fixes it: notifications allowed for Mast, Time Sensitive on for Mast, Critical Alerts on for Mast. - **What nobody can check for you**, because iOS won't tell an app: Mast allowed in your Sleep Focus (Settings → Focus → Sleep → Apps), and the ringer on. The line under the page level in the app says what a page would do on this phone right now (*standard alert · Focus can hold it back*, *sound is off · pages will arrive silent*) and turns amber when one could go unheard. The lock screen then names what a page did do as it lands: *critical alert · sounded through silent* or *time sensitive · breaks through Focus*, read off the phone's own settings, not off what the sender asked for. Send yourself one before you rely on it. ### What a page sounds like Six tones ship with the app: **default**, **bleep**, **chirp**, **rising**, **pager** and **klaxon**. An alert source picks one under Sound, tapping a tone plays it even with the ringer on silent, and a sender can name a different one for a single message with `sound=`. A page nobody chose a tone for arrives as **pager**. The system alert tone is about a second long, which is the right length for a notification and the wrong length for something promising to ring until you answer. The other levels keep the system tone: at those levels the sound is an interruption, not a summons. --- ## Mute hours, muting, and pausing pages Mute hours and mute are alert source settings, and **Pause pages** in Settings holds every page on this phone for half an hour, an hour or two hours, then sends the unanswered ones again at full volume. [Alert sources and levels](https://tissue.systems/mast/docs/alert-sources/#mute-hours-muting-and-pausing-pages) has how each one treats a page. --- ## The feed The feed is the Mast tab. Down the screen: the pause banner if one is running, a notice line (*no connection · as of 09:12*, *3 acknowledged, waiting to reach the server*), a *pages arrived while the phone was off* banner, the pinned page, the wall of heartbeats, the filter, and the list. **The pinned page** is the oldest unacknowledged page: *PAGING · 3:14*, the alert source, the message, a red **Acknowledge**, and under it what happens next. *Nobody acknowledges by 07:27 → Sam gets paged.* *Repeats every 2 min until someone acknowledges.* *Stops on its own at 08:00, nobody else is told.* If more pages are waiting, a counter under the card opens the Pages filter. **Rows** show the alert source, the time, the message, and where they apply: *×47* for repeats collapsed by dedupe or grouping, an *open* or *resolved* pill, *silent* for one that arrived without a sound, the dedupe key, and *first link from this alert source* on the first message from an alert source that carried a URL. **Filters**: All, Loud (loud and above, or anything that needs acknowledging), Pages. **Gestures**: swipe right to mute the alert source for an hour, swipe left to resolve, on a page that hasn't been closed and on nothing else. Long-press for **Copy message**, **Copy incident** and **This isn't mine**. ### One message Tap a row and the incident screen has everything the server knows about it: the alert source, when it fired, its key, a status line (QUEUED, DELIVERED, ACKNOWLEDGED, RESOLVED, *EXPIRED · unacknowledged*, SUPPRESSED), the body with Copy and Share, and a log: *fired*, *seen again ×3*, *repeated 4 of 30*, *escalated to Sam*, *acknowledged · Denis's iPhone*, *resolved*. Three timestamps sit with it, **sent**, **shown** and **acknowledged**, each a full date or *not yet*. If the sender asked for a level it didn't get, a line says so: *asked for page · sent loud · Critical Alerts are off on this device*. The first link an alert source ever sends is shown as text and opens only after **Show link**. A leaked address can put a page on a lock screen, and the first link from a new sender is where a phishing attempt would sit. [Delivery](https://tissue.systems/mast/docs/delivery/#the-first-link-from-an-alert-source-is-flagged) has why. At the foot: **Acknowledge**, **Resolve**, **Mute for 1 hour**, and **This isn't mine**. --- ## Answering a page **Acknowledge** means *I have this*. It stops the repeat and stops the escalation clock. **Resolve** means *it's over*. Both leave a line in the message's log, next to the ones the server wrote. Dismissing the notification is neither. Swipe a page out of the notification list and it keeps repeating, because a swipe is also what a hand does to a phone in a pocket. Every state change in Mast is a button somebody pressed on purpose, which is why Acknowledge is never a swipe action and is the only red button in the app. All of these answer the same page: - **The notification.** Pull it down or press and hold: **Acknowledge**, **Resolve**, **Mute alert source 1h**, **This isn't mine**. The first three work from the lock screen without Face ID and without opening the app. Loud and normal messages offer the last three; quiet ones the last two. - **The live card.** An unacknowledged page keeps a card on the lock screen and in the Dynamic Island, counting up from the moment it fired, showing how many times it has repeated and when it escalates, with **Acknowledge** and **Resolve** on it. It reads *acknowledged* or *resolved* for a few seconds afterwards and goes away. With Live Activities turned off for Mast, the page arrives as a plain notification instead. - **Apple Watch.** Pages reach a paired Watch by notification forwarding, with Acknowledge, Resolve and Mute on the notification. Acknowledging from the wrist goes back through the phone. - **Siri, Shortcuts, the Action button.** "Acknowledge the page in Mast" (also "Ack the page in Mast", "Mast acknowledge") answers the page that has been waiting longest and says which one: *Acknowledged db-01. 2 still paging.* The same step is available to a Shortcut and to the Action button. It answers the oldest page, not the newest, because in a burst the newest is already on the screen and the one at risk of moving to someone else's phone is the one that has waited longest. Resolve is deliberately not offered to Siri. One case none of them can act on: a phone that hasn't been unlocked since it was last restarted keeps Mast's files sealed, so the app can neither read what is paging nor record an answer. The feed, Siri and the Watch each say so instead of reporting an acknowledgement that never happened. ### Closing a page from the thing that opened it A monitor that pages usually also knows when the problem is over. Send a `key` with the page, then one more message on the same key with `resolve=1`. The recovery isn't a second card: its words replace the outage text on the card already on the phone, which turns green where it sits, the repeat and the escalation stop, and every device the page reached gets a quiet update. A heartbeat does this on its own: the first beat after a silence closes the page the silence opened. ### "This isn't mine" A page from an alert source you don't recognise, or an alert source whose key has leaked, has one button: **This isn't mine**, on the notification (this one asks for Face ID and opens the app), on the incident screen, or from a long-press on the row. It pauses the alert source and replaces its key in one step, so whoever holds the old address is cut off and whatever you run that sent to it needs the new key from the alert source's page. **Undo** turns the alert source back on and leaves the key replaced. [Delivery](https://tissue.systems/mast/docs/delivery/#this-isn-39-t-mine) has the reasoning. --- ## Heartbeats in the app A heartbeat is drawn as a dot: green while it's reporting in, amber while it's late, red once it's down, grey while paused. The wall of dots sits at the top of the feed, with a line under it: *all reporting*, *backups is 12 m late · grace until 03:47*, *cron-nightly went silent · grace ran out at 13:27*. Tap a dot to open that alert source. When a page is waiting the wall shrinks to make room for it. The **heartbeats** section of the Alert sources tab has the detail per heartbeat: *last beat 03:19 · due every 1 h*, or *waiting for its first beat*. The wall is also a **widget**: two sizes on the home screen, and a circle, a rectangle or a single line on the lock screen and in the Smart Stack. It reads *5 of 6* and turns amber or red on its own as a heartbeat goes late, without the app running. A tap opens Alert sources. A quiet pager and a broken one look identical from the outside. The wall is how you tell them apart without sending anything: every dot green means the things that would wake you are still checking in. [Heartbeats](https://tissue.systems/mast/docs/heartbeats/) has the periods, schedules, run limits and the badge. --- ## A second phone A page nobody acknowledges can move on to someone else. With an account, that's an [escalation policy](https://tissue.systems/mast/docs/on-call/). Without one, it's an **escalation partner** on the alert source: another phone that agreed to be woken, paired with a one-time code. [On call](https://tissue.systems/mast/docs/on-call/#a-partner-without-an-account) has both. --- ## Settings The gear on either tab. **getting started** has the Mast Pager page of these docs and the example. **this device** has the device name and its `md_…` id (tap to copy; acknowledgements and deliveries carry it), the Critical Alerts row, **Waking you**, **Pause pages**, and the version. Below that, the account section. ### Signing in to Tissue Mast Mast Pager works without an account. **Sign in to Tissue Mast** in Settings opens the sign-in page in a sheet; sign in or make a free account, and the phone links itself to that login. From then on your probes, heartbeats and on-call policies page this phone, the web app shows its alert sources, and the alert sources outlive the phone. **Connect with a code** does the same with a code from the web app's **Devices** screen. [Watch your first site](https://tissue.systems/mast/docs/start/#linking-your-phone) has both. ### A reinstalled phone A reinstall, or a new phone, registers as a new device with nothing on it. To give it the alert sources you already have, sign in to the [web app](https://dashboard.tissue.systems/mast/phones), open **Devices**, and **Get a link code**. On the phone, **Connect with a code** takes the eight characters (no 0, 1, I or O, so a code read aloud can't be misheard). The phone joins that login: it gets the login's alert sources and pages, and alert sources made on the new phone before the link stop reaching it. A code works once, for a few minutes. Scanning a `mast://link/…` QR does the same through an **Accept** sheet. Without an account, a reinstalled phone is a new owner, and the old alert sources are gone with the old install. Connecting an account is what makes the alert sources outlive the phone. --- ## Retention Messages leave the feed when they age out of your plan's history: 7 days on Free, 90 on Team, 365 on Company. Without an account, a phone keeps 7 days. A message the server no longer holds shows as *aged out of retention, or deleted* when opened. [Limits](https://tissue.systems/mast/docs/limits/) has the rest of the plan caps. --- # Mast Pager / On Android Source: https://tissue.systems/mast/docs/android/ # Mast Pager on Android Mast Pager on Android is the same app as [the iPhone one](https://tissue.systems/mast/docs/iphone/): the same screens, the same copy, the same server, the same alert sources if you link the two. It's on [Google Play](https://play.google.com/store/apps/details?id=systems.tissue.mast), free, for Android 12 or later. It works with no account at all; a [Tissue Mast account](https://tissue.systems/mast/docs/pager/#on-its-own-or-with-an-account) is optional and adds to it. This page is only what differs. Alert sources, levels, the feed, the incident screen, heartbeats, the escalation partner, pause, mute hours, link codes and retention are all on [the iPhone page](https://tissue.systems/mast/docs/iphone/) and behave the same way here. What Android does differently is the part between the push arriving and you hearing it, and that is most of what follows. --- ## First run Install it and open it. The phone registers itself with the server and that is the whole setup: no sign-up, no password. If the registration fails, the feed says so with a **Retry** button, and the phone can't be paged until it succeeds. Notifications are not requested until you ask. The line at the top of the feed offers **Turn on notifications**; until you do, messages land in the feed and nowhere else. Say no to Android twice and it stops asking; the **Waking you** row in Settings then opens the app's notification settings for you instead. With no alert sources the app opens on the Alert sources tab with **New alert source** and **See an example**, exactly as on iPhone. **See an example** is also in Settings as **Sample data**. --- ## Signing in to Tissue Mast Mast Pager works without an account. A [Tissue Mast](https://tissue.systems/mast/docs/) account adds probes from eight places, more heartbeats, a second phone that carries the same pages, and on call for a team. In Settings, tap **Sign in to Tissue Mast**. A browser tab opens on tissue.systems, and if you're already signed in there it comes straight back. The phone then joins your account and gets its alert sources. If the phone already has alert sources of its own, Mast Pager asks before it switches, because those alert sources stop reaching this phone. No account yet? **Create a free account** opens the sign-up page in a tab. Make one, come back, and tap **Sign in to Tissue Mast**. If the tab finishes and the app doesn't pick it up, a link screen opens with the code filled in. Tap **Accept**. You can also get a link code under **Devices** in the [web app](https://dashboard.tissue.systems/mast/phones) and type it in with **Connect with a code**. Once you're signed in, Settings shows the account, its plan and what it's using, and **Open Tissue Mast** goes to the web app. Probes, status pages, the on-call schedule and plan changes all live there. ## Making a page wake you On iPhone a page is a critical alert, one entitlement Apple grants per app. Android has no such thing. A page gets through because of four separate settings, each of which the phone can take away on its own, and the **Waking you** row in Settings reads all of them live and offers a **Fix** button for each. **Notifications allowed for Mast.** The permission from the first run. Without it nothing Mast receives can reach you. **Pages notification channel on.** Mast posts every message to one of five Android notification channels, **Pages**, **Loud**, **Normal**, **Quiet** and **Updates**, and the phone's own settings can turn any of them down. Pages are posted to **Pages**, which pops up and sounds the pager tone. The row takes you to that notification channel's settings when it has been turned down. **Pages ring through Do Not Disturb.** A notification channel may be allowed to sound through Do Not Disturb, but only after you've given Mast Do Not Disturb access, and then only if that notification channel's own **Override Do Not Disturb** switch is on. The row walks you through both: first the access, then it switches the notification channel on by itself where Android lets it, and tells you to flip the switch where it doesn't. A page on a notification channel without the override is held by Do Not Disturb like any other notification. **Alarm volume up.** A page plays the pager tone on the alarm stream, the way an alarm clock does. That means it follows the alarm volume, not the ring volume: a phone set to vibrate or silent still rings for a page, and the alarm volume at zero silences it. If Do Not Disturb is set to silence alarms, a row named **Alarms silenced right now** appears and says so; allow alarms in Do Not Disturb, or turn it off. Below those, three rows that aren't about sound: - **Pages open over the lock screen.** A page takes the whole screen on a locked phone, with **Acknowledge** and **Resolve** on it. Android 14 and later ask you to allow this per app, and the row opens that setting. Without it a page is a banner. - **Mast isn't battery optimised.** With battery optimisation on, Android can hold a push back while the phone sleeps, which for a page means minutes. The fix is the system's own exemption prompt. - **Re-rings on time.** An unanswered page rings again every 90 seconds from the phone's own clock, three times, under the server's own repeats. That needs exact alarm scheduling; without it a re-ring can wait a few minutes while the phone sleeps. This one is advisory, not required. Two more rows appear only when they apply. **Android delayed a page this week** means a push the server sent as urgent arrived as ordinary, which Android does once it has decided Mast wastes wakeups; the battery settings are the fix. **Your phone's battery manager** appears on phones from makers whose own battery managers stop apps on a schedule of their own (Samsung, Xiaomi, Huawei, Honor, OnePlus, Realme, Oppo) and opens the steps for your model on dontkillmyapp.com. One thing nobody can check for you: Mast allowed in your Modes (Settings → Modes → Do Not Disturb → Apps). And one thing not to do: **Force stop** in app info. After that Android delivers nothing to Mast until you open the app again. Swiping it away from recent apps is fine. The line under the page level in the feed says what a page would do on this phone right now (*Do Not Disturb would silence a page*, *the alarm volume is at zero · a page would not sound*, *battery optimisation can delay a page*) and its **What to check** button opens the list. Send yourself a test page before you rely on it. ### What a page sounds like The same six tones as on iPhone: **default**, **bleep**, **chirp**, **rising**, **pager** and **klaxon**, picked per alert source under Sound, or named for one message with `sound=`. A page nobody chose a tone for arrives as **pager**. A page's tone is played by the app itself, not by the notification. Some phones, Samsung's among them, skip a notification's sound entirely in vibrate or silent mode, override or no override, and a pager that depends on that sound is a pager that stays quiet in a pocket. So when a page lands, Mast plays the tone on the alarm stream and keeps playing it until you answer, swipe the card away, or 45 seconds pass; each re-ring and each repeat from the server starts it again. The other levels keep the alert source's own sound: at those levels the sound is an interruption, not a summons. --- ## Answering a page **Acknowledge** means *I have this*. **Resolve** means *it's over*. Both stop the tone, the re-rings and the escalation clock, and both leave a line in the message's log. Swiping the card away is neither. It stops the tone and the phone's own re-rings, because a card that's gone has nothing to ring for, but the server still has an unanswered page and sends it again on the alert source's repeat, so the card comes back. The lock-screen line under the card says what it did on landing, read off this phone's settings: *page alert · rings through Do Not Disturb*, *loud alert · breaks through Do Not Disturb*, *standard alert*, *arrived silently*. - **The notification.** Expand it: **Acknowledge**, **Resolve**, **Mute alert source 1h**. All three work from the lock screen without unlocking. Android draws three buttons on a card, so a page's card has no room for **This isn't mine**; that one is on the incident screen and behind a long-press on the row. Loud and normal messages offer **Resolve**, **Mute alert source 1h** and **This isn't mine**; quiet ones the last two. This isn't mine always asks for your screen lock first and opens the app. - **The full-screen page.** On a locked phone a page turns the screen on and opens itself over the lock screen, with **Acknowledge** and **Resolve** at the foot. Allowing that is the *Pages open over the lock screen* row above. - **The app.** The pinned page in the feed, and the foot of the incident screen: **Acknowledge**, **Resolve**, **Mute for 1 hour**, **This isn't mine**. A page that arrived while the phone was off is not lost. After a restart, after an app update, and whenever the push service tells the app it dropped messages, Mast pulls the feed and rings for whatever is still waiting on a human. --- ## What's on iPhone and not here - **Apple Watch**, and the Live Activity card in the Dynamic Island. On Android the full-screen card and the notification are the two places a page lives. - **Siri, Shortcuts and the Action button.** There is no voice or automation path to acknowledge a page on Android. - **The heartbeats widget.** The wall of dots is at the top of the feed; there is no home-screen or lock-screen version of it. - **Critical Alerts.** The Android equivalent is the four settings above, and unlike the iPhone entitlement any of them can quietly change later, which is why the checklist reads them every time it opens. A reinstall, a second phone, or moving between an iPhone and an Android phone is the same [link code](https://tissue.systems/mast/docs/iphone/#a-reinstalled-phone) in both directions: sign in to the [web app](https://dashboard.tissue.systems/mast/phones), get a link code under **Devices**, and **Connect with a code** on the new phone. The alert sources and the pages come across; the wake settings don't, because they belong to the phone. --- # Integrations / Sending alerts Source: https://tissue.systems/mast/docs/send/ # 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](https://tissue.systems/mast/docs/recipes/) has a problem and the send that fixes it, one at a time. [Home Assistant](https://tissue.systems/mast/docs/home-assistant/) and [Opsgenie](https://tissue.systems/mast/docs/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: ```bash # 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" ``` ```json { "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](https://tissue.systems/mast/docs/opsgenie/#the-quick-path-change-the-host-and-the-key) 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](https://docs.tissue.systems/docs/cells/configuration/#vault-encrypted-secret): ```toml [[bindings]] type = "vault" binding = "MAST_URL" # env.MAST_URL in your cell ``` ```bash ribo vault set my-cell MAST_URL # paste the send URL, then deploy ``` ```js 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: ```bash 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: ```yaml - 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](#priority-names-from-other-tools) 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](https://tissue.systems/mast/docs/incidents/#closing-one-from-the-sender) | | `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](#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](#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](https://tissue.systems/mast/docs/maintenance/#hold-on-a-send) | | `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](#confirm-before-it-pages) | | `in` | Seconds from now to deliver this send: 60–604,800. Not with `at` or `confirm`. See [Later, and again](#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: ```json { "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](https://tissue.systems/mast/docs/alert-sources/#the-highest-level) has why. --- ## Confirm before it pages `confirm=3` with a `key` says: don't show me this until it has happened three times. ```bash 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": ```bash # 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](https://tissue.systems/mast/docs/destinations/) that hears about everything. ```bash 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](https://tissue.systems/mast/docs/destinations/#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](https://tissue.systems/mast/docs/maintenance/): 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: ```json { "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 | ```bash 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](https://tissue.systems/mast/docs/limits/) has the rest. --- # Integrations / Destinations Source: https://tissue.systems/mast/docs/destinations/ # Destinations A destination is somewhere Tissue Mast tells about an alert besides your phone: a webhook of your own, a Slack, Discord or Teams channel, or the inbox of someone on the account. You save it once and pick the events it hears about. From then on every alert on the account opens, escalates, gets acknowledged and closes there too. A destination is a record of what happened. It never takes the place of the page: the phone still rings whether a destination answers or not. For one alert that should report back to one URL, there's [`callback=`](https://tissue.systems/mast/docs/send/#callbacks) on the send and nothing to save. --- ## Kinds | `kind` | `target` | Plan | |---|---|---| | `webhook` | An `https://` URL of your own. Every request is signed | Team and Company | | `slack` | A Slack incoming-webhook URL on `hooks.slack.com` | Every plan with an account | | `discord` | A Discord channel webhook URL on `discord.com` or `discordapp.com` | Every plan with an account | | `teams` | A Teams workflow URL, on `*.logic.azure.com`, `*.powerplatform.com` or `*.environment.api.powerplatform.com` | Every plan with an account | | `email` | The email address of a member of this account | Every plan with an account | | `telegram` | Coming soon | | Telegram goes through Tissue Mast's own bot, and it's switched on per server: until that bot is set up, adding a `telegram` destination answers `400` with `Telegram destinations are not available on this server`. Slack gets a short Block Kit message, Discord an embed from "Tissue Mast", Teams an Adaptive Card, and email a plain subject with a text and an HTML part. Each one carries a headline such as `Acknowledged by Denis: db is down`, the alert source, the first 600 characters of the body, and a link to the incident at `tissue.systems/mast/app/incidents/<id>`. A webhook gets the whole event as JSON, described under [Webhooks](#webhooks). Email goes only to people on the account. An address that isn't a member is refused with a `400`, and membership is checked again at every send, so someone who leaves the account stops getting mail and their destination goes `dead`. --- ## Events | Event | `type` in a webhook | When | |---|---|---| | `opened` | `mast.message.opened` | A send opened a card | | `escalated` | `mast.message.escalated` | Nobody answered and the page went to the next person | | `acked` | `mast.message.acked` | Someone acknowledged it | | `resolved` | `mast.message.resolved` | It was closed, by a person, a `resolve` send or a recovery | | `expired` | `mast.message.expired` | It ran out of time with nobody answering | | `probe_down` | `mast.probe.down` | A probe paged | | `probe_recovered` | `mast.probe.recovered` | That probe came back | | `vital_flatline` | `mast.vital.flatlined` | A heartbeat went down | | `heartbeat_down` | `mast.vital.flatlined` | The same event as `vital_flatline`, under the name heartbeat tools use | `heartbeat_down` and `vital_flatline` carry the same payload. Subscribe to whichever name your receiver already expects. Leave `events` out and the destination hears every one of them. Name some and it hears only those. An unknown name is a `400` that lists the real ones, and an empty list is a `400` too. An incident opens with `probe_down` when a probe raised it, `vital_flatline` (or `heartbeat_down`) when a heartbeat did, and `opened` for everything else. A destination that subscribes to the opening event always gets it before anything later about the same alert, even when the destination was added halfway through the incident, so an `acked` never arrives for something the receiver was never told about. Events for one alert arrive in order at each destination. --- ## Adding one In the app it's [Destinations](https://dashboard.tissue.systems/mast/destinations) in the side menu: pick the kind, paste the address, tick the events. The same page sends a test, shows the delivery log and sends a delivery again. Everything on it goes through the routes below. ```bash curl -X POST https://api.tissue.systems/v1/mast/destinations \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"kind": "slack", "name": "#ops", "target": "https://hooks.slack.com/services/T0C4B8XKD/B07RL2M9Q/Vh3kPz…", "events": ["opened", "acked", "resolved"]}' ``` ```json { "destination": { "id": "md_4f1a9c2e7b30d58a6e1f4c7b92d03a5e", "kind": "slack", "name": "#ops", "target": "https://hooks.slack.com/...", "events": ["opened", "acked", "resolved"], "state": "active", "signed": false, "chat_ack": "members", "last_ok_at": "", "last_error": "", "created_at": "2026-10-06T17:02:11.408Z" } } ``` The answer is `201`. `name` is up to 80 characters and defaults to the kind. The target is stored encrypted and never comes back whole: a URL shows as its host, an address as `d***@example.com`. Creating a destination needs `mast:write`. These are the refusals: | Answer | Why | |---|---| | `400` | An unknown `kind` or event, a name over 80 characters, a target the kind doesn't allow, or an email that isn't a member | | `402 plan_limit` | The plan's destination cap is reached, the owner has no Tissue Mast account, or a `webhook` on Free | | `503 outbound_disabled` | Destinations aren't switched on for this server | ## Changing, pausing and removing ```bash # rename it, or change what it hears curl -X PATCH https://api.tissue.systems/v1/mast/destinations/md_4f1a… \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"events": ["opened", "resolved"]}' # stop sending to it for a while curl -X PATCH https://api.tissue.systems/v1/mast/destinations/md_4f1a… \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"state": "paused"}' # remove it curl -X DELETE https://api.tissue.systems/v1/mast/destinations/md_4f1a… \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` A PATCH takes `name`, `events`, `state` and `chat_ack` (see [Acting from a chat](#acting-from-a-chat)). `state` is `paused` (from `active` or `failing`) or `active` (from `paused`). A paused destination gets nothing new, and what was already queued for it is skipped rather than held for later. The target can't be changed: delete the destination and add it again. Deleting one drops whatever was still queued for it. `GET /v1/mast/destinations` lists them all with the plan's cap as `limit` (`null` where there isn't one), and `GET /v1/mast/destinations/{id}` reads one. ## Testing one ```bash curl -X POST https://api.tissue.systems/v1/mast/destinations/md_4f1a…/test \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` ```json { "ok": false, "status": 404, "error": "HTTP 404" } ``` The test sends straight away and answers `200` with what the far end said. `ok: false` is the far end refusing, not the API failing, and `status` is `null` when no HTTP answer came back at all. A webhook's test event has `type` `mast.test`. --- ## Acting from a chat Posts to Slack, Teams and Telegram can carry **Acknowledge** and **Resolve**. A press does what the same button in the app does: the phones stop ringing, the timeline names who pressed it and from where (`Acknowledged by @dana (Slack)`), and the account's activity log gets a row. A second press, or a press after someone answered in the app, changes nothing and says who got there first. An open alert shows both. Once it's acknowledged only Resolve is left, and a resolved one has none. | Kind | How the buttons work | What you need | |---|---|---| | `slack` | Buttons on the post. After a press the post is replaced with one saying who acted | A channel added through the Tissue Mast Slack app, from **Chat buttons** in the app (`/mast/chat`). A webhook URL pasted by hand posts without buttons | | `teams` | Links on the card. Each opens the incident in the app, signed in, with one button to confirm | Nothing more. Opening the link does nothing by itself, so a link preview or a mail scanner can't acknowledge for you | | `telegram` | Buttons under the post, and the post is edited to say who acted | Coming soon, with Telegram destinations | ### Who may press them `chat_ack` on the destination decides: | `chat_ack` | Who | |---|---| | `members` | Only members of this account. This is the default | | `anyone` | Anyone who can see the post. They're recorded under the name the chat gives them | | `off` | Nobody. Posts go out without buttons, and a press on an older post is refused | ```bash curl -X PATCH https://api.tissue.systems/v1/mast/destinations/md_4f1a… \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"chat_ack": "anyone"}' ``` How `members` knows who pressed: - **Slack**: the presser's Slack profile email has to be the email of a member. The app reads it with the `users:read.email` scope it asks for at install. - **Teams**: the link opens the app, and whoever is signed in acts. They need `mast:write` on this account. - **Telegram**: in a private chat with the bot, the person is the one who linked it. In a group, each member links their own Telegram account once, from **Chat buttons** in the app (`POST /v1/mast/telegram/me` answers with a link to the bot). A press from anyone not linked to a member is refused. ### What a button can and can't do Each button carries a token signed by the server for one alert, one destination and one action, and it expires seven days after the post. A token copied from one post can't act on another alert, through another destination, or as the other action. A press from another Slack workspace than the one the app was installed in is refused. Nothing in a button lets anyone read the alert, change a destination, or act on anything else on the account. An alert that's scheduled or held for maintenance can't be answered from a chat until it has gone out. --- ## When a destination doesn't answer Any `2xx` counts as delivered. Anything else is tried again, on this schedule after the first attempt: | Retry | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | |---|---|---|---|---|---|---|---|---| | After | 5 s | 30 s | 2 min | 30 min | 2 h | 6 h | 12 h | 24 h | That's nine attempts over about 44 and a half hours. A `429` with a `Retry-After` of a day or less waits that long instead. Each attempt gets 5 seconds to connect and 10 seconds in all. Redirects are not followed, so a `3xx` counts as a failure and is retried. While attempts fail, the destination shows `failing` with the last error. The next success puts it back to `active`. After the ninth failure that one delivery is given up, and the destination stays `failing` for the next event. Some answers mean the URL is gone for good. A `404` or `410` from Slack, Discord or Teams means the webhook was deleted on their side, and the destination goes `dead` at once with nothing retried. A `404` from your own webhook is retried like anything else, since a deploy can briefly lose a route. | `state` | What it means | |---|---| | `active` | Delivering | | `failing` | The last attempt failed and retries are running. `last_error` says why | | `paused` | You paused it | | `dead` | The far end said the URL is gone, or an email's owner left the account | A dead destination comes back with `POST /v1/mast/destinations/{id}/reactivate`. Fix the far end first. Anything else answers `409 not_dead`. ## The delivery log ```bash curl -s "https://api.tissue.systems/v1/mast/destinations/md_4f1a…/deliveries?limit=20" \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` Each delivery has its event, the message it was about, its `state`, how many attempts it took, the last status, when the next attempt is due, and a `log` of up to the 20 most recent attempts with their time, status and error. `limit` defaults to 50 and goes up to 200. A delivery that finished, gave up or was skipped can be sent again: ```bash curl -X POST https://api.tissue.systems/v1/mast/destinations/md_4f1a…/deliveries/mob_9c2e…/replay \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` The replay answers `202` and sends the same body the first attempt did, with the same `webhook-id` and a fresh run of retries. One still waiting on a retry answers `404`. --- ## Webhooks A webhook destination gets a `POST` with a JSON body for each event: ```json { "type": "mast.message.acked", "version": 1, "event_id": "evt_3b8e1f0a6c4d92e7", "occurred_at": "2026-10-06T03:19:02.117Z", "message": { "id": "mm_7a3e5b91c04d2f68a1b3c5d7e9f02468", "channel_id": "mc_2b7d4e6081a3c5f79024b6d8e0a2c4f6", "channel_name": "db", "title": "db-01", "body": "replication stopped", "url": "", "priority": "page", "state": "acked", "dedupe_key": "db-01-replication", "dedupe_count": 2, "received_at": "2026-10-06T03:17:44.902Z", "acked_at": "2026-10-06T03:19:02.117Z", "acked_by": "iPhone", "resolved_at": "", "escalated_at": "", "repeat_count": 1 } } ``` The body is written once, when the event happens, so a retry hours later still says what was true at the time. A field with nothing in it is an empty string, not `null`. `event_id` is the same at every destination that hears the event. The request carries these headers: | Header | Value | |---|---| | `content-type` | `application/json` | | `user-agent` | `tissue-mast-webhook/1` | | `webhook-id` | The delivery's id (`mob_…`). It stays the same across retries and replays, so use it to drop a duplicate | | `webhook-timestamp` | Seconds since the epoch, when this attempt was signed | | `webhook-signature` | `v1,` and the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}` | Signing follows [Standard Webhooks](https://www.standardwebhooks.com/), so any of its libraries verifies a request. The secret comes back once, as `secret`, in the answer that created the destination: ```json { "destination": { "id": "md_8d20…", "kind": "webhook", "signed": true, … }, "secret": "whsec_q8Vb2kL0…" } ``` Keep it then: it isn't shown again, and there's no call to read it back or rotate it. To change it, add a new destination and delete the old one. Verifying by hand in Node, if you'd rather not take a library: ```js import { createHmac, timingSafeEqual } from "node:crypto"; function verify(secret, headers, rawBody) { const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64"); const signed = `${headers["webhook-id"]}.${headers["webhook-timestamp"]}.${rawBody}`; const expected = createHmac("sha256", key).update(signed).digest(); const age = Math.abs(Date.now() / 1000 - Number(headers["webhook-timestamp"])); return age < 300 && headers["webhook-signature"].split(" ").some((sig) => { const got = Buffer.from(sig.replace(/^v1,/, ""), "base64"); return got.length === expected.length && timingSafeEqual(got, expected); }); } ``` Verify against the raw body as it arrived. Parsing and re-serialising the JSON changes the bytes. ### What a webhook URL can be The target must be `https://` on port 443, with a host name rather than an IP address and no user name or password in it. Every address the name resolves to has to be a public one: a name that resolves to a private, loopback, link-local, carrier-grade NAT or documentation range, even for one of its addresses, is refused when you add it and again on every attempt. The request goes to the address that was checked, so a name can't be swapped to an internal address between the check and the call. --- ## During maintenance A [maintenance window](https://tissue.systems/mast/docs/maintenance/) holds the sound on your phone, and it holds the people-facing destinations with it. While a window covers an alert, Slack, Discord, Teams and email hear nothing about it. When the window closes, every alert it held that's still open gets its opening event sent to those destinations, followed by anything after, whether or not the close pages your phone again for it. An alert that opened and was acknowledged or closed inside the window never reaches them at all. The hold covers alerts that arrive while the window is open and would have made a sound. An alert that was already open when the window began, and a send that was `quiet` or `silent` to start with, or that mute hours or a mute had already quieted, reach these destinations as usual. Webhooks and `callback=` URLs aren't held. They get every event as it happens, window or not. --- # Integrations / Recipes Source: https://tissue.systems/mast/docs/recipes/ # Recipes A problem, and the send that does it. Grouped by what went wrong, not by which field fixes it, because that's the order you arrive in. Each one is a single request, with nothing to install. Every field is on [Sending alerts](https://tissue.systems/mast/docs/send/#send-fields). --- ## Ordinary sends ### A line of text is a whole send Nothing else is required. The body is the message, and the alert source supplies the priority. ``` $ curl -d "replication stopped" https://mast.tissue.dev/mk_1c9f… ``` Form-encoded, JSON or a bare body, by POST or GET. Use whichever your sender can already do. ### Say which machine, then what happened The title is the thing, the body is what it did. On the lock screen you read the title first, so make it the word you would search for at three in the morning. ``` $ curl -d title="db-01" \ -d body="no WAL segment in 11 minutes" https://mast.tissue.dev/mk_1c9f… ``` title up to 250 characters, body up to 4096. One of the two is required. ### Tell me without waking me Deploys, backups that worked, the nightly report. Keep the record without the sound. An alert source can default to this so the sender never has to say it. ``` $ curl -d title="2026.09.029" -d body="live on both edges" \ -d priority=quiet https://mast.tissue.dev/mk_1c9f… ``` priority is quiet, normal, loud or page, and falls back to the alert source's setting. ### Give me somewhere to go The notification gets a tap target: the failing CI run, the dashboard, the log line. You are holding the phone in the dark. Put the run one tap away instead of making yourself find it. ``` $ curl -d title="release 2026.09.029" \ -d body="build failed on the tag" \ -d url="https://github.com/…/runs/35055965614" \ -d url_title="Open the run" https://mast.tissue.dev/mk_1c9f… ``` url and url_title. Only http:// and https://. A custom scheme in a public URL would be a way to reach another app on your phone. ### Let me know what it is before I read it A different sound per alert source, or per send. Disk alerts and door sensors do not have to be told apart on the screen. ``` $ curl -d body="front door opened" \ -d sound=chirp https://mast.tissue.dev/mk_1c9f… ``` sound overrides the alert source's sound for one message. Six ship with the app: default, bleep, chirp, klaxon, pager and rising. ### Write it down, but do not notify me The feed becomes a log. Record every deploy, every sweep, every probe that came back fine, and let only the failures make a sound. When something does break, the run-up to it is in the same place. ``` $ curl -d body="sweep ok, 1,284 rows" \ -d silent=1 https://mast.tissue.dev/mk_1c9f… ``` silent=1 stores the message and sends no push at all. It cannot be combined with ack or with a page, because a page nobody sees would repeat forever. ### The event happened before the send did A batch job that collects failures and reports them at the end can say when each one actually happened. ``` $ curl -d body="job 4 failed" \ -d timestamp=1789412264 https://mast.tissue.dev/mk_1c9f… ``` timestamp takes Unix time or ISO-8601 and is range-checked. The feed still orders on arrival, so a sender with a wrong clock cannot reorder your inbox. ## Incidents ### Four hundred failures, one card A checkout endpoint starts throwing and every request pages you. Give the incident a name and the repeats merge into the message already on the phone, counting up in place. ``` $ curl -d priority=page -d key=checkout-500 \ -d title="checkout" -d body="500 from /pay" https://mast.tissue.dev/mk_1c9f… {"ok":true,"state":"deduped","duplicate":true} ``` key, up to 120 characters. Repeats inside the alert source's dedupe window merge; past it, a new card. The answer names the message they merged into. ### Close it when it comes back The card on the phone stops repeating, turns green, and its text is replaced by the recovery text. Every device the page reached gets the quiet update, a partner's phone included. On most alert apps a recovery is one more banner arriving underneath the one that is still going off. Here it replaces it. ``` $ curl -d resolve=1 -d key=checkout-500 \ -d title="checkout recovered" \ -d body="error rate back to zero" https://mast.tissue.dev/mk_1c9f… ``` resolve=1 closes the open message carrying that key. The answer says how long it was open, in seconds, as open_for. ### Close the exact one I raised For a sender that kept the id from its own answer and would rather not rely on a key matching. ``` $ id=$(curl -sS -d title="db-01 unreachable" -d priority=page \ https://mast.tissue.dev/mk_1c9f… | jq -r .id) # …later $ curl -d resolve=$id -d body="back up" https://mast.tissue.dev/mk_1c9f… ``` `resolve=<message id>`. A resolve that finds nothing open is not an error. It is stored quietly and wakes nobody, so a recovery that overtakes its own alert still lands. ### Make an ordinary alert wait for a human Not everything that needs an answer deserves the pager tier. A loud that asks to be acknowledged repeats and escalates like a page, without sounding through the ringer switch. ``` $ curl -d priority=loud -d ack=required \ -d title="certificate expires in 3 days" https://mast.tissue.dev/mk_1c9f… ``` ack=required. A page carries it already, and that is the difference between the two loudest tiers. ### Stop it repeating every thirty seconds A disk filling slowly does not need the interval a dead database gets. Set the repeat to the pace of the problem. ``` $ curl -d priority=page -d retry=600 \ -d title="/var 91% full" https://mast.tissue.dev/mk_1c9f… ``` retry in seconds, 30 to 86,400, or 0 to alert once and stop. The alert source has a default. ### Give up after an hour A queue that is backed up at midnight is usually drained by morning. If nobody has answered in an hour, stop the repeat. The card stays in the feed marked expired, so you can still see that it happened and that nobody answered. ``` $ curl -d priority=page -d expire=3600 \ -d title="queue depth 14k" https://mast.tissue.dev/mk_1c9f… ``` expire in seconds, 60 to 604,800, or 0 for no expiry. ### Wait for a human before the deploy continues The script pages, then blocks on its own message until somebody acknowledges it from the phone or the watch. A send key can read the messages it sent and nothing else. ``` $ id=$(curl -sS -d title="promote 2026.09.029?" -d priority=page \ https://mast.tissue.dev/mk_1c9f… | jq -r .id) $ until [ "$(curl -sS https://mast.tissue.dev/mk_1c9f…/messages/$id \ | jq -r .state)" = "acked" ]; do sleep 10; done ``` No extra field. The answer carries the id, and `/messages/<id>` under the same key carries its state, which device acknowledged it and when. ### If I do not answer, wake somebody else Nothing on the send says it. Who a page goes to next is a property of the alert source: an [escalation policy](https://tissue.systems/mast/docs/on-call/) that walks your rotation, or, with no account, one [partner](https://tissue.systems/mast/docs/on-call/#a-partner-without-an-account) who agreed to be woken. ## Watching for silence ### Page me when the cron job stops running This is the failure nothing else catches: the job did not fail, it stopped. A heartbeat expects to hear from you on a schedule, and when it does not, it pages, instead of waiting for a sender that is never going to call. ``` 17 3 * * * /usr/local/bin/backup.sh \ && curl -fsS -m 10 --retry 3 https://mast.tissue.dev/mk_8e2a… >/dev/null ``` A heartbeat is a send with no text, which is why the crontab line can be one curl. The alert source holds the period and the grace. ### The job that knows it failed Do not make it wait out the grace window. A job that has already seen its own exit code can mark the heartbeat down immediately and say why. ``` $ curl -fsS -m 10 --retry 3 -d body="backup exited 1" https://mast.tissue.dev/mk_8e2a…/fail ``` /fail on the end of the send URL, with an optional body. ### The heartbeat closes the incident its own silence opened Nothing to send. When the job runs again, the red card turns green, stops repeating, stops escalating, and says how long the heartbeat was down. If several pages were opened while the failure changed shape, the beat closes all of them. ``` $ curl -fsS -m 10 --retry 3 https://mast.tissue.dev/mk_8e2a… {"ok":true,"state":"alive"} ``` A beat arriving with no page open is a quiet card. There is nothing on the phone for it to answer. ### Say what the job did, not just that it ran A heartbeat takes text like any other alert source, and a send that carries text counts as proof of life too. ``` $ curl -fsS -d body="swept 1,284 rows in 41s" \ -d silent=1 https://mast.tissue.dev/mk_8e2a… ``` Same URL, same fields. The beat and the report are one request. ![One alert source opened as a sheet. cron-nightly, created aug 16, 29 messages, heartbeat; under it in red, silent 2 d, paged 1 d ago. A Send address panel holding https://mast.tissue.dev/mk_demo_cron_0000 with a QR code and Copy and Share buttons, then the same address again as a curl -fsS -m 10 --retry 3 command. A line of explanation: a request with nothing in it is a beat, it moves the clock and puts nothing on this phone; text sent to the same address arrives as a message; add slash fail to the address and the heartbeat goes down at once. Then the rows: Period 24 h, Grace 1 h, When it stops Pages. Highest priority Page, Sound Default, Mute hours Off, Escalation partner Nobody. Mute Off, Repeat every 2 m while it pages, Expire 1 h.](https://tissue.systems/mast/shots/vital.png) *Every recipe above, on one screen. The address the crontab line holds, then the period and the grace that decide when silence becomes late, then what a missed beat is allowed to do.* ## Silence, on your side ### Restart the service without paging yourself The deploy script silences its own alert source for the length of the restart, and the silence expires on its own, so a script that dies halfway through cannot leave the alert source muted forever. This one needs an API token from your Tissue Mast account: a send key can send, and only send. ``` $ curl -X POST https://api.tissue.systems/v1/mast/alert-sources/mc_2b7d…/mute \ -H "Authorization: Bearer $TISSUE_TOKEN" \ -d '{"until": "2026-09-16T05:20:00Z"}' ``` `POST /v1/mast/alert-sources/<id>/mute` with an instant. Sending until in the past clears it early. ### Never at night, for this one alert source The chatty alert source gets a window in which it is delivered silently. Set once on the alert source, not on every send. ``` $ curl -X POST https://api.tissue.systems/v1/mast/alert-sources \ -H "Authorization: Bearer $TISSUE_TOKEN" \ -d '{"name": "deploys", "quiet_start": 1320, "quiet_end": 420, "quiet_tz": "America/Los_Angeles"}' ``` quiet_start and quiet_end are minutes past midnight, and a window that wraps midnight is written the way you say it: 1320 to 420. quiet_tz takes an IANA zone name, resolved at the moment the window is judged, so it follows daylight saving. A fixed offset is accepted, but it cannot do that. It is one number, right for half the year. ### This alert source must never be able to page anyone The highest level belongs to the alert source, and every send is clamped to it. An alert source created from a token starts at loud, and only the app on a registered phone can raise it to the pager tier. No API token can do it, on create or on patch. So a leaked URL cannot promote its own alerts, and neither can the script that made the alert source. ``` $ curl -d priority=page -d body="…" https://mast.tissue.dev/mk_1c9f… # {"ok":true,…,"priority":"loud","capped":true,…}: delivered loud, the highest level this alert source allows ``` The message keeps the tier it asked for beside the tier it was delivered at, so the card can tell you asked for page · sent loud. ### I am in a meeting One tap silences everything for half an hour, an hour or two, Critical Alerts included, and shows you a banner the whole time so you cannot forget it is on. When it ends, everything that was held rings. End it early and they ring straight away. ``` # the app → Pause pages → 1 hour # banner: pages paused · until 14:30 ``` On the phone, not in the API. Only a pause and a [maintenance window](https://tissue.systems/mast/docs/maintenance/) silence a page. ### Except the smoke alarm An alert source can be marked as breaking through a pause, and then it sounds no matter what. The pause screen lists every alert source that will still ring, by name, so the exception is never a surprise. ``` # the app → the alert source → During a pause # "Still sounds" / "Quiet" ``` Per alert source, in the app. The pause screen names them while it is running. ### Twenty alerts in five minutes A monitor with no memory sends one alert per check, so something that flaps sends one every thirty seconds. Past the threshold the pushes collapse into one summary card that counts up, and the messages are all still in the feed. There is nothing to configure at the sender, and a page is never the message that gets grouped away. ``` # the 21st send in the window {"ok":true,"state":"suppressed"} ``` Twenty messages in 300 seconds to begin with, per alert source. ### Move a key without downtime Someone committed the URL to a public repo, or the laptop it lived on walked off. Rotate, update the senders, and the old key keeps working for seven days while you find them all. ``` $ curl -X POST https://api.tissue.systems/v1/mast/alert-sources/mc_2b7d…/rotate \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` A key that was never written down is not lost. /v1/mast/state carries the live key of every alert source. --- # Integrations / Home Assistant Source: https://tissue.systems/mast/docs/home-assistant/ # Mast and Home Assistant Home Assistant knows when there is water on your basement floor. Telling you about it at four in the morning, from a house with no open ports and no cloud subscription, is a different problem. [Mast](https://apps.apple.com/us/app/mast-pager/id6805232044?pt=129362925&ct=docs-home-assistant&mt=8) is a pager for your iPhone or [Android phone](https://play.google.com/store/apps/details?id=systems.tissue.mast). An automation sends a page, the phone rings until somebody acknowledges it, and Home Assistant can read that acknowledgement back. Nothing has to reach your house from the internet: every request goes outwards, from your Home Assistant to Mast, and the phone talks to Mast rather than to your house. You do not need a custom integration for any of this. Everything on this page uses `rest_command`, which has been part of Home Assistant core for years. There is one if you want it. [Mast for Home Assistant](https://github.com/tissue-systems/hass-mast) installs through HACS and makes the same calls, and it adds the part that is awkward in YAML: `mast.page` waits for the acknowledgement and returns it to the automation, and each alert source gets entities for who answered and whether a page is still open. Everything below works without it. --- ## Who this is for You run Home Assistant yourself, on a Pi, a mini PC or an old laptop in a cupboard. You have no Home Assistant Cloud subscription and no ports forwarded, and you would like to keep it that way. Maybe you reach it over Tailscale or WireGuard when you are out, maybe you do not reach it at all. That setup is the one Mast fits best, because the only thing it asks of your network is the ability to make an ordinary outgoing HTTPS request. There is a short section at the end for people who **do** have Home Assistant Cloud. Read the rest first anyway: the cloud changes less about this than you would think. --- ## What the Home Assistant app already does, and where it stops Keep the Home Assistant companion app. It is free, it does rich notifications with images and buttons, and it is the right place for almost everything your house says. This page is not about replacing it. It stops in three places. None of them are bugs; they're what a notification is. **A notification is one shot.** It is sent, and that is the end of it. Nothing repeats, nothing escalates, and nothing anywhere records whether you saw it. If you slept through it, your house does not know. **Tapping a button needs a path back to your house.** The companion app's actionable notifications work by firing a `mobile_app_notification_action` event back at your instance. On your own wifi that is a local connection. Away from home, without remote access, the tap has nowhere to go. **It cannot tell you about itself.** If Home Assistant has crashed, the SD card has died, or the power is out, the notification you most wanted is the one nothing is left to send. There is also a limit: the companion app allows [500 push notifications per device per day](https://companion.home-assistant.io/docs/notifications/notification-details/), reset at midnight UTC. That is plenty for normal use, and it is exactly the sort of thing a stuck sensor eats in an afternoon. Mast is a second, deliberately separate path. Different app, different servers, and a page that repeats until a person answers it. Because the phone talks to Mast instead of to your house, acknowledging a page works from hotel wifi, from a car, from a phone with no VPN and no idea what your internal IP range is. A rule of thumb for deciding which app something belongs in: | What happened | Where it should go | |---|---| | The washing machine finished | Home Assistant app | | Somebody rang the doorbell | Home Assistant app | | The 3D print is done | Home Assistant app | | The front door unlocked at 02:00 | Mast, at `loud` | | There is water on the basement floor | Mast, at `page` | | The freezer has been above -12 C for ten minutes | Mast, at `loud` | | Home Assistant itself has stopped | Mast, as a heartbeat. Nothing else can | --- ## The ten-minute setup ### 1. Make an alert source Install Mast, tap **New alert source**, and give it a name like `house`. The app hands you a send address that looks like this: ```text https://mast.tissue.dev/mk_8e2ab3c4d5e6f708192a3b4c5d6e7f8091a2b3c4 ``` That URL is the whole credential. Anyone who has it can ring your phone, so treat it like a password: it goes in `secrets.yaml`, not in a forum post and not in a screenshot. There is no Tissue Mast account to create for this and no API token to manage. An alert source and a URL is all of it. ### 2. Put it in `secrets.yaml` ```yaml # secrets.yaml mast_url: "https://mast.tissue.dev/mk_8e2ab3c4d5e6f708192a3b4c5d6e7f8091a2b3c4" ``` ### 3. Add three commands to `configuration.yaml` ```yaml # configuration.yaml rest_command: # An ordinary notification. Nothing repeats. mast_notify: url: !secret mast_url method: post content_type: "application/json" payload: >- {{ {"title": title, "body": body | default(""), "priority": priority | default("normal"), "key": key | default("")} | to_json }} # A page. Rings until somebody acknowledges it on the phone. mast_page: url: !secret mast_url method: post content_type: "application/json" payload: >- {{ {"title": title, "body": body | default(""), "priority": "page", "key": key, "expire": expire | default(1800)} | to_json }} # "It is fixed" — closes the page with this key and turns the card green. mast_resolve: url: !secret mast_url method: post content_type: "application/json" payload: >- {{ {"title": title | default("Resolved"), "body": body | default(""), "resolve": "1", "key": key} | to_json }} ``` `to_json` does the quoting for you, so a body containing an apostrophe, a newline or a temperature reading will not break the request. ### 4. Reload, and try it Restart Home Assistant, or go to **Developer tools → YAML** and reload REST commands. Then open **Developer tools → Actions** (called Services on older versions), pick `rest_command.mast_notify`, and run it with: ```yaml title: Hello from Home Assistant body: If you are reading this on your phone, it works. priority: normal key: setup-test ``` Your phone should buzz within a second or two. If it does not, skip to [when it does not work](#when-it-does-not-work). Now try `rest_command.mast_page` with `title: Test page` and `key: setup-test-page`. That one keeps ringing until you swipe **Acknowledge**, which is the whole point of the thing. > The automations below use the newer `triggers:` / `actions:` spelling. If your Home Assistant predates 2024.10, write `trigger:` / `action:` and use `service:` where these say `action:`. The contents are identical. --- ## Your first real automation ```yaml automation: - alias: Water in the basement mode: single triggers: - trigger: state entity_id: binary_sensor.basement_leak to: "on" for: "00:00:30" actions: - action: rest_command.mast_page data: title: Water in the basement body: "Leak sensor by the water heater. Main valve closing in 60 seconds." key: leak-basement - delay: "00:01:00" - action: switch.turn_off target: entity_id: switch.main_water_valve ``` Three things in there are doing real work. `for: "00:00:30"` means the sensor has to stay wet for thirty seconds. A sensor with a loose lead that flickers on and off does not fire this automation at all. `key: leak-basement` is the dedupe key. It names the *situation*, not the message. If the automation fires again while the first page is still on the phone, Mast merges the second one into the first instead of ringing again. Get this field right before anything else on this page. The [next section](#flapping-sensors-the-one-thing-to-get-right) is entirely about it. `mode: single` stops Home Assistant from running two copies of this automation at once. And when the leak stops: ```yaml automation: - alias: Basement dry again triggers: - trigger: state entity_id: binary_sensor.basement_leak to: "off" for: "00:05:00" actions: - action: rest_command.mast_resolve data: key: leak-basement title: Basement dry body: Sensor has been clear for five minutes. ``` The card on your phone goes green, stops ringing and stops escalating, and the notification says how long it was open. If nothing was open, nothing bad happens: the resolve is filed as a silent note in the feed and wakes nobody. --- ## Making it actually wake you This is the part people skip and then discover at 4 a.m. A Mast page is delivered as a **time-sensitive** notification, which breaks through a Focus, Sleep included. To also ring through the physical silent switch on the side of the phone, the page has to be delivered as a **critical alert**, and that happens only on a phone where you have turned Critical Alerts on for Mast. In the app, tap the gear on the feed to reach **Settings**. There is a row for Critical Alerts with a **Turn on** button; iOS asks its own permission question, once. The app tells you where it stands. The line under the page tier reads `time sensitive · breaks through Focus` and turns amber when a page could go unheard, and its button opens a checklist of the five settings that decide the outcome. Two more things belong to the phone, not to your YAML: **The alert source's highest level.** Every alert source has a maximum priority, set in the app on the phone that owns it. A send asking for `page` on an alert source whose highest level is `loud` is stored and delivered as `loud`. There's no error, because the point of the highest level is that whoever holds the sending key cannot raise it, but the answer to the send says `"capped": true`. If a page arrives quietly, this is the first thing to check. **A test that tests the real thing.** The app can send itself a test at a chosen tier, up to the alert source's highest level. Do that once, with the phone face-down on a nightstand and the ringer switch off, before you trust it with the sump pump. The full list of what makes a page audible is in [making a page wake you](https://tissue.systems/mast/docs/pager/#making-a-page-wake-you). --- ## Choosing a priority | Priority | What the phone does | Use it for | |---|---|---| | `quiet` | Appears in the list, no sound, no lit screen | A log line you want to be able to look up later | | `normal` | An ordinary notification | The sort of thing the Home Assistant app already handles | | `loud` | Time-sensitive: breaks through Focus and Sleep | Wake somebody up once, or again every so often with `every=` | | `page` | Repeats until acknowledged, ignores mute hours and mutes | Something that will get worse until a person does something | A `page` is the only tier that asks for an answer, and the only one that keeps asking. Use it sparingly. Three pages a month that all mattered is a pager, and thirty pages a month is an app your household turns off. --- ## Flapping sensors: the one thing to get right A reed switch with a tired magnet, a leak probe with a loose lead, a Z-Wave sensor at the far end of a weak mesh: any of these can change state once a second for hours. An automation with no `for:` and no `key:` turns that into one send per flip. One send a second is sixty a minute, and sixty a minute is exactly the limit: a send key is allowed **60 requests per minute**, shared between sending and reading answers back. Past that, Mast answers `429` and stores nothing. By then your phone has buzzed sixty times, your feed has sixty rows, and the actual problem, a loose lead, is buried under them. ### What a dedupe key does Every send carrying the same `key` inside the alert source's dedupe window is merged into the first one. Merged means no second notification, no second row, no second buzz: the card already on your phone updates in place with a count, so it reads `×47` instead of arriving forty-seven times. The window is five minutes by default, per alert source, and you can set it up to a day in the app. A good key names the situation and stays the same across firings: ```yaml key: leak-basement key: freezer-warm key: door-garage-open key: ups-on-battery ``` A bad key is one that changes every time, because that is the same as having no key at all: ```yaml key: "leak-{{ now().timestamp() }}" # a brand new key every second ``` ### Five guards, strongest first **1. Do not let the trigger fire on noise.** `for:` costs nothing and fixes most of it. ```yaml triggers: - trigger: state entity_id: binary_sensor.basement_leak to: "on" for: "00:00:30" ``` **2. Put a key on every send.** All the examples on this page have one. **3. Do not send again while the last one is unanswered.** Keep a helper that the automation sets when it pages and clears when the thing recovers, and refuse to send while it is on: ```yaml # configuration.yaml input_boolean: leak_page_open: ``` ```yaml automation: - alias: Water in the basement mode: single triggers: - trigger: state entity_id: binary_sensor.basement_leak to: "on" for: "00:00:30" conditions: - condition: state entity_id: input_boolean.leak_page_open state: "off" actions: - action: input_boolean.turn_on target: entity_id: input_boolean.leak_page_open - action: rest_command.mast_page data: title: Water in the basement body: Leak sensor by the water heater. key: leak-basement ``` Clear it in the recovery automation, next to the `mast_resolve` call. **4. Throttle with a timer for anything chatty.** A `timer` helper is the simplest rate limit Home Assistant has: ```yaml # configuration.yaml timer: mast_cooldown: duration: "00:15:00" ``` ```yaml conditions: - condition: state entity_id: timer.mast_cooldown state: idle actions: - action: timer.start target: entity_id: timer.mast_cooldown - action: rest_command.mast_notify data: title: Basement humidity high body: "{{ states('sensor.basement_humidity') }} percent" priority: normal key: basement-humid ``` **5. Notice when it happens.** Every send answers with `"duplicate": true` when it was merged. Log that rather than paging about it. The answer to too many alerts is never one more alert: ```yaml - action: rest_command.mast_notify data: title: Freezer warming body: "{{ states('sensor.garage_freezer_temp') }} C" key: freezer-warm response_variable: sent - condition: template value_template: "{{ sent.content.duplicate | default(false) }}" - action: logbook.log data: name: Mast message: "freezer-warm grouped, the sensor is chattering" ``` ### What Mast does if you get it wrong anyway There is a backstop. Past roughly **20 messages in five minutes** on one alert source, Mast stops pushing each one and groups them into a single summary card that later messages refresh in place. Nothing is thrown away: the feed still keeps every message, and both numbers are adjustable per alert source. One exemption: **a `page` is never grouped this way.** A page that gets suppressed is a page that does not exist, and a pager may not do that. So the backstop saves you from a flapping `loud` sensor and does nothing at all for a flapping `page`. On a page, your dedupe key is the only thing between you and a very bad night. ### The budget, in one table | | | |---|---| | Requests per send key | 60 a minute, sends and reads together | | Merged duplicates | Cost a request; no notification, no feed row | | Request size | 16 KiB | | History kept | Your plan's: 7 days on Free and with no account, 90 on Team, 365 on Company | A sensible automation sends single-digit messages a day and never sees any of these. --- ## Mast watching Home Assistant This is the thing the companion app cannot do for you, and for a self-hosted setup it may be the best reason on this page. A **heartbeat** is an alert source that expects to hear from you on a schedule. Home Assistant beats it every fifteen minutes. If the beat stops (the Pi died, the power went out, the internet is down, Home Assistant is stuck in a boot loop), Mast notices the silence and pages you. Create a heartbeat alert source in the app: **New alert source**, and pick **Heartbeat** instead of the ordinary kind. A new heartbeat expects a beat every hour and allows ten minutes of grace, which fits this without changing anything. Beat it every fifteen minutes and a missed beat has to be missed four times over before Mast says anything. The app hands you a second URL. ```yaml # secrets.yaml mast_heartbeat_url: "https://mast.tissue.dev/mk_1c9f…" ``` ```yaml # configuration.yaml rest_command: mast_heartbeat: url: !secret mast_heartbeat_url method: post ``` ```yaml automation: - alias: Tell mast Home Assistant is alive triggers: - trigger: time_pattern minutes: "/15" actions: - action: rest_command.mast_heartbeat ``` That is the whole thing. A beat is a send with no text, so there is nothing to configure and nothing to read. You will hear about a real outage within about seventy minutes, and you will hear nothing at all about a routine restart. To hear sooner, open the alert source in the app and shorten **Period**, but keep the grace at three or four times the beat, because Home Assistant updates itself, reboots, and occasionally takes a few minutes to come back, and a grace window shorter than that pages you every upgrade night. When it comes back, the next beat closes the incident on its own: the red card turns green and tells you how long the silence lasted. Nothing else to write. You can also make a shutdown say so, which turns "my house is offline" into "I turned my house off": ```yaml automation: - alias: Home Assistant is stopping triggers: - trigger: homeassistant event: shutdown actions: - action: rest_command.mast_notify data: title: Home Assistant shutting down body: "Restart or power off at {{ now().strftime('%H:%M') }}." priority: quiet key: ha-shutdown ``` --- ## Waiting for an answer Everything above is one-way: send, and carry on. Mast can also tell you what the person did, which lets an automation wait for a human before it acts. Add one more command. It needs the message URL, so `secrets.yaml` gets a second line with the same key in it. The `{{ id }}` is filled in when the command runs: ```yaml # secrets.yaml mast_status_url: "https://mast.tissue.dev/mk_8e2ab3c4d5e6f708192a3b4c5d6e7f8091a2b3c4/messages/{{ id }}" ``` ```yaml # configuration.yaml rest_command: mast_status: url: !secret mast_status_url method: get ``` Now an automation can send a page, wait, and branch on the answer: ```yaml automation: - alias: Ask before closing the valve mode: single triggers: - trigger: state entity_id: binary_sensor.basement_leak to: "on" for: "00:00:30" actions: - action: rest_command.mast_page data: title: Water in the basement body: Acknowledge within ten minutes or the main valve closes. key: leak-basement expire: 600 response_variable: sent - repeat: sequence: - delay: "00:00:10" - action: rest_command.mast_status data: id: "{{ sent.content.id }}" response_variable: page until: - condition: template value_template: >- {{ page.content.state in ['acked', 'resolved', 'expired'] or repeat.index >= 60 }} - choose: - conditions: - condition: template value_template: "{{ page.content.state == 'acked' }}" sequence: - action: logbook.log data: name: Mast message: >- Acknowledged by {{ page.content.acked_by }} after {{ (page.content.acked_at | as_timestamp - page.content.received_at | as_timestamp) | round }} seconds. Valve left open. default: - action: switch.turn_off target: entity_id: switch.main_water_valve - action: rest_command.mast_notify data: title: Main valve closed body: Nobody answered, so the valve was closed automatically. priority: loud key: leak-basement-closed ``` What that does: page the phone, poll every ten seconds for up to ten minutes, and if nobody swipes **Acknowledge** in that time, close the valve and say so. Keep the poll gentle. Every poll spends one of the sixty requests a minute that the alert source gets, so ten seconds is comfortable and one second is not. If you want to wait for hours, poll every ten seconds for the first few minutes and then slow down. If you would rather not own that loop, the [HACS integration](https://github.com/tissue-systems/hass-mast) has one built in: `mast.page` returns `acknowledged`, `acked_by` and `open_for` into a `response_variable`, and its polling backs off as a page ages. The requests come out of the same sixty a minute. The status response is small and readable: ```json { "id": "mm_7a3e5b91c04d2f68a1b3c5d7e9f02468", "state": "acked", "received_at": "2026-09-17T03:48:12.417Z", "dedupe_count": 0, "acked_at": "2026-09-17T03:48:49.102Z", "acked_by": "Denis's iPhone", "resolved_at": null, "expires_at": null } ``` `state` is `fired` while it is still ringing, and `acked`, `resolved` or `expired` once it is over. --- ## Sounds, pauses and mute hours These all live on the phone, which is deliberate: the person being woken decides how, and no automation and no key can overrule them. **Five sounds.** Mast ships `pager`, `klaxon`, `rising`, `chirp` and `bleep`, and the app plays one when you tap it. Set one per alert source, or name one on a send with `sound: klaxon`. Different sounds for different alert sources is the cheapest way to know what happened before you've looked at anything: a klaxon for water, a chirp for the freezer. **The pause** (Mast 1.2). Sometimes the house has to stop ringing for an hour for a meeting, a film or the dentist. A page ignores mute hours and mutes by design, so the pause is the control for this: you name a length, pages arriving inside the window are delivered silently, and everything nobody acknowledged goes back out at full volume the moment the window closes. Nothing is dropped and nothing is downgraded. It is on the phone and only on the phone: no send field and no token can open or close one. **Mute hours** soften an alert source overnight, so the bin-day reminder does not wake anybody. They are per alert source, they are unset until you set them, and a `page` ignores them on purpose. They can also be set from an [alert source catalogue](https://tissue.systems/mast/docs/alert-sources-as-code/) if you would rather keep them in a file than in an app. --- ## More examples **Freezer warming up.** A ten-minute `for:` keeps a defrost cycle from paging you. ```yaml automation: - alias: Freezer warming triggers: - trigger: numeric_state entity_id: sensor.garage_freezer_temp above: -12 for: "00:10:00" actions: - action: rest_command.mast_notify data: title: Freezer warming body: "Garage freezer is at {{ states('sensor.garage_freezer_temp') }} C." priority: loud key: freezer-warm ``` **The power went out and the UPS is on battery.** The house is running on borrowed time, so this one pages. ```yaml automation: - alias: UPS on battery triggers: - trigger: state entity_id: sensor.ups_status to: "On Battery" for: "00:01:00" actions: - action: rest_command.mast_page data: title: Power is out body: "UPS at {{ states('sensor.ups_battery_charge') }} percent, about {{ states('sensor.ups_battery_runtime') }} minutes left." key: power-out ``` **A door left open.** Loud, once, with a key so a wobbly contact cannot repeat it. ```yaml automation: - alias: Garage door left open triggers: - trigger: state entity_id: cover.garage_door to: "open" for: "00:20:00" actions: - action: rest_command.mast_notify data: title: Garage door still open body: "Open for twenty minutes." priority: loud key: door-garage-open ``` **Nobody is home and a motion sensor went off.** A notification carries text, so send the camera as a link and let the tap open it. See [the cloud section](#if-you-do-have-home-assistant-cloud) for the `url` field this uses. ```yaml - action: rest_command.mast_notify_linked data: title: Motion in the hallway body: "Nobody is home, and the hallway sensor fired." priority: loud key: motion-hall ``` **Send to both apps at once.** One script, two notifications: rich and quiet on the companion app, loud and repeating on Mast. ```yaml script: tell_me: sequence: - parallel: - action: notify.mobile_app_iphone data: title: "{{ title }}" message: "{{ body }}" - action: rest_command.mast_notify data: title: "{{ title }}" body: "{{ body }}" priority: loud key: "{{ key }}" ``` --- ## If you do have Home Assistant Cloud Home Assistant Cloud is a good product and it solves a different problem. It gives you a working address for your house from anywhere, which makes the companion app's buttons work when you are out and saves you from running a tunnel. What it does not change: - A companion notification is still one shot. It does not repeat, does not escalate, and does not record that you saw it. - The 500-a-day push limit is a property of the companion app, not of your remote access. - If Home Assistant is down, the cloud has nothing to relay. A heartbeat watching your instance is still the only thing that pages you about your instance. What it adds to this page: with a public address, you can put a link on the notification so that tapping a page lands you on the right dashboard from anywhere. ```yaml rest_command: mast_notify_linked: url: !secret mast_url method: post content_type: "application/json" payload: >- {{ {"title": title, "body": body, "priority": priority | default("loud"), "key": key, "url": "https://YOUR-ID.ui.nabu.casa/lovelace/water", "url_title": "Open the water dashboard"} | to_json }} ``` Without the cloud, the same field still works. Point it at `http://homeassistant.local:8123/lovelace/water` and it works on your own wifi, or at your tailnet address and it works wherever your VPN does. --- ## When it does not work **Nothing arrives at all.** Run the command by hand from **Developer tools → Actions** and read the response. A `404` means the key in `secrets.yaml` is wrong, or the alert source was deleted, or the key was rotated more than seven days ago. A `429` means more than sixty requests in the last minute, so something is firing in a loop. **The message is in the app but the phone stayed quiet.** Check the alert source's highest level in the app: a `page` sent to an alert source capped at `loud` is delivered as `loud`. The message in the feed shows what it was actually delivered as. After that, work through the [wake settings](https://tissue.systems/mast/docs/pager/#making-a-page-wake-you). The one that catches most people is the ringer switch, which only a critical alert beats. **A flapping sensor woke the house.** Add `for:` to the trigger, add a `key:` to the send, and drop the priority from `page` to `loud`. Grouping will collapse a flapping `loud`; it will never group a `page`. **Mast paged me because Home Assistant restarted.** The heartbeat's grace window is too short. Three or four times the period is about right. **A template error on send.** Build the payload with `to_json`, as above, rather than by pasting values into a string. A body with a quote, a newline or an ampersand in it is fine that way and breaks the other way. **It worked and then stopped after a key rotation.** A rotated key keeps working for seven days, which is your window to update `secrets.yaml`. After that it is a `404`. Every message Mast accepted is in the app's feed for as long as your plan keeps history (7 days on Free, 90 on Team, 365 on Company), including the ones that arrived silently and the ones that were merged or grouped, so the feed is usually the fastest place to find out what your automation actually sent. --- ## Where to go next - [Sending alerts](https://tissue.systems/mast/docs/send/): every send field, the sounds and the limits. [Incidents](https://tissue.systems/mast/docs/incidents/) has how a page closes. - [Alert sources as code](https://tissue.systems/mast/docs/alert-sources-as-code/): keeping alert sources, mute hours and heartbeats in a file instead of in an app. - [Mast for Home Assistant](https://github.com/tissue-systems/hass-mast): the HACS integration, with five actions, a notify entity, entities for who answered and whether a page is open, and four blueprints. --- # Integrations / Alert sources as code Source: https://tissue.systems/mast/docs/alert-sources-as-code/ # Mast alert sources as code [The app](https://apps.apple.com/us/app/mast-pager/id6805232044?pt=129362925&ct=docs-channels&mt=8) creates an alert source in three taps and hands you its URL. For one phone and a handful of senders that is the whole job. Past that, the set of alert sources is configuration: which ones exist, what each is for, how loud it is by default, which heartbeat watches which cron job. Configuration belongs in a file next to the alert rules that use it, so that a wiped phone, a new laptop or a fresh environment is a re-run rather than an afternoon of tapping. There are two ways to do that. One is a `mast.toml` and `ribo mast apply`: the file holds your alert sources, heartbeats, probes, rotations and escalation policies, and `apply` makes Mast match it. The other is [Terraform](#terraform), if your team already uses it for the rest of its infrastructure. If you'd rather not install either, the second half of this page does the same job for alert sources and heartbeats with a short Python script against [the API](https://tissue.systems/mast/docs/api/). --- ## Which one to use If you already run Terraform or OpenTofu, use [the provider](#terraform). Mast then sits in the same plan as your servers and DNS, and an alert source's URL can go straight into whatever sends to it. If you don't, use `mast.toml`. You don't need to learn Terraform or keep a state file anywhere, and if you have ribo you already have it. Pick one per account and stick to it. Both of them set the fields you write down, so if both manage the same alert source they'll take turns undoing each other: `ribo mast apply` sets a field from the file, and the next `terraform plan` shows a diff and sets it back. To move from `mast.toml` to Terraform, write the resource blocks, import what already exists by name (shown [below](#terraform)), and delete the toml file once `terraform plan` comes back clean. --- ## mast.toml and ribo You need [ribo](https://docs.tissue.systems/docs/get-started/) 2026.10.0 or later, signed in to the account (`ribo login`). The alert sources and their URLs work before anybody has linked a phone, but nothing rings until [one is linked](https://tissue.systems/mast/docs/start/#linking-your-phone). Start from what you have: ```bash ribo mast export > mast.toml ``` ```toml [[rotation]] name = "primary" handoff = "weekly" handoff_day = "monday" handoff_time = "09:00" tz = "America/Chicago" order = ["ann@example.com", "bo@example.com"] [[policy]] name = "default" [[policy.step]] after_secs = 0 target = "user" user = "ann@example.com" priority = "page" [[policy.step]] after_secs = 600 target = "everyone" priority = "loud" [[alert_source]] name = "deploys" policy = "default" quiet_start = "22:00" quiet_end = "07:00" quiet_tz = "America/Chicago" [[heartbeat]] name = "backup-db1" period_secs = 86400 grace_secs = 5400 ``` The field names are the API's, the ones in the table below. People are emails, and policies and rotations are named, not numbered. A field you leave out is left alone on every run, so a mute or mute hours set on the phone stay set. A field that's in the file wins over the phone. Edit it, then: ```bash ribo mast apply ``` ribo checks the whole file first, then prints what it would do and asks: ``` unchanged rotation "primary" unchanged policy "default" update alert source "deploys" quiet_start: off → 22:00 quiet_end: off → 07:00 create heartbeat "backup-db1" kept alert source "scratch" (not in the file) 1 create, 1 update, 2 unchanged, 1 kept Apply these changes? [y/N] ``` - **It matches by name.** No state file. A second run with nothing edited prints only `unchanged` and `kept` lines and writes nothing. - **It never deletes unless you ask.** Something in Mast the file doesn't mention is listed as kept. `--prune` deletes those instead, and the plan says so before it asks. - **It refuses a bad file before writing anything.** An unknown key, with its line; a policy or rotation that's in neither the file nor Mast; an email that isn't on the account; a heartbeat setting on a plain alert source. - **The keys stay out of the file.** Export never writes an alert source's key or URL, so `mast.toml` can live in git next to your alert rules. An alert source created by `apply` gets a new key; `ribo mast alert-source show <name>` prints its URL. - **`--dry-run` prints the plan and stops, and `--yes` skips the question,** which is what a CI job wants. Writes go in the order rotations, policies, alert sources, heartbeats, probes, so an alert source can name a policy the same file creates, and a probe can name either. ### Probes A [probe](https://tissue.systems/mast/docs/probes/) is a `[[probe]]` block. It needs a `target`, and everything else has the default the app would give it: an HTTP `GET` every five minutes that's up on any 2xx or 3xx. When you watch a dozen sites the same way, put what they share in `[probe_defaults]` and let each block be its address: ```toml [probe_defaults] alert_source = "sites" policy = "default" interval_secs = 60 max_ms = 3000 [[probe]] target = "https://www.example.com" [[probe]] target = "https://shop.example.com" [[probe]] target = "https://api.example.com/health" expect_status = 200 body_contains = "ok" [[probe]] name = "status page" target = "https://status.example.com" interval_secs = 300 [[probe]] target = "mail.example.com:993" kind = "tls" ``` A block's own setting wins over the default, so the status page above is checked every five minutes and the rest every minute. `[probe_defaults]` takes any probe field except `name` and `target`. Mast refuses a field the probe's kind doesn't read, so when a file mixes kinds, keep the defaults to what every kind reads (`alert_source`, `policy`, `interval_secs`, `max_ms`, `expect`) and put `expect_status` and the like on the URL probes themselves. `alert_source` is the name of the alert source a failure is sent to (`channel` still works in its place) and `policy` the name of an escalation policy. Either one can be in the same file or already in Mast. The other fields are the API's, with the same meanings as in the [table on the probes page](https://tissue.systems/mast/docs/probes/#making-one): `kind`, `method`, `interval_secs`, `max_ms`, `expect`, `expect_status`, `expect_statuses`, `expect_header`, `body_contains`, `body_not_contains`, `json_path`, `expect_value`, `ignore_case`, `resolver`, `send`, `expect_set`, `request_headers`, `request_body`, `request_content_type`, `host`, `domain_expiry` and `paused`. ``` create probe "https://www.example.com" create probe "https://shop.example.com" update probe "status page" interval_secs: 60 → 300 unchanged probe "mail.example.com:993" ``` - **A name is optional.** A probe without one is listed by its target, and Mast names it after the target's host. - **A probe is matched by name, then by target.** A block with no name is the probe that checks its target, so a second `apply` changes nothing. A block that names a probe you made in the app, by its target, takes that probe over and gives it the name. If two probes check the same target, name them, or `apply` stops and says which target it can't tell apart. - **Credentials stay out of the file.** A probe that signs in keeps its password or token in Mast, set in the app. Export doesn't write it and `apply` doesn't touch it, so a probe that needs one is created from the file and given its credential in the app. - **Export writes `[probe_defaults]` for you.** A setting every probe in the account agrees on goes there once. `kind`, `host` and `paused` stay on each probe. - **`--prune` deletes probes too.** Without it, a probe the file doesn't mention is kept, like everything else. Your plan's limits apply to probes made from a file the same as in the app: how many, and how often they run. ribo 2026.11.1 and earlier don't know `[[probe]]`, and they call the other two blocks `[[channel]]` and `[[vital]]`. If `ribo mast apply` answers ``unknown field `probe` `` or ``unknown field `alert_source` ``, run `ribo upgrade`. Every other `ribo mast` command, including one-off creates and edits, is on the [ribo mast](https://docs.tissue.systems/docs/ribo/mast/) page. --- ## Terraform [Terraform](https://developer.hashicorp.com/terraform) keeps infrastructure in text files. You write down what should exist, `terraform plan` shows what it would create, change or delete to get there, and `terraform apply` does it. It keeps a state file of what it made, so the next plan only shows what you've changed since. Terraform doesn't know any particular service itself. Each one comes as a provider, a plugin that turns the blocks in your files into API calls. [OpenTofu](https://opentofu.org) is a fork of Terraform, started in 2023 when HashiCorp moved Terraform off its open-source licence. The command is `tofu` instead of `terraform`, and it reads the same files and runs the same providers. Everything below works with either. Mast's provider is `tissue-systems/tissue`, on the [Terraform registry](https://registry.terraform.io/providers/tissue-systems/tissue/latest/docs) and the OpenTofu registry. It needs an API token from the dashboard's [API tokens](https://dashboard.tissue.systems/tokens) page with `mast:read` and `mast:write`. Put it in `TISSUE_TOKEN` so it stays out of your files. This is the same setup as the `mast.toml` above: ```hcl terraform { required_providers { tissue = { source = "tissue-systems/tissue" version = "~> 0.2" } } } provider "tissue" {} data "tissue_mast_person" "ann" { email = "ann@example.com" } data "tissue_mast_person" "bo" { email = "bo@example.com" } resource "tissue_mast_rotation" "primary" { name = "primary" handoff = "weekly" handoff_day = 0 # Monday handoff_time = "09:00" tz = "America/Chicago" order = [data.tissue_mast_person.ann.user_id, data.tissue_mast_person.bo.user_id] } resource "tissue_mast_policy" "default" { name = "default" steps = [ { target = "user", user_id = data.tissue_mast_person.ann.user_id, priority = "page" }, { target = "everyone", priority = "loud", after_secs = 600 }, ] } resource "tissue_mast_alert_source" "deploys" { name = "deploys" policy_id = tissue_mast_policy.default.id quiet_start = 1320 # 22:00, in minutes past midnight quiet_end = 420 # 07:00 quiet_tz = "America/Chicago" } resource "tissue_mast_heartbeat" "backup_db1" { name = "backup-db1" period_secs = 86400 grace_secs = 5400 } ``` ```bash export TISSUE_TOKEN=tok_... terraform init terraform plan terraform apply ``` It behaves the way `mast.toml` does where it can. An argument you leave out is left to the app, so mute hours or a sound someone sets on their phone stay set. Raising an alert source to `page` is still done on the owner's phone, and the provider creates alert sources at `loud` at most. Where it differs is the URL. An alert source's `url` is an attribute you can pass to other resources, so it can go straight into a CI secret or an Alertmanager config without anyone copying it out of the app: ```hcl resource "github_actions_secret" "mast_deploys" { repository = "api" secret_name = "MAST_DEPLOYS_URL" plaintext_value = tissue_mast_alert_source.deploys.url } ``` The provider marks it sensitive, so it doesn't show in plan output, but like any sensitive value it's in the state file in plain text. Keep your state where you'd keep a password. Things you made in the app or with ribo can be brought under Terraform by name: ```bash terraform import tissue_mast_alert_source.deploys deploys terraform import tissue_mast_rotation.primary primary ``` On Terraform 1.5 or OpenTofu 1.6 and later you can write `import` blocks instead and have `terraform plan -generate-config-out=mast.tf` write the resource blocks for you. The generated blocks spell out every argument, so trim the ones you'd rather leave to the app. A probe pages an alert source by its id: ```hcl resource "tissue_mast_probe" "www" { name = "www" target = "https://www.example.com/health" interval_secs = 300 expect_status = 200 alert_source_id = tissue_mast_alert_source.deploys.id } ``` The provider covers alert sources, heartbeats, probes, rotations, overrides and policies. Status pages are coming soon to the provider; until then, set them up in the app. The probe resource and the `tissue_mast_alert_source` and `tissue_mast_heartbeat` names came in provider 0.2, so if OpenTofu only finds 0.1, its registry hasn't picked up the newer release yet. `tissue_mast_vital` and `vital_priority` are still accepted for a heartbeat, and so is `[[vital]]` in `mast.toml`. Files written before alert sources had that name keep working too: `tissue_mast_channel`, `[[channel]]`, `channel = "name"`, `ribo mast channel` and the `/v1/mast/channels` routes are all still accepted. Every argument is listed on the [registry](https://registry.terraform.io/providers/tissue-systems/tissue/latest/docs). --- The rest of this page is about the alert sources themselves, and how to do the same thing without ribo or Terraform. --- ## What the API gives you - **Creation is idempotent by name.** Names are unique per owner, and creating a name that already exists answers `409`. A catalogue keyed by name needs no state file: what is missing gets created, what exists gets compared. - **The URLs are readable back.** `GET /v1/mast/state` returns every alert source with its live key and URL, so no file has to remember them. Nothing in the catalogue is secret, and the catalogue can live in git. - **An alert source made from a script is an ordinary alert source.** The app syncs when it opens, when it returns to the foreground, and every fifteen seconds while it is on screen, so a new alert source is on the phone within a sync. Nothing marks where it came from. - **Rotation is one call with a week of overlap.** `POST /v1/mast/alert-sources/{id}/rotate` issues a new key, and the previous one keeps accepting sends for seven days. - **Account-token calls are recorded.** A create, update, rotate or delete made with an account token lands in the account's [activity feed](https://docs.tissue.systems/docs/account/activity/). An action from a phone linked to the account is there too, as `phone: <name>`. A phone with no account has nowhere to file one. --- ## Without ribo: a reconcile script If ribo isn't an option, the API is enough for alert sources and heartbeats. This is a trimmed copy of the script that provisions this platform's own paging, and it covers alert sources and heartbeats. ### Before the first run 1. **Link a phone.** The script works without one, but nothing it makes can ring until [a phone is linked](https://tissue.systems/mast/docs/start/#linking-your-phone). It's a one-time step. 2. **Mint a token with the two Mast scopes.** Any member of the account can hold them: owner, admin or developer. ```bash ribo token create mast-provision --scope mast:read --scope mast:write ``` 3. **Check what the token names before touching anything.** A `tok_` carries no account name a person would recognise, and alert sources called `deploys` and `security` would look entirely plausible in the wrong account while paging the wrong phone. ```bash curl -s https://api.tissue.systems/v1/me -H "Authorization: Bearer $TISSUE_TOKEN" | jq '{accountId, scopes}' ``` The script does the third step itself and refuses to continue on a mismatch. ### The catalogue A JSON file, committed with the alert rules that use it: ```json { "alert_sources": [ {"name": "deploys", "default_priority": "normal", "quiet_start": 1320, "quiet_end": 420, "quiet_tz": "America/Los_Angeles"}, {"name": "security", "default_priority": "page", "repeat_secs": 120, "dedupe_window_secs": 900} ], "heartbeats": [ {"name": "backup-db1", "period_secs": 86400, "grace_secs": 5400, "heartbeat_priority": "loud"} ] } ``` Every field is optional except the name, and a field absent from an entry is left alone on every run. That is deliberate: the phone can mute an alert source or set mute hours, and a reconcile that reset those each time would make the app's own controls useless. A field that is present in the entry wins over the phone. | Field | Default | Range | |---|---|---| | `name` | required | 1–32 characters of letters, digits, `.`, `_`, `-` and single spaces, starting with a letter or digit. Letters in any script, lowercase where the script has a case; unique per owner. A `PATCH` with a new `name` renames it and the URL stays the same, but a script keyed by name will see a new alert source, so rename in one place only | | `kind` | `channel` | `channel` or `heartbeat`; `vital` is still accepted and means the same. Not changeable | | `default_priority` | `normal` | `quiet`, `normal`, `loud` or `page`; a sender can override per message | | `max_priority` | `loud` | **Read-only here.** The alert source's highest level: a send asking for more is clamped down to it. Only a registered phone can raise it | | `sound` | the tier's own | `pager`, `klaxon`, `rising`, `chirp`, `bleep` or `default`; see [Sounds](https://tissue.systems/mast/docs/send/#sounds) | | `quiet_start`, `quiet_end` | `-1` (no window) | minutes past midnight; a window may wrap midnight | | `quiet_tz` | UTC | an IANA zone name such as `America/Los_Angeles`, or a fixed offset such as `-07:00`. [Prefer the name](https://tissue.systems/mast/docs/api/#alert-sources-from-the-command-line), it follows daylight saving | | `dedupe_window_secs` | 300 | 0–86400 | | `storm_threshold` | 20 | up to 10000 messages per `storm_window_secs` | | `storm_window_secs` | 300 | 0–86400 | | `repeat_secs` | 120 | 0–86400; how often an unacknowledged page repeats | | `expire_secs` | 3600 | 0–604800; how long an unacknowledged page keeps trying | | `escalate_after_secs` | 0 (off) | 0–86400; needs a paired partner set in the app | | `period_secs` | 0 | 0–2592000; a heartbeat needs one, or it could never go down | | `grace_secs` | 0 | 0–2592000; how late a beat may be before the heartbeat pages | | `heartbeat_priority` | `loud` | the priority of the page sent when the heartbeat goes down | An alert source this script creates starts with its highest level at `loud`, so a `page` sent to it arrives as a `loud`. That's deliberate: a token that can create alert sources shouldn't be able to hand itself a pager. It also means an entry carrying `"default_priority": "page"` pages nobody until the highest level is raised in the app, once, by hand. Raise it on the alert sources that are meant to wake someone; leave the rest at `loud`. Escalation is to another person's phone, and pairing two phones is done in the app with a QR code, so the catalogue carries the delay and the app carries the partner. ### The reconcile Standard library only, so it runs wherever Python 3 is. It needs two environment variables: `MAST_TOKEN`, the `tok_…` from above, and `MAST_ACCOUNT`, the account id it must name. ```python #!/usr/bin/env python3 """Reconcile mast alert sources and heartbeats against a catalogue. Prints one JSON document on stdout: the name -> url map plus what changed. Progress and warnings go to stderr, so the output can be parsed as is. """ import json, os, sys, urllib.error, urllib.request API = "https://api.tissue.systems" TOKEN = os.environ["MAST_TOKEN"] ACCOUNT = os.environ["MAST_ACCOUNT"] FIELDS = ("default_priority", "sound", "quiet_start", "quiet_end", "quiet_tz", "dedupe_window_secs", "storm_threshold", "storm_window_secs", "repeat_secs", "expire_secs", "escalate_after_secs", "period_secs", "grace_secs", "heartbeat_priority") def call(method, path, body=None): data = json.dumps(body).encode() if body is not None else None req = urllib.request.Request(API + path, data=data, method=method, headers={ "Authorization": "Bearer " + TOKEN, "Content-Type": "application/json"}) try: with urllib.request.urlopen(req, timeout=30) as r: raw = r.read() return r.status, (json.loads(raw) if raw else {}) except urllib.error.HTTPError as e: return e.code, json.loads(e.read() or b"{}") def log(msg): print(msg, file=sys.stderr) def die(msg): log("reconcile: " + msg) sys.exit(1) cat = json.load(open(sys.argv[1])) # Refuse to act until the token names the expected account and both scopes. status, me = call("GET", "/v1/me") if status != 200 or me.get("accountId") != ACCOUNT: die(f"token names account {me.get('accountId')!r}, not {ACCOUNT!r}") scopes = me.get("scopes", []) if scopes != "*" and not {"mast:read", "mast:write"} <= set(scopes): die(f"token is missing mast:read or mast:write (has {scopes})") status, state = call("GET", "/v1/mast/state") if status != 200: die(f"GET /v1/mast/state answered {status}: {state}") if not [d for d in state["devices"] if not d.get("invalidated_at")]: log("reconcile: WARNING this owner has no live device. Sends will be accepted " "and reach nobody. Re-adopt the phone with a device link code.") live = {c["name"]: c for c in state["channels"] if not c.get("archived_at")} urls, created, patched, rotated = {}, [], [], [] for section, kind in (("alert_sources", "channel"), ("heartbeats", "heartbeat")): for entry in cat.get(section, []): name = entry["name"] want = {f: entry[f] for f in FIELDS if f in entry} if kind == "heartbeat" and not want.get("period_secs"): die(f"heartbeat {name!r} has no period_secs, so it could never go down") have = live.get(name) # state carries the live URL. An alert source with no live key cannot receive # a send at all; rotating it is the same call that recovers from a key # deleted by hand. url = have.get("url") if have else None if have is None: status, have = call("POST", "/v1/mast/alert-sources", {"name": name, "kind": kind, **want}) if status != 201: die(f"creating {name}: {status} {have}") created.append(name) url = have["url"] # A response spells a heartbeat's kind "vital". elif {"vital": "heartbeat"}.get(have["kind"], have["kind"]) != kind: die(f"{name!r} exists as a {have['kind']}, and the catalogue calls it a {kind}. " "Rename one of them: kind is not patchable.") else: changes = {f: v for f, v in want.items() if have.get(f) != v} if changes: status, have = call("PATCH", "/v1/mast/alert-sources/" + have["id"], changes) if status != 200: die(f"updating {name}: {status} {have}") patched.append(name) if entry.get("rotate") or not url: status, have = call("POST", f"/v1/mast/alert-sources/{have['id']}/rotate", {}) if status != 200: die(f"rotating {name}: {status} {have}") rotated.append(name) url = have["url"] urls[name] = url # In Mast and not in the catalogue. Never deleted: the phone makes alert sources of # its own, and this script must not be the reason one of them vanished. wanted = {e["name"] for k in ("alert_sources", "heartbeats") for e in cat.get(k, [])} extra = sorted(set(live) - wanted) log(f"reconcile: {len(created)} created, {len(patched)} updated, {len(rotated)} rotated") for name in extra: log(f" ? {name} is in Mast and not in the catalogue (left alone)") json.dump({"urls": urls, "created": created, "patched": patched, "rotated": rotated, "extra": extra}, sys.stdout, indent=2) print() ``` ```bash MAST_TOKEN=tok_… MAST_ACCOUNT=acct_… python3 mast-reconcile.py mast-alert-sources.json ``` The rules it follows, and why: - **It never deletes.** An alert source in Mast that the catalogue does not name is reported and left alone. Deleting is `DELETE /v1/mast/alert-sources/{id}`, by hand, once you are sure, and it deletes the alert source's messages with it; `PATCH` with `{"archived": true}` retires an alert source and keeps its messages. If something keeps sending to a deleted alert source's URL, each send gets a 404 and the alert source shows up in `retired_keys` in `GET /v1/mast/state`, and under "Deleted alert sources that still get sends" in the web app, until 30 days after the last try. - **It refuses a kind mismatch.** Kind is not patchable, and archiving the alert source to recreate it would change the URL every sender holds. - **It refuses a heartbeat with no period.** A heartbeat that can never go down is a dead-man switch that is quietly dead. - **It rotates on request.** `"rotate": true` on an entry issues a new key on the next run; remove the flag afterwards, or the key rotates on every run. - **It warns on zero live devices.** Sends to an owner whose phone is gone answer `202` and reach nobody, and a green run must not suggest otherwise. Run it twice: the second run reports nothing created, nothing updated, and the same map. --- ## Handing the URLs to senders A send URL is a bearer credential. Whoever holds it can page the phone, so it stays out of git and out of the catalogue, and each sender gets only the alert sources it sends to. The script prints the map, and with ribo `ribo mast alert-source show <name>` prints one alert source's URL. Where each URL goes depends on the sender. **A host.** An environment file, root-owned and mode `0600`, sourced by the cron entries and unit files that send: ```bash # /etc/mast.env MAST_DEPLOYS=https://mast.tissue.dev/mk_… MAST_BACKUP_DB1=https://mast.tissue.dev/mk_… ``` **A Cell.** A [vault binding](https://docs.tissue.systems/docs/cells/configuration/#vault-encrypted-secret), set before the deploy. A vault value missing at deploy time is stored as a placeholder and the Cell sends to it, so set the value first: ```bash ribo vault set my-cell MAST_DEPLOYS --env MAST_DEPLOYS ribo deploy ``` **CI.** A repository or environment secret, written from the map by the same job that runs the reconcile. Daemons read their environment once at start, so a rotated URL reaches a long-running process only after a restart; cron lines and CI jobs pick it up on their next run. Keep the list of things to restart next to the catalogue. The seven-day overlap is what makes a rotation safe to roll out over a day, and it is also the trap: a consumer the rollout missed keeps working for a week and then stops with no error, because the old key is simply gone. A test send from each consumer after a rotation is cheaper than finding out in a week. --- ## From Ansible Two plays. The first runs on the control node, where the token is, and turns the catalogue into a map; the second renders each host's share of the map onto the host. Fleet hosts never see the token. ```yaml - name: Reconcile mast alert sources hosts: localhost gather_facts: false tasks: - name: Reconcile the catalogue command: python3 files/mast-reconcile.py files/mast-alert-sources.json environment: MAST_TOKEN: "{{ mast_token }}" # vault MAST_ACCOUNT: "{{ mast_account }}" register: mast changed_when: >- (mast.stdout | from_json).created or (mast.stdout | from_json).patched or (mast.stdout | from_json).rotated no_log: true # stdout holds every URL - name: Keep the map for the next play set_fact: mast_urls: "{{ (mast.stdout | from_json).urls }}" - name: Render each host's alert source URLs hosts: fleet become: true tasks: - name: Write /etc/mast.env copy: dest: /etc/mast.env owner: root mode: "0600" content: | {% for name in mast_alert_sources_for_host %} MAST_{{ name | upper | replace('-', '_') }}={{ hostvars['localhost'].mast_urls[name] }} {% endfor %} notify: restart mast consumers handlers: - name: restart mast consumers service: name: "{{ item }}" state: restarted loop: "{{ mast_consumers_for_host | default([]) }}" ``` `mast_alert_sources_for_host` is a per-host or per-group list of catalogue names; `mast_consumers_for_host` names the units that snapshot their environment. `no_log` on the reconcile task is what keeps the URLs and the token out of the play log, at the cost of the script's own progress lines; drop it while debugging, against a throwaway alert source. A CI job runs the same script the same way, with the token in a secret and the map written to the pipeline's secret store. --- ## Heartbeats: beat on evidence The catalogue holds a heartbeat's schedule; the beat comes from the job. The rule that keeps a heartbeat honest is to beat only after the job's own success, never from a timer that runs whether or not the job worked: ```bash @daily backup.sh && curl -fsS -m 10 --retry 3 "$MAST_BACKUP_DB1" >/dev/null ``` When the beat has to come from somewhere other than the job, make it conditional on the job's own evidence, such as the age of the file it writes on success: ```bash */15 * * * * find /var/lib/backup/last-ok -mmin -90 | grep -q . && curl -fsS -m 10 --retry 3 "$MAST_BACKUP_DB1" >/dev/null ``` Without that condition the heartbeat proves that cron runs, which is not what you wanted to know. One heartbeat per thing that fails on its own. Three hosts each running the backup are three heartbeats, not one shared one, because a shared heartbeat stays alive while any of them beats. A heartbeat's clock starts with its first beat. Until then it waits and pages nobody, and if a period and the grace go by without one you get a single quiet card saying it has never beaten. Create the heartbeat and its beat in the same change, so it doesn't sit there waiting. --- ## Closing a page from the monitor that opened it A monitor that alerts usually also knows when the alert is over. Sending that recovery as an ordinary message leaves the original page on the phone, repeating, beside a green card saying the outage ended. `resolve=1` closes it instead. The same `key` on both sends is what ties them together: ```bash # Alertmanager webhook receiver, or any script shaped like one firing() { curl -fsS -X POST "$MAST_ALERTS" \ -d priority=page -d "key=$FINGERPRINT" \ --data-urlencode "title=$ALERTNAME" --data-urlencode "body=$SUMMARY" >/dev/null } resolved() { curl -fsS -X POST "$MAST_ALERTS" \ -d resolve=1 -d "key=$FINGERPRINT" \ --data-urlencode "title=RESOLVED $ALERTNAME" --data-urlencode "body=$SUMMARY" >/dev/null } ``` `--data-urlencode` and not `-d` for the two fields holding somebody else's text: curl joins every `-d` with `&` and sends it exactly as given, so a summary containing `&` or `=` splits into fields of its own, and a summary containing no `=` at all turns the *whole* body back into a plain message, losing the priority and the `key` the recovery needs to match. `--data-urlencode` escapes the value first, so the field is always a field. The one-liner form, `curl -d "disk full" <url>`, stays correct precisely because it is the only thing in the body. The recovery's own words replace the outage text on the card, the repeat is cancelled, and the 202 says how long the incident ran: `{"ok":true,"id":"mm_…","state":"resolved","open_for":842}`. Use the alert's own identity as the key: Alertmanager's `fingerprint`, a target name, a job id, anything stable across the firing and the recovery and distinct between incidents. The dedupe window does not bound this: `key` alone merges a repeat only for the alert source's `dedupe_window_secs`, and a page outlives that window every time somebody is asleep. A recovery that finds nothing open is stored as a quiet message rather than refused, so a script may send it unconditionally. That also means a wrong key fails silently in the worst direction (the page keeps repeating), so confirm the pair once with a test alert source before trusting it in a rotation. Full field reference: [Incidents](https://tissue.systems/mast/docs/incidents/#closing-one-from-the-sender). --- ## When the phone is reinstalled A wiped or reinstalled phone registers as a new Mast owner with no alert sources, while the account stays attached to the owner it was connected to. Do not connect the fresh install to the account, which answers `409`, and do not recreate the alert sources. Mint a device link code with the token instead: ```bash curl -X POST https://api.tissue.systems/v1/mast/link-codes \ -H "Authorization: Bearer $TISSUE_TOKEN" -H "Content-Type: application/json" \ -d '{"purpose": "device"}' ``` ```json {"code": "…", "purpose": "device", "expires_at": "2026-09-02T18:40:00Z"} ``` The code is good for five minutes. Open `mast://link/<code>` on the phone; a QR code of that URL on a laptop screen works. The phone joins the established owner and the throwaway one is retired. Every alert source, key and URL survives, so nothing is re-rendered and nothing restarts. A reconcile run afterwards reports no changes and no device warning. --- ## Where the token stops - Linking a phone is done from the phone, by signing in or typing a code. So is raising an alert source to `page`. - The alert source routes are the interface, and `ribo mast` is a client of them like any script. So is the [MCP server](https://docs.tissue.systems/docs/mcp/tools/), which has tools for probes, alert sources, a test page and incidents. - `GET /v1/mast/alert-sources` lists alert sources and heartbeats together, and `GET /v1/mast/heartbeats` the heartbeats alone. `GET /v1/mast/state` has the same list with devices, pairings and recent messages alongside. --- # Integrations / The API Source: https://tissue.systems/mast/docs/api/ # 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](#tokens) 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`: ```bash export TISSUE_TOKEN=tok_… curl -s https://api.tissue.systems/v1/mast/probes \ -H "Authorization: Bearer $TISSUE_TOKEN" ``` ```json { "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](https://tissue.systems/mast/docs/probes/#making-one) 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](https://tissue.systems/mast/docs/send/) 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](https://tissue.systems/mast/docs/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](https://docs.tissue.systems/docs/ribo/mast/) has the commands, and [alert sources as code](https://tissue.systems/mast/docs/alert-sources-as-code/) has the file. The [Tissue MCP server](https://docs.tissue.systems/docs/mcp/tools/) 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](https://tissue.systems/mast/docs/#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](https://dashboard.tissue.systems/mast/tokens), or with `ribo`. `--scope` is a repeatable flag, not a comma list: ```bash ribo token create mast --scope mast:write --scope mast:read ``` `mast:read` reads the feed, alert sources and state. `mast:write` makes and changes things. The same token can carry the [platform scopes](https://docs.tissue.systems/docs/api/) 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. ```bash curl -s https://api.tissue.systems/v1/me \ -H "Authorization: Bearer $TISSUE_TOKEN" | jq '{accountName, email, tokenName, scopes}' ``` ```json { "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: ```bash 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: ```bash 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"}' ``` ```json { "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](https://tissue.systems/mast/docs/incidents/#flapping) 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](https://tissue.systems/mast/docs/send/#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: ```bash 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 | ```bash 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: ```bash # 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: ```bash 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"}' ``` ```json { "ok": true, "id": "mm_…", "state": "queued", "priority": "loud", "capped": true, "escalated": true } ``` - `priority` asks for a level. The alert source's highest level still applies, so the answer's `priority` is the level actually sent and `capped` is `true` when it was lowered. - `escalate: true` opens 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. `escalated` in 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](https://tissue.systems/mast/docs/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. ```bash 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: ```bash 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`: ```cron 17 3 * * * /usr/local/bin/backup.sh && curl -fsS -m 10 --retry 3 https://mast.tissue.dev/mk_8e2a… >/dev/null ``` The answer to a beat says when the next one is due: ```json { "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: ```bash 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](https://docs.tissue.systems/docs/pulse/api/). The schedule that does the work is the thing whose silence should page you: ```toml [[pulse]] schedule = "*/15 * * * *" [[bindings]] type = "vault" binding = "HEARTBEAT_URL" ``` ```js 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](https://tissue.systems/mast/docs/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: ```json {"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](https://tissue.systems/mast/docs/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](https://tissue.systems/mast/docs/destinations/) for sending alert events to a webhook, Slack, Discord, Teams or email, and [Maintenance windows](https://tissue.systems/mast/docs/maintenance/) 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](https://tissue.systems/mast/docs/dmarc/) 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: ```bash 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' ``` ```json { "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: ```bash 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: ```bash 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. ```bash 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: ```bash 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 done ``` A 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: ```json { "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. --- # Switching tools / Coming from PagerDuty Source: https://tissue.systems/mast/docs/coming-from-pagerduty/ # Coming from PagerDuty Tissue Mast has an importer that reads your PagerDuty account and builds the same rotations, escalation policies and alert sources here, with a dry run first that changes nothing. It's in the web app under **On call**, as **Import from PagerDuty**, and it's open on every plan. [The importer](#the-importer) below says how it reads each part. What it can't move is the senders: PagerDuty's integration keys stay in PagerDuty, so each sender gets repointed at a send URL. The rest of this page is the word list: what PagerDuty calls something, and what it's called here. --- ## The words | PagerDuty | Tissue Mast | Notes | |---|---|---| | Service with an integration key | [Alert source](https://tissue.systems/mast/docs/alert-sources/) | One alert source does what a service and its integration do together: it has the send URL, the default level, the highest level and the escalation policy | | Integration key | Send key (`mk_…`) | Mast doesn't speak the Events API. Senders post to the send URL instead. [Sending alerts](https://tissue.systems/mast/docs/send/) | | Incident | [Incident](https://tissue.systems/mast/docs/incidents/) | The same idea: one thing that went wrong, from the first alert to the recovery | | Urgency high and low, priority P1 to P5 | Level: page, loud, normal, quiet | High urgency is closest to page. Sends that say `P1`, `critical` or `high` are translated. [Priority names from other tools](https://tissue.systems/mast/docs/send/#priority-names-from-other-tools) | | Static low urgency on a service | [Highest level](https://tissue.systems/mast/docs/alert-sources/#the-highest-level) | The nearest thing, not the same thing. A highest level is a cap: a send asking for more goes out at the highest level and the answer says `"capped": true`. Only a phone can raise it to page | | Alert grouping | Grouping | Mast's grouping collapses a flood on one alert source into one card with a count. A page is never grouped away | | Escalation log, incident timeline | Timeline | | | Schedule, layer | [Rotation](https://tissue.systems/mast/docs/on-call/#rotations) | Each layer becomes its own rotation. Mast doesn't stack layers, so where a higher layer covered a lower one, both are on call | | Override | Override | | | Escalation policy | [Escalation policy](https://tissue.systems/mast/docs/on-call/#escalation-policies) | Steps page a rotation, the next person on it, one person, everyone or another alert source | | Support hours | Mute hours | Close, not the same. Mute hours are a daily window on one alert source when its alerts arrive without a sound. A page still rings | | Contact methods, notification rules | [Devices](https://tissue.systems/mast/docs/start/#linking-your-phone) | Mast pages a linked phone or watch through push, and calls from a step with **Call** ticked. There are no per-person rules and no SMS | | Maintenance window | [Maintenance window](https://tissue.systems/mast/docs/maintenance/) | | | Acknowledge, resolve | Acknowledge, resolve | | | (no first-class object) | [Heartbeat](https://tissue.systems/mast/docs/heartbeats/) | A URL a job beats on a schedule. Mast pages when the beats stop | ## Where it isn't a match **Event rules and routing.** Mast has no rules that send one kind of alert to one policy and the rest to another. Make two alert sources, each with its own policy, and point each kind of alert at its own send URL. **New alert sources top out at loud.** One made by the importer, in the web app or from the command line can't page until someone raises its highest level from a phone. Do that for the ones that should wake people, then send a test page to check. **Business services and impact.** There's no service graph. [Status pages](https://tissue.systems/mast/docs/status-pages/) show what your probes and heartbeats see. **Round robin.** The importer doesn't carry over a rule that hands its targets out in turn. The step pages every target at once, and the dry run names each rule that did it. A step to everyone or to an alert source can [take turns](https://tissue.systems/mast/docs/on-call/#taking-turns) in Mast, so you can set it up again by hand. ## The importer You need to be the account's owner or an admin. In PagerDuty, make a REST API key under **Integrations › API Access Keys**. A read-only key is enough, and it's all the importer needs. Paste it on the import screen, pick the region, US or EU (EU if your PagerDuty address ends in `eu.pagerduty.com`), and press **Read PagerDuty**. Mast reads your configuration through PagerDuty's REST API, uses the key for that request only and keeps no copy, not in its records, its logs or the account's activity. Delete the key in PagerDuty when you're done. The first read is a dry run and changes nothing. It's open on every plan, Free included, so you can see what a move involves before you pick one. It lists every rotation, escalation policy and alert source Mast would make, and for each one whether it's new, changes something that's already there, is already the same, is left out, or doesn't fit the plan. Above the lists it sums up the headcount, the teams the key can see, how many people PagerDuty texts or phones, and the smallest plan that holds the move. [The Opsgenie importer](https://tissue.systems/mast/docs/opsgenie/#the-importer) works the same way and has the long version. Untick anything you don't want, then press **Import the items ticked**. Mast reads PagerDuty again at that moment, so a change made there in between is picked up. Everything is matched by name, so running it again changes what's there instead of making copies, and finishes the job if something failed partway. People are matched to members of this account by email address, ignoring case. The importer never invites anyone on its own: everyone it can't match gets a tick box, and **Invite** sends each person ticked a normal member invite. Someone who isn't on the account yet is left out of their rotations and escalation steps until they've joined and you run the import again. ### How each part maps - **Teams.** When the key sees more than one team, a schedule, policy or service that belongs to a team gets the team's name in front: the Platform team's "Primary" schedule becomes `Platform / Primary`. With one team or none, names stay as they are. - **Schedules.** Each layer becomes its own rotation. A schedule with one layer keeps the schedule's name, and one with several becomes `<schedule> / <layer>` for each. A daily turn stays daily, a weekly one weekly and a two-week one every two weeks; any other length in whole hours becomes a custom length, up to 720 hours. Turns are counted from the layer's own start, so nobody's turn moves on the day you switch. A restriction, such as weekdays from 09:00 to 17:00, is dropped, so the rotation is on around the clock, and the dry run says what the restriction was. - **Overrides.** Overrides in the next 90 days come across as timed overrides, on every rotation made from that schedule. - **Escalation policies.** Each rule becomes a step. PagerDuty counts each rule's delay from the rule before it, and Mast counts each step's wait from the alert, so the delays are added up: rules 30 minutes apart become steps at 0, 30 and 60 minutes. A rule that names a schedule pages whoever is on call there, and a rule that names a person pages that person. "Repeat this policy" carries over as going round again, the same number of times. - **Services.** Each service becomes an alert source on its escalation policy, with the service's integrations named in a note so you know which senders to repoint. A disabled service is made switched off. A service set to constant low urgency gets a note, since low urgency never paged in PagerDuty and a Mast alert source can. Alert grouping, auto-pause, support hours and the acknowledgement and auto-resolve timeouts are listed as not imported. When the import finishes, it prints every alert source with its send URL. The key in the URL is the whole secret, so treat the list like a password. It also gives you a Terraform `import` block for everything it made or changed, as [the Opsgenie importer](https://tissue.systems/mast/docs/opsgenie/#terraform) does. Mast has nowhere to put these, so the importer leaves them in PagerDuty and lists them once: personal notification rules, on-call handoff notifications, event orchestration, rulesets and suppression, response plays and incident workflows, business services and service dependencies, status pages, extensions and webhooks, incidents and incident history. The importer reads users, teams, schedules, escalation policies and services, and nothing else. From each person it keeps the name, the email address and the kind of contact method they have, never a phone number. From each service it keeps the integration names, never their keys or addresses. --- # Switching tools / Coming from Opsgenie Source: https://tissue.systems/mast/docs/coming-from-opsgenie/ # Coming from Opsgenie Opsgenie shuts down on 5 April 2027, and Atlassian deletes whatever hasn't moved by then. Tissue Mast has an importer that reads your Opsgenie account and builds the same rotations, escalation policies, alert sources and heartbeats here, with a dry run first that changes nothing. It's in the web app under **On call**, as **Import from Opsgenie**, and it's open on every plan. [Moving from Opsgenie](https://tissue.systems/mast/docs/opsgenie/) covers the importer, the quick path for senders and the re-key checklist. This page is the word list: what Opsgenie calls something, and what it's called here. --- ## The words | Opsgenie | Tissue Mast | Notes | |---|---|---| | Integration | [Alert source](https://tissue.systems/mast/docs/alert-sources/) | Each integration becomes one alert source with its own send URL | | Integration API key | Send key (`mk_…`) | On the quick path it goes in the same `GenieKey` header | | Alert | [Incident](https://tissue.systems/mast/docs/incidents/) | Opsgenie's "incident" is a heavier object on top of alerts. Here one thing going wrong is one incident, and there's nothing above it | | Priority P1 to P5 | Level: page, loud, normal, quiet | P1 is page, P2 loud, P3 normal, P4 and P5 quiet. Sends that say `P1` keep working. [Priority names from other tools](https://tissue.systems/mast/docs/send/#priority-names-from-other-tools) | | (none) | [Highest level](https://tissue.systems/mast/docs/alert-sources/#the-highest-level) | Opsgenie has nothing like it. Each alert source has a loudest level it can deliver at, and only a phone can raise that to page | | Dedup by alias | Dedupe by `key` | Send the alias as `key`. On the quick path Mast reads `alias` for you | | Alert log | Timeline | On an incident, who was notified, on which device, and who acknowledged | | Schedule, rotation | [Rotation](https://tissue.systems/mast/docs/on-call/#rotations) | A schedule with two layers becomes two rotations | | Override | Override | Whole days, or a start and end time | | Escalation | [Escalation policy](https://tissue.systems/mast/docs/on-call/#escalation-policies) | Steps page a rotation, the next person on it, one person, everyone or another alert source | | Heartbeat | [Heartbeat](https://tissue.systems/mast/docs/heartbeats/) | Same interval. An expired heartbeat shows as **Down** | | Maintenance policy | [Maintenance window](https://tissue.systems/mast/docs/maintenance/) | | | Notification rules, contact methods | [Devices](https://tissue.systems/mast/docs/start/#linking-your-phone) | Mast pages a linked phone or watch through push, and calls from a step with **Call** ticked. There are no per-person rules and no SMS | | Acknowledge, close | Acknowledge, resolve | | ## Where it isn't a match **Routing rules.** Mast has no rules inside an alert source that send P1 to one policy and the rest to another. Make two alert sources, each with its own policy, and point each kind of alert at its own send URL. **Imported alert sources top out at loud.** The importer makes alert sources the way the web app does, so none of them can page until someone raises its highest level from a phone. Do that for the ones your P1 alerts arrive on before the day you switch, then send a test page to check. **Teams.** There's no team object. The importer puts the team's name in front of each schedule, escalation and integration it owned, so `Platform / Primary` is the Platform team's Primary rotation. **Time-restricted rotations.** A rotation that's on only during working hours has no equivalent and is kept on around the clock. The dry run flags every one. [Moving from Opsgenie](https://tissue.systems/mast/docs/opsgenie/#what-doesn-39-t-carry-over) has the full list of what doesn't carry over. --- # Switching tools / Moving from Opsgenie Source: https://tissue.systems/mast/docs/opsgenie/ # Moving from Opsgenie Opsgenie shuts down on 2027-04-05, and Atlassian deletes whatever hasn't moved by then. Most teams will move at their renewal or in the window they pick inside Opsgenie, so for most of them the real month is March 2027. This page covers the importer, in the web app or from `ribo`, which reads your Opsgenie account and builds the same setup in Tissue Mast, and what you can move by hand or as code. Grafana OnCall OSS is a different story. The project was archived on 2026-03-24 and its cloud connection stopped the same day. There's no OnCall importer and none is planned. You can export from a still-running OnCall instance through its API and re-create by hand or through [alert sources as code](https://tissue.systems/mast/docs/alert-sources-as-code/). The re-key checklist below applies to that path too. --- ## The quick path: change the host and the key Most senders can keep talking Opsgenie. Mast answers Opsgenie's alert API at `https://mast.tissue.dev/opsgenie`, so a tool with an Opsgenie integration moves when you change two settings: the API address, from `https://api.opsgenie.com` to `https://mast.tissue.dev/opsgenie`, and the API key, from the Opsgenie key to a Mast send key. The key goes where the Opsgenie key went, in the `Authorization: GenieKey …` header. Each send key pages its own alert source, so give each integration its own alert source the way it had its own key in Opsgenie. ### Alertmanager ```yaml receivers: - name: mast opsgenie_configs: - api_url: https://mast.tissue.dev/opsgenie/ api_key: mk_7c1a… priority: '{{ if eq .CommonLabels.severity "critical" }}P1{{ else }}P3{{ end }}' ``` Keep the trailing slash on `api_url`, since Alertmanager adds `v2/alerts` straight after it. Alertmanager uses the alert group's key as the alias, so a repeat every `repeat_interval` counts on the open page instead of ringing again, and the resolve closes it. `api_key_file` works the same as `api_key`. With `update_alerts: true`, Alertmanager's message and description updates are accepted and don't change the page. ### Grafana In the Opsgenie contact point, set **Alert API URL** to `https://mast.tissue.dev/opsgenie/v2/alerts` and **API key** to the send key. With **Auto close** on, which it is by default, Grafana closes the alert by alias when it resolves, and the page closes with it. **Override priority** is on by default too, so an `og_priority` label on the alert sets the priority (`P1` pages). An alert without that label arrives as normal. ### Zabbix In the Opsgenie media type, set `opsgenie_api` to the full alerts URL, `https://mast.tissue.dev/opsgenie/v2/alerts`, and `opsgenie_token` to the send key. Zabbix uses the event id as the alias, so a problem opens a page and its recovery closes it, and an acknowledge in Zabbix acknowledges the page. After each call Zabbix checks the request status, which Mast answers. Three things behave differently from Opsgenie. Mast has no notes and no unacknowledge, so an update that only adds a comment, or takes an acknowledgement back, gets a `404` and Zabbix marks that update failed. Leave those out of the action's update operations. A recovery for a page someone already closed in Mast changes nothing, and Zabbix reports that update as failed, though the page is closed either way. And the link Zabbix puts on the problem, built from `opsgenie_web`, points at Opsgenie, not at Mast. ### Anything else, and curl Any other tool with an Opsgenie setting for the API address takes the same base, `https://mast.tissue.dev/opsgenie`. Datadog's custom address isn't confirmed yet, so point Datadog at the send URL with a webhook for now. Here's the whole round trip by hand: ```bash # open curl -X POST https://mast.tissue.dev/opsgenie/v2/alerts \ -H "Authorization: GenieKey mk_7c1a…" \ -H "Content-Type: application/json" \ -d '{"message": "db-01 replication stopped", "alias": "db-01-replication", "priority": "P2", "description": "replica is 900 s behind", "tags": ["db", "prod"]}' # acknowledge curl -X POST "https://mast.tissue.dev/opsgenie/v2/alerts/db-01-replication/acknowledge?identifierType=alias" \ -H "Authorization: GenieKey mk_7c1a…" -H "Content-Type: application/json" -d '{}' # close curl -X POST "https://mast.tissue.dev/opsgenie/v2/alerts/db-01-replication/close?identifierType=alias" \ -H "Authorization: GenieKey mk_7c1a…" -H "Content-Type: application/json" -d '{}' ``` Each one answers the way Opsgenie did: ```json { "result": "Request will be processed", "took": 0.0, "requestId": "3f0c9a52-6b1e-4d2a-9e47-0c5b8d1f2a63" } ``` A missing or wrong key gets a `401` in the same shape, with a `message` instead of a `result`. The `requestId` is what you ask about next: ```bash curl https://mast.tissue.dev/opsgenie/v2/alerts/requests/3f0c9a52-6b1e-4d2a-9e47-0c5b8d1f2a63 \ -H "Authorization: GenieKey mk_7c1a…" ``` The answer says whether the call worked, and its `alertId` is the Mast message id, which close and acknowledge also take. A request id answers for a day. ### What's supported | Call | What Mast does | |---|---| | `POST /v2/alerts` | Opens a page. `message` is the title and `description` the body | | `POST /v2/alerts/{alias}/close?identifierType=alias` | Closes the open page with that alias, like `resolve=1` | | `POST /v2/alerts/{alias}/acknowledge?identifierType=alias` | Acknowledges it, which stops the repeat and the escalation the same way a tap on the phone does. The incident shows it acknowledged by "Opsgenie API" | | `POST /v2/alerts/{alertId}/close` or `/acknowledge` | The same, by the `alertId` a request status answered with | | `GET /v2/alerts/requests/{requestId}` | Says what a create, close or acknowledge did, with the alert's `alertId` and `alias` | | `GET`, `POST` or `HEAD /v2/heartbeats/{name}/ping` | Pings the [heartbeat](https://tissue.systems/mast/docs/heartbeats/) with that name | Create, close and acknowledge need an ordinary alert source's key. A heartbeat's key only pings heartbeats, and an alert call made with one gets a `422`. Close and acknowledge work by alias, or by id when the id is a Mast message id on the key's alert source, the `alertId` a request status gives you. With no `identifierType`, Opsgenie reads the identifier as an id, and so does Mast. Mast has no tiny ids, and Opsgenie's own alert ids mean nothing to it, so a call with `identifierType=tiny`, or with an id Mast doesn't know, answers `202` and changes nothing. Acknowledging or closing an alias with nothing open also answers `202`. A call that changed nothing hands back a `requestId` like any other, but asking about it gets a `404`. An alert whose alias is the word `requests` can't be closed or acknowledged by alias, because `/v2/alerts/requests/…` is the request-status path. Opsgenie's own API has the same clash. Close it by its `alertId` instead. On a create, `alias` is the [dedupe key](https://tissue.systems/mast/docs/incidents/): the same alias while the page is open counts on it instead of opening another. `details` become `key: value` lines in the body, and `tags`, `entity` and `source` go in under it. `responders`, `visibleTo`, `actions`, `note`, `user` and any field Mast doesn't know are ignored, and a field of the wrong type never fails the send. A `message` or `description` longer than Mast keeps is cut, not refused, and an alias longer than 120 characters is stored as a hash, so it still dedupes and closes. Any other call under `/opsgenie`, such as adding a note, unacknowledging or listing alerts, gets a `404` whose message lists the calls above. Priorities map like this, and the alert source's highest level still caps whatever a sender asks for: | Opsgenie | Mast | |---|---| | P1 | `page` | | P2 | `loud` | | P3, or no priority | `normal` | | P4, P5 | `quiet` | The endpoint shares the send URL's [limits](https://tissue.systems/mast/docs/send/#limits): the same 60 sends a minute per key and 600 per owner, counted together with that key's native sends, and 16 KiB a request. A request-status check counts toward those limits too, since a tool like Zabbix can ask several times about one call. A create takes up to 64 KiB, because Alertmanager writes every alert in a group into the description, and the title and body are cut to the send URL's lengths either way. ### Heartbeats by name An Opsgenie heartbeat ping goes to `https://mast.tissue.dev/opsgenie/v2/heartbeats/{name}/ping` and counts as a beat on the heartbeat with exactly that name. Send it with that heartbeat's own key. A key can beat other heartbeats on the same account only if its alert source has `beats_any_vital` turned on, which you do with `PATCH /v1/mast/alert-sources/{id}` and `{"beats_any_vital": true}`. Alert sources made before the setting existed have it on, so an Opsgenie integration key you already moved over keeps working. New alert sources start with it off, and a key without it gets the same `404` as an unknown name when it pings someone else's heartbeat. Create the heartbeat first, with the same name and interval the Opsgenie heartbeat had. A ping never creates one: an unknown name gets a `404` that says the heartbeat doesn't exist, which is also what a name that belongs to an ordinary alert source gets. A heartbeat paused over the plan's cap answers `403`, the same as a native beat. A ping over the rate limit still counts as a beat, at most once every 15 seconds, and answers `429`, so a burst of alerts on the same key can't make the heartbeat go late. ```bash curl https://mast.tissue.dev/opsgenie/v2/heartbeats/nightly-backup/ping -H "Authorization: GenieKey mk_5f30…" ``` For the long run, the native send URL is still the one to move to, since it takes every Mast field, including the ones Opsgenie's request has no room for. ## There's no Opsgenie export file Opsgenie has no button that downloads your configuration. Everything that leaves it, users, teams, schedules, escalations, integrations and heartbeats, comes out through its REST API. So that's what the importer reads, and what a script of your own would read. You need an API key from Opsgenie's **Settings › API key management** with **Read** and **Configuration access**. Those two rights can read the configuration and can't touch alerts. A key works only in its own region: US accounts are on `api.opsgenie.com` and EU accounts on `api.eu.opsgenie.com`. ## What Mast has for each part The importer does all of this for you, and [the importer section](#the-importer) says how it maps each part. This is what it maps onto, if you'd rather do it by hand. Free has one rotation and one policy of two steps, for up to 5 people. Team and Company have no cap on people, rotations or policies, and a policy holds up to 50 steps. On every plan one step rings at most 25 people at once (2 on Free) and steps are at least a minute apart. The [pricing page](https://tissue.systems/mast/pricing/) has the full numbers. Plan for them before you move, because a policy past the cap is paused, and a paused policy pages everyone. - **People.** Invite each person from **Members** in the web app, using the email address Opsgenie has for them. The importer matches people by exact email and offers to invite the ones it can't find, so doing this early saves a step later. Each person installs the app and links a phone. Someone with no linked phone can't be on a rotation. - **Alert sources.** Create one alert source per Opsgenie integration, in the web app or as a catalogue file with [alert sources as code](https://tissue.systems/mast/docs/alert-sources-as-code/). A catalogue gets you every alert source and its URL in one run, and the URLs are what the senders need. - **Rotations.** [On call](https://tissue.systems/mast/docs/on-call/) takes a rotation that hands off every day, every week on a day you pick, every two weeks, or after a custom length of 1 to 720 hours, at a time and zone you pick. Opsgenie's hourly rotations and its custom lengths in hours or days become a custom length: 12 hours, or 72 for a 3-day rotation. The first person in the list is on call from the day you create it, so put the person who's on in Opsgenie first. Overrides can be whole days or start and end at a time, so a four-hour swap in Opsgenie moves over as a four-hour override. - **Escalation policies.** Each Opsgenie escalation becomes a list of steps. A step can page whoever is on call for a rotation, the next person on it, one person, everyone, or another alert source, each after its own wait. Opsgenie's "repeat the policy" setting maps to going round again, up to 10 more times, with a wait before each round. - **Heartbeats.** Each Opsgenie heartbeat becomes a [heartbeat](https://tissue.systems/mast/docs/heartbeats/) with the same interval. The job that pinged Opsgenie can keep pinging by name through [the quick path](#heartbeats-by-name), or ping the heartbeat's own URL. ## What doesn't carry over Some of this is the same for any tool you move to, and some of it is a gap in Mast you should know about before you start. - **Integration keys.** An Opsgenie API key is a credential for Opsgenie, and it stays there. Every monitor, script and pipeline that posted to Opsgenie needs a Mast send key, either in the `GenieKey` header on the quick path or as part of the send URL. - **Time-restricted and layered rotations.** A rotation that's on only from 09:00 to 17:00 has no equivalent, so Mast keeps it on around the clock and the importer says so. Two rotations layered on one schedule become two separate rotations. - **Escalation to a team or to admins.** Mast steps page a rotation, a person, everyone or an alert source. Point the step at the team's rotation instead. - **Per-person notification rules.** A person's own "SMS after 5 minutes, then call" rules have no equivalent. Mast pages the phone through push, and a policy step with **Call** ticked phones everyone it reaches who has confirmed a number ([phone calls](https://tissue.systems/mast/docs/on-call/#phone-calls)). There's no SMS or email paging. - **Integration filters and actions**, including creating a Jira issue. A [webhook destination](https://tissue.systems/mast/docs/destinations/#webhooks) can call your own endpoint when a page opens, is acknowledged or is resolved. - **Historical alerts.** Closed alerts, notes and the acknowledgement history stay in Opsgenie. Export what you want to keep through Opsgenie's alert API before the shutdown. Nothing on the Tissue Mast side reads them. ## Moving to the send URL The quick path gets you off Opsgenie. The send URL is where a sender ends up, and you can move each one when it suits you. It takes [Mast's own fields](https://tissue.systems/mast/docs/send/) (`title`, `body`, `key`, `priority=page`) rather than Opsgenie's, so it's a change to the request body as well as the address. - **Anything with a generic webhook** or a shell step posts to the send URL. [Closing a page from the monitor that opened it](https://tissue.systems/mast/docs/alert-sources-as-code/#closing-a-page-from-the-monitor-that-opened-it) shows an Alertmanager webhook receiver that opens and closes a page with the alert's fingerprint as the key. - **Opsgenie's `alias`** becomes Mast's `key`. Send the same key on the recovery with `resolve=1` and the page closes. - **Priorities** map the same way as on the quick path: P1 to `page`, P2 to `loud`, P3 to `normal`, and P4 and P5 to `quiet`. The send URL reads `priority=P1` to `P5` the same way, along with the other [priority names](https://tissue.systems/mast/docs/send/#priority-names-from-other-tools) other tools use. - **Anything that sent email** to an Opsgenie address needs a real change, since Mast has no email ingest. A `curl` in the same cron line is the usual replacement. ## The re-key checklist This is the list of everything that pointed at Opsgenie and has to point at Mast instead. The importer prints it when it finishes, one line per alert source, with the send URL, the Opsgenie address and the key. If you moved by hand, it's a table you keep yourself, filled in from Opsgenie's integration list: ```text integration opsgenie key new mast key or URL Prometheus (prod) ge2…b41 (revoke) mk_7c1a… on mast.tissue.dev/opsgenie/ Datadog a90…f02 (revoke) https://mast.tissue.dev/mk_2e9d… backup-cron (email) ops+backup@… https://mast.tissue.dev/mk_5f30…/fail ``` Work through it in this order: 1. **Move the senders first**, while Opsgenie still takes alerts, and send to both for a few days so you can compare. Alertmanager does this with a second receiver and `continue: true`. 2. **Send one test page per alert source** from the sender itself, not from `curl` on your laptop, and watch it land on the phone that should get it. 3. **Check the rotation in the app** for the coming weeks, against who Opsgenie has on call. A person without a linked phone shows up there as a gap. 4. **Revoke the Opsgenie keys** once every sender has moved. A key left live is a monitor that still pages the wrong place. Send URLs are readable back from `GET /v1/mast/state` at any time, so the table is a convenience, not the only copy. ## The importer The importer is in the web app under **On call**, as **Import from Opsgenie**. You need to be the account's owner or an admin. Paste an API key made as described above, pick the region, US or EU, and press **Read Opsgenie**. Mast reads your configuration through Opsgenie's API, uses the key for that request only and keeps no copy, not in its records, its logs or the account's activity. Delete the key in Opsgenie when you're done. The first read is a dry run and changes nothing. It's open on every plan, Free included, so you can see what a move involves before you pick one. It lists every rotation, escalation policy, alert source and heartbeat Mast would make, and for each one whether it's new, changes something that's already there, is already the same, is left out, or doesn't fit the plan. A change lists each field with its old and new value. Everything that doesn't fit the plan stays on the list, marked over plan, so nothing goes missing without a line saying so. A trial of Team or Company covers rotations and policies. Above the lists, the dry run sums up the move: - **Headcount.** Every Opsgenie user counts, whether or not they're on a schedule or an escalation, because Mast counts every member and open invite. Only Free has a limit on that count, of 5. It says how many are already members here, how many have an open invite, how many are left to invite, and what the account's headcount would be with all of them invited. - **Teams.** How many Opsgenie teams the key can see, and how many schedules and escalation policies belong to each. Ones with no team are counted on their own line. - **Texts and calls.** How many people, and what share of everyone, get an SMS or a phone call from Opsgenie when an alert opens. Mast doesn't text, and it calls only from a step with Call ticked, once each person has added and confirmed their own number, so these are the people to talk to before the switch. Reading this takes one Opsgenie call per person plus one per switched-on new-alert rule, stopping at the first one that texts or calls, and at most 1,000 calls in all. Only the dry run reads them; the import itself doesn't. Past that, or if Opsgenie refuses one, the dry run says how many people it managed to check. Mast keeps the contact method and never the phone number. - **The plan it needs.** The smallest Mast plan that holds that headcount, the rotations, the escalation policies, the steps in the longest one and the overrides on the busiest rotation, with its monthly price. It doesn't count alert sources and heartbeats, since those are left out one by one instead of blocking the move. Untick anything you don't want, then press **Import the items ticked**. Mast reads Opsgenie again at that moment and imports what's ticked, so a change made in Opsgenie in between is picked up. If something fails partway, the result says what went through and what didn't, and running the import again finishes the job. Everything is matched by name, so a second run changes what's there instead of making copies. That also means you can run it again on the day you switch, after a last round of changes in Opsgenie. ### People The importer never invites anyone on its own. It lists everyone in Opsgenie and matches each one to a member of this account by email address, ignoring case. Someone with an invite already open is marked invited. Everyone else gets a tick box, unticked, and the box at the top of the column ticks them all. **Invite** sends each person ticked a normal member invite, as a developer or an admin. On Free, invites count against the plan's 5 people. An account can send at most 20 an hour. Sending the same list again is safe: anyone already invited is skipped. Someone who isn't on the account yet is left out of their rotations and escalation steps, and the dry run names them on each one. Once they've joined, run the import again and it puts them back. ### How each part maps - **Teams.** An Opsgenie schedule, escalation or integration that belongs to a team gets the team's name in front: the Platform team's "Primary" schedule becomes `Platform / Primary`. One that belongs to no team keeps its own name. Alert source names are lowercase and can't hold a slash, so the Platform team's Datadog integration becomes the alert source `platform - datadog`. - **Schedules.** Each rotation in a schedule becomes its own Mast rotation, named `<schedule> / <rotation>`, so a schedule with two layers becomes two rotations. Daily stays daily. Weekly hands off on the same day and at the same time, in the schedule's zone. Every two weeks stays every two weeks. Hourly rotations, rotations measured in days and other weekly lengths become a custom length in hours, up to 720, and a longer one is left out with a note. A time restriction, such as only 08:00 to 20:00, is dropped, so the rotation is on around the clock, and the dry run flags it. Mast starts each rotation with whoever is on call in Opsgenie right now, so nobody's turn moves on the day you switch. Disabled schedules aren't imported. - **Overrides.** Overrides that haven't ended yet come across as timed overrides in the schedule's zone. Ones that are already over are skipped. - **Escalations.** Each rule becomes a step after the same delay. A rule that notifies whoever is on call becomes a step for that rotation, "next" pages the next person on it, "all" becomes a step that pages everyone on the account. Mast has no step for everyone on one rotation, and the dry run says so. A rule for one user pages that person. Opsgenie's "previous" and rules that notify a team or another escalation get the closest Mast step, and the dry run says which. "Repeat" carries over as going round again, up to 10 times, with the same wait. Mast steps stop as soon as someone acknowledges, so a rule that waits for the alert to be closed is flagged. - **Integrations.** Each enabled integration becomes an alert source with its name. If the integration's responders include an escalation, the alert source gets that policy. Disabled integrations are listed and not made. Email integrations are listed and not made, since Mast has no email ingest. - **Heartbeats.** Each enabled heartbeat becomes a heartbeat with the same name, in lowercase, and the same interval. A paused one is listed and not made. When the import finishes, it prints the re-key list: every alert source with its URL, and the Opsgenie address with the key to use on [the quick path](#the-quick-path-change-the-host-and-the-key). The key is the whole secret, so treat the list like a password. ### Terraform The import also gives you a Terraform `import` block for everything it made or changed, so you can bring the result under the tissue Terraform provider without looking up a single id. In the web app they're under the re-key list, with Copy and Download buttons. Each block names the resource and the id the provider imports it by: ```hcl import { to = tissue_mast_rotation.platform_primary id = "sc_4b1e…" } import { to = tissue_mast_override.platform_primary_override_1 id = "sc_4b1e…/ov_92d0…" } ``` The resource name comes from the Mast name, lowercased, with anything that isn't a letter or digit turned into an underscore. Two names that come out the same get `_2`, `_3` on the end. Put the blocks in a `.tf` file and run `terraform plan -generate-config-out=mast.tf`, and Terraform writes the matching resources for you. Something the import left alone because it was already the same gets no block, and when you run it again an override only gets one if that run added it. Mast has nowhere to put these, so the importer leaves them in Opsgenie and lists them once: notification rules, routing rules, alert policies, maintenance, services, incidents and alert history. ### From the command line ribo 2026.10.0 or later runs the same import from a terminal. It reads Opsgenie from your machine and sends Mast what it read, so the key never reaches Tissue at all: ```bash export OPSGENIE_API_KEY=… # or leave it unset and ribo asks, without echoing ribo mast import opsgenie # the dry run: prints the plan ribo mast import opsgenie --apply # imports it and prints the re-key list ribo mast import opsgenie --invite # prints the plan and invites everyone not on the account ribo mast import opsgenie --apply --terraform-file mast-imports.tf ``` Add `--region eu` for an account on Opsgenie's EU instance, and `--json` for the plan or result as the server sent it. There's no flag for the key, so it stays out of your shell history, and ribo never prints it. From ribo, `--apply` imports everything that fits the plan. To leave items out, use the web app. Either one can run again later, since both match by name. `--invite` invites every Opsgenie user who isn't a member and has no open invite, as a developer, or as an admin with `--role admin`. It goes through `POST /v1/mast/import/opsgenie/invite`, which takes a list of up to 100 addresses and answers with what happened to each: invited, already a member, already invited, not an address, over the plan, or held back by the hourly limit. On Free it stops at the plan's 5 people, members and open invites together, and anyone it couldn't send to goes out when you run it again. Without `--apply` that's all it writes. Inviting someone gives them a place on the account, so with an API token the route needs the `account:write` scope, which only the owner can grant. Signed in, an owner or an admin can use it as they are, from ribo or the web app. After `--apply`, ribo prints the Terraform import blocks under the re-key list, and `--terraform-file` writes them to a file as well. [ribo mast](https://docs.tissue.systems/docs/ribo/mast/#importing-from-opsgenie) has the rest. An importer that reads from Jira Service Management Ops, for teams that have already moved there, is coming soon. --- # Switching tools / Moving from Squadcast Source: https://tissue.systems/mast/docs/squadcast/ # Moving from Squadcast Squadcast, sold today as SolarWinds Incident Response, keeps your on-call setup in schedules, escalation policies and services. Tissue Mast's importer reads all three through Squadcast's API and builds the same setup here: rotations, escalation policies and alert sources. This page covers what it takes, what it leaves behind, and how to move the senders afterwards. --- ## Before you start You need two things from Squadcast: - **The API refresh token.** Squadcast makes one on your profile page, under API token. It reads what its owner can see, so make it as someone who can see every team you want to bring over, usually an account owner or admin. Mast trades it for a short-lived access token for the length of one read, and keeps no copy of either, not in its records, its logs or the account's activity. Revoke the token in Squadcast when you're done. - **The region.** US accounts sign in at `app.squadcast.com` and EU accounts at `app.eu.squadcast.com`. A token works only in its own region. On the Mast side, you need to be the account's owner or an admin. Inviting your team first saves a step later, since the importer matches people by email address. Each person installs the app and links a device, and someone with no linked device can't be on a rotation. ## The importer The importer is in the web app under **On call**, as **Import from Squadcast**. Paste the refresh token, pick the region and press **Read Squadcast**. The first read is a dry run and changes nothing. It's open on every plan, Free included, so you can see what a move involves before you pick one. It lists every rotation, escalation policy and alert source Mast would make, and for each one whether it's new, changes something already there, is already the same, is left out, or doesn't fit the plan. A change lists each field with its old and new value. Anything that doesn't fit the plan stays on the list, marked over plan, and a trial of Team or Company covers rotations and policies. Above the lists it sums up the move: how many Squadcast users there are and how many are already members here, how many teams the token can see and what belongs to each, how many people Squadcast texts or calls for a new incident, and the smallest Mast plan that holds the lot, with its monthly price. Under the lists, **Left behind in this account** names each setting it read and has nowhere to put, one line each, so you can decide what to rebuild by hand. Untick anything you don't want, then press **Import the items ticked**. Mast reads Squadcast again at that moment, so a change made there in between is picked up. Everything is matched by name, so running it again changes what's there instead of making copies, and a run that failed partway finishes on the next one. ### People The importer never invites anyone on its own. It lists everyone in Squadcast and matches each one to a member of this account by email address, ignoring case. Everyone not on the account gets an unticked box, and **Invite** sends each person ticked a normal member invite, as a developer or an admin. On Free, invites count against the plan's 5 people, and an account can send at most 20 an hour. Someone who isn't on the account yet is left out of their rotations and escalation steps, and the dry run names them on each one. Once they've joined, run the import again and it puts them back. ### How each part maps - **Teams.** When the token sees more than one team, each schedule, policy and service gets its team's name in front: the Platform team's "Database" schedule becomes `Platform / Database`. With a single team, names stay as they are. Alert source names are lowercase and can't hold a slash, so the Platform team's "API" service becomes the alert source `platform - api`. - **Schedules.** Each rotation in a schedule becomes its own Mast rotation, named `<schedule> / <rotation>`, so a schedule with day and night rotations becomes two. Daily stays daily, weekly hands off on the same day and time in the schedule's zone, and every two weeks stays every two weeks. A rotation that changes hands after a number of hours or days becomes a custom length in hours, up to 720. Monthly rotations are left out with a note. A rotation that only covers part of the day or week, such as weeknights, is on around the clock in Mast, and the note says when it was on call in Squadcast. Paused schedules aren't imported. - **Participants.** A turn with one person carries over as it is. A turn shared by several people keeps the first and names the others, since a Mast turn is one person. A squad or a team in a rotation is left out with a note. - **Overrides.** Overrides over the next 90 days come across as timed overrides in the schedule's zone. An override handed to a squad or a team is left out, since a Mast override names one person. If Squadcast's API won't list overrides, the schedules still come across and the dry run says to add upcoming overrides by hand. - **Escalation policies.** Each level becomes a step after the same delay. A level that pages a schedule becomes a step for that rotation, and one that pages a user pages that person. Squads, teams and Squadcast's older schedules get the closest Mast step, and the dry run says which. Policy repeats carry over as going round again, up to 10 times. Round robin and a level's own repeats don't, and the dry run lists every policy that used them. A level that also texted or called is flagged, since Mast pages the phone app and calls only from a step set to call. - **Services.** Each service becomes an alert source attached to the escalation policy it names. Its tags, dependencies, Slack channel, alert grouping, auto-pause and delayed notifications stay in Squadcast, and the dry run lists any a service used. A service in a maintenance window in Squadcast pages from the start in Mast. ## What doesn't carry over The importer leaves these in Squadcast and lists them once: personal notification rules, on-call reminders, routing, tagging, suppression and deduplication rules, runbooks, status pages, SLOs, webhooks and extensions, incidents and incident history. - **Personal notification rules.** A person's own "SMS after 5 minutes, then call" has no equivalent. Mast pages the phone through push, and a policy step with **Call** ticked phones everyone it reaches who has confirmed a number ([phone calls](https://tissue.systems/mast/docs/on-call/#phone-calls)). There's no SMS or email paging. - **Routing and deduplication rules.** A Mast alert source pages its own policy. To split alerts by content, give each kind its own alert source. Repeats of an open page fold into it when the sender reuses the same [dedupe key](https://tissue.systems/mast/docs/incidents/). - **Status pages.** Mast has its own [status pages](https://tissue.systems/mast/docs/status-pages/), built from your probes and heartbeats, so set them up there. - **Incident history.** Past incidents, notes and postmortems stay in Squadcast. Export what you want to keep before you cancel. Nothing on the Tissue Mast side reads them. ## Moving the senders Mast doesn't answer Squadcast's incident API, so every sender changes address. When the import finishes it prints the re-key list: every alert source with the service it came from and its send URL. The URL holds the alert source's key, so treat the list like a password. Send URLs are readable back from `GET /v1/mast/state` at any time. - **Anything with a generic webhook** or a shell step posts to the alert source's send URL with [Mast's own fields](https://tissue.systems/mast/docs/send/): `title`, `body`, `key` and `priority`. Send the same `key` again with `resolve=1` and the page closes. - **Alertmanager, Grafana and Zabbix** each have a setup in [the Opsgenie guide](https://tissue.systems/mast/docs/opsgenie/#the-quick-path-change-the-host-and-the-key), since Mast answers Opsgenie's alert API. If one of them already has an Opsgenie integration, that's often the shortest way across. - **Anything that sent email** to a service's Squadcast address needs a real change, since Mast has no email ingest. A `curl` in the same cron line is the usual replacement. Work through the list in this order: 1. **Move the senders first**, while Squadcast still takes alerts, and send to both for a few days so you can compare. 2. **Send one test page per alert source** from the sender itself, and watch it land on the device that should get it. 3. **Check the rotations in the app** for the coming weeks, against who Squadcast has on call. A person without a linked device shows up there as a gap. 4. **Turn off the Squadcast services** once every sender has moved, then revoke the refresh token. ### Terraform The import also gives you a Terraform `import` block for everything it made or changed, under the re-key list, with Copy and Download buttons. Put the blocks in a `.tf` file and run `terraform plan -generate-config-out=mast.tf`, and Terraform writes the matching resources for the tissue provider. [The Opsgenie guide](https://tissue.systems/mast/docs/opsgenie/#terraform) shows what the blocks look like. ### From the API The importer's routes are `POST /v1/mast/import/squadcast/plan` and `/apply`, and they take an account token with the `mast:write` scope. Send `{"token": "…", "region": "us"}` to plan. On apply, an optional `"select"` holds lists of Mast names from the plan under `schedules`, `policies` and `channels`, and a kind left out imports everything of it that fits. `POST /v1/mast/import/squadcast/invite` takes up to 100 addresses to invite, and with an API token it needs the `account:write` scope. A `ribo mast import squadcast` command is coming soon. --- # Switching tools / Coming from Grafana OnCall Source: https://tissue.systems/mast/docs/coming-from-grafana-oncall/ # Coming from Grafana OnCall Grafana OnCall OSS was archived on 24 March 2026, and its phone, SMS and push delivery stopped the same day. A self-hosted OnCall can still run its schedules, but nothing reaches a phone. That last part is what Mast Pager does. There's no OnCall importer and none is planned. You can export from a running OnCall instance through its API and rebuild by hand in the web app under **On call**, or as code with [alert sources as code](https://tissue.systems/mast/docs/alert-sources-as-code/). The [re-key checklist](https://tissue.systems/mast/docs/opsgenie/#the-re-key-checklist) on the Opsgenie page applies to this move too. Grafana's alerting doesn't need to change much. Its Opsgenie contact point works against Mast: set **Alert API URL** to `https://mast.tissue.dev/opsgenie/v2/alerts` and **API key** to a send key, and Grafana's resolves close the incident. [The Grafana section](https://tissue.systems/mast/docs/opsgenie/#grafana) has the details. A webhook contact point pointed at the send URL works too. This page is the word list: what OnCall calls something, and what it's called here. --- ## The words | Grafana OnCall | Tissue Mast | Notes | |---|---|---| | Integration | [Alert source](https://tissue.systems/mast/docs/alert-sources/) | Each integration becomes one alert source with its own send URL | | Alert group | [Incident](https://tissue.systems/mast/docs/incidents/) | One thing that went wrong, from the first alert to the recovery | | Grouping of alerts into an alert group | Dedupe and grouping | Send a stable `key` and repeats count up on the open incident. Grouping collapses a flood on one alert source into one card with a count | | Route | (none) | In OnCall a route is a rule that picks an escalation chain. Mast has no routes: make one alert source per chain and point each kind of alert at its own send URL | | Timeline, alert group log | Timeline | Who was notified, on which device, and who acknowledged | | Escalation chain | [Escalation policy](https://tissue.systems/mast/docs/on-call/#escalation-policies) | Steps page a rotation, the next person on it, one person, everyone or another alert source | | Schedule, rotation, layer | [Rotation](https://tissue.systems/mast/docs/on-call/#rotations) | Each layer becomes its own rotation | | Override | Override | | | Personal notification rules | [Devices](https://tissue.systems/mast/docs/start/#linking-your-phone) | Mast pages a linked phone or watch through push, and calls from a step with **Call** ticked. There are no per-person rules and no SMS | | Maintenance mode | [Maintenance window](https://tissue.systems/mast/docs/maintenance/) | | | Important and default notifications | Level: page, loud, normal, quiet | Close, not the same. Mast has four levels, and the level a phone rings at is set by the send and capped by the alert source. [Alert sources and levels](https://tissue.systems/mast/docs/alert-sources/#levels) | | Acknowledge, resolve, silence | Acknowledge, resolve, mute | Mute silences one alert source for a while. A page still rings | | (none) | [Heartbeat](https://tissue.systems/mast/docs/heartbeats/) | OnCall had a heartbeat on each integration. Here it's its own thing, a URL a job beats on a schedule | ## Where it isn't a match **New alert sources top out at loud.** One made in the web app or from the command line can't page until someone raises its highest level from a phone. Do that for the ones that should wake people, then send a test page to check. **Slack as the place you act.** OnCall let you acknowledge from Slack. Mast posts to Slack through a [destination](https://tissue.systems/mast/docs/destinations/), and a channel added with the Slack app gets **Acknowledge** and **Resolve** buttons on each page. [Acting from a chat](https://tissue.systems/mast/docs/destinations/#acting-from-a-chat) has who may press them. --- # Account / Plans and limits Source: https://tissue.systems/mast/docs/limits/ # Limits What Mast counts, what each plan allows, and what happens at the edges: a sender that posts too fast, a key that turns up in a public commit, a probe pointed at a name that no longer exists, and a card that stops going through. --- ## Alert sources and keys Every alert source has one live key, the secret part of its send URL. Rotating a key issues a new one and leaves the old one working for seven days, so for that week the alert source holds two. | Plan | Alert sources | Heartbeats | Keys | |---|---|---|---| | No account | 2 | 1 | 6 | | Free | 10 | 10 | 40 | | Team | 100 | 250 | 700 | | Team 10 (closed) | 250 | 500 | 1,500 | | Company | 1,000 | 2,000 | 6,000 | Heartbeats don't count as alert sources, but each heartbeat's key counts as a key. Team 10 is closed to new sign-ups. An account already on it keeps it, and its numbers are listed here for that account. If you bought the [Mast Pager app](https://apps.apple.com/us/app/mast-pager/id6805232044?pt=129362925&ct=docs-limits&mt=8), you get at least 10 heartbeats, 25 alert sources and 100 keys whatever plan the account is on, and the same without an account at all. Archived alert sources don't count. Keys count while they can still send: the live one, and an old one inside its seven-day overlap. At a cap, creating an alert source (or un-archiving one) answers `402` with code `plan_limit`, and the message names the cap and the plan: ```json { "error": { "code": "plan_limit", "message": "The Free plan allows 10 alert sources and this account has 10. Nothing was deleted; remove one or upgrade to add more.", "limit": 10, "used": 10, "plan": "Free" } } ``` Rotating is never refused. At the key cap, a rotation retires the old key on the spot instead of giving it the seven-day overlap, and the response carries `"grace_skipped": "key_cap"` so a script can tell. Update the sender straight away in that case. ### After a downgrade Moving to a plan with lower caps deletes nothing, and the things past a cap stop until you move back up. Within the hour, the newest alert sources, heartbeats, keys, probes, rotations, policies and status pages beyond the new plan's numbers are paused; the oldest ones keep working. A send to a paused alert source or key answers `403` with code `over_cap`, a paused heartbeat is not watched, a paused probe stops checking, a probe set to check more often than the new plan allows is checked at the plan's shortest interval until you move back up, a paused rotation or policy is not followed, and a paused status page answers 404. New ones are refused until you are under the cap. The account owner gets one page saying what the account holds against the new plan's numbers, and everything paused resumes within the hour of the account being under the cap again or the plan moving back up. The [billing page](https://tissue.systems/mast/docs/billing/#downgrading-over-a-cap) has the rest. --- ## People and the ring | Plan | People | Rung by one escalation step | Rotations | Policies | Steps in a policy | |---|---|---|---|---|---| | Free | 5 | 2 | 1 | 1 | 2 | | Team | unlimited | 25 | unlimited | unlimited | unlimited | | Team 10 (closed) | 10 | 25 | 3 | 3 | 3 | | Company | unlimited | 25 | unlimited | unlimited | unlimited | People are the members of the account plus its open invites. Where a plan has a limit, an invite past it is refused with the count and nothing is deleted. Free's 5 is held on an account whose Tissue Cloud plan is free too; an account that pays for Tissue Cloud keeps inviting on that plan's terms. The ring limit is how many people one escalation step rings at the same moment. It counts people, not phones: someone with a phone and a watch is one, and a phone nobody is signed in on counts as a person. Each step of an [escalation policy](https://tissue.systems/mast/docs/on-call/#escalation-policies) can ring that many. An alert source with no policy rings everyone on the account: up to 5 people on Free, and up to 25 on the other plans. - A step that lists more people than the limit answers `402 plan_limit` when you save the policy. - So does an everyone step, or a step that pages another alert source, on an account with more people than the limit. Use a rotation, which rings one person and hands on to the next. - An invite that would take an account with an everyone step past the limit is refused, and the answer names the policy. - Apart from step 1, each step waits at least 60 seconds after the one before it. An alert source's escalation delay is off or at least 60 seconds. Outbound destinations are outside the ring cap. Slack, Discord, Teams, email and webhooks aren't phones, and an alert goes to every destination on its alert source however many people it rings. --- ## Phone calls | Plan | Calls a month | |---|---| | Free | none | | Team | 100 | | Team 10 (closed) | 100 | | Company | 1,000 | A call is one number rung for one step of one page. A verification call, the one that reads out a code, doesn't come out of the allowance. The month runs on UTC and starts again on the 1st. - Free accounts can't add a number. `POST /v1/mast/phones` answers `402 plan_limit` with `cap: "calls"`. - Each person keeps up to three numbers. Mast places up to three code calls an hour to one number and 10 a day for one account. - On top of the monthly allowance, one account places at most 200 calls in any 24 hours, and one number gets at most 8 calls a minute. - A call that can't be placed within 30 minutes of its page is dropped rather than placed late. --- ## Messages and history | Plan | Messages a month | History | |---|---|---| | No account | 1,000 | 7 days | | Free | 10,000 | 7 days | | Team | 100,000 | 90 days | | Team 10 (closed) | 500,000 | 90 days | | Company | 2,000,000 | 365 days | The monthly number is a fair-use line, not a gate. Every accepted send counts against it, and **Usage** in the web app shows the count and where the month is heading, but a send past the line is not refused: a pager that drops a page over a quota has failed at the one thing it is for. If you are past the line every month, the next plan up is the one for you. History is how long a message stays in the feed, the API and the web app. Past it the message is deleted, and a card the server no longer holds opens as *aged out of retention, or deleted*. If you bought the Mast Pager app, you keep 30 days whatever plan the account is on. --- ## Destinations [Destinations](https://tissue.systems/mast/docs/destinations/) need a Tissue Mast account. A phone with no account can't add any. | Plan | Destinations | Webhooks and `callback=` | |---|---|---| | Free | 2 | No | | Team | 20 | Yes | | Team 10 (closed) | 100 | Yes | | Company | 500 | Yes | Free can save Slack, Discord, Teams and email destinations. A signed webhook destination, and `callback=` on a send, are on Team and Company. A `callback=` the plan doesn't include is dropped with a `warning` in the `202`, and the page still goes through. Adding a destination past the cap, or a webhook on Free, answers `402 plan_limit`. The callback URL a send carries doesn't count as a destination. --- ## Maintenance windows | | | |---|---| | Windows that start now, and `hold=` | Every plan | | Windows that start later, and weekly windows | Team and Company | | Windows that aren't over yet | 100 per account, weekly ones included | | One-off length | Up to 31 days | | Weekly length | Under 7 days | | `hold=` | Up to 6 hours, however many sends stretch it | | Alert sources, probes or hosts in one window | 50 of each | | Name | 80 characters | A scheduled or weekly window on Free answers `402 plan_limit`. The 101st window answers `409 too_many_windows`. [Maintenance windows](https://tissue.systems/mast/docs/maintenance/) has the rest. --- ## Domain expiry notices Team and Company watch the registration of the domain behind each probe and send a notice 30, 14 and 7 days before it lapses. Free doesn't. Setting `domain_expiry: true` on a probe on Free answers `402 plan_limit`. [Probes](https://tissue.systems/mast/docs/probes/#domain-expiry) has the rest. --- ## Path traces Team and Company trace the route to a probe's target when a place's check fails, and the page for a confirmed down says where the path stopped answering. Free doesn't, and `GET /v1/mast/probes/{id}/traces` on Free answers `402 plan_limit`. A place traces each probe at most once every ten minutes. A plan change usually reaches the probes on their next check, and always within the hour. [Probes](https://tissue.systems/mast/docs/probes/#the-path-to-your-site) has the rest. ## Status pages on your own domain Team and Company can serve a status page on a subdomain of their own. Free can't: setting `custom_domain` on Free answers `402 plan_limit`. A verified domain on an account that moves down to Free stops being served within a few minutes, and starts again when the plan moves back up. [Status pages](https://tissue.systems/mast/docs/status-pages/#your-own-domain) has the rest. --- ## DMARC reports | Plan | Domains | Reported messages a month | Failure samples | Originals kept | |---|---|---|---|---| | Free | 1 | 100,000 | No | 30 days | | Team | 10 | 2,000,000 | No | 30 days | | Team 10 (closed) | 10 | 2,000,000 | No | 30 days | | Company | 100 | 50,000,000 | Yes | 400 days | A domain that has had no mail reported for 30 days doesn't count toward the cap. Adding a domain past it answers `402 plan_limit`. The monthly number counts the messages the reports describe. It isn't a gate either: past it, reports are still taken in so receivers don't retry them for days, but for the rest of the month each is kept as totals only, without its per-source rows. Failure samples (`ruf`) are refused when they arrive on any plan but Company. [DMARC reports](https://tissue.systems/mast/docs/dmarc/) has the rest. --- ## How fast you can send Each send key takes 60 sends a minute, and one owner takes 600 a minute across all their keys. Past either, the send answers `429 Too Many Requests` with `Retry-After: 1`. On a heartbeat, an over-limit send still counts as a beat. The heartbeat's last-beat time moves (at most once every 15 seconds) and the body is dropped, so a job stuck in a tight loop is shown as alive, not as down. The answer says so: ```json { "error": { "code": "rate_limited", "message": "Too many sends to this alert source. The beat was counted and the body dropped.", "counted": true, "body_dropped": true } } ``` On an ordinary alert source an over-limit send is dropped and the answer has no `counted` field. An alert source takes 30 sends at `page` an hour. Past that, a page still arrives, at `loud`, with `priority_reason: "page_cap"` on the message. Critical Alerts go through Do Not Disturb, and more than one every two minutes is a loop, not an emergency. The phone app on its own, not connected to a Tissue account, takes 500 sends a day, counted over every way in: the send URL, `/fail`, `/v1/mast/send` and test sends. Past that, sends answer `429 daily_limit` until midnight UTC. A beat on a heartbeat still counts, so the heartbeat doesn't go down. Connecting the app to an account, a free one included, lifts the limit. A few other things have their own limits, all per account: | What | Limit | Past it | |---|---|---| | Alert emails | 200 an hour | Skipped, and the next email says how many were | | Webhook and chat sends | 20,000 an hour, and 6,000 an hour to any one host | Held until the next hour, then sent | | Test sends to a destination | 6 a minute | `429 rate_limited` | | Test sends to an alert source, or to a device | 5 a minute each | `429 rate_limited` | | Replays | 30 a minute | `429 rate_limited` | | Check now | 6 a minute | `429 rate_limited` | | API tokens | 50 at once, 10 made an hour | `409 too_many_tokens`, `429 rate_limited` | | Steps in an escalation policy | 50, or 2 on Free | Refused | | Turns in a rotation | 50 | Refused | | Overrides on a rotation | 500 | Refused | The account's activity is kept for 30 days on Free, 90 on Team and 365 on Company. --- ## A key in a public commit Mast keys have a fixed shape, `mk_` and 40 hex characters, and GitHub's secret scanning looks for it in public repositories. When GitHub reports one of your keys, Mast: 1. revokes it at once, with no seven-day overlap, 2. issues the alert source a new key, 3. pages you on that alert source: "One of your Mast keys was found in a public commit at *url*. It has been rotated; update the sender." Nothing is paused and nothing else changes. The alert source keeps paging with its new key, which the app shows the next time it syncs. Anything still posting the old key gets `404` until you give it the new URL. A key that was already revoked when it turned up is left alone. --- ## Probes that pause themselves A probe pauses on its own in the cases below. The reason shows on the probe, the account owner gets an email, and resuming it from the dashboard starts it checking again. **The target is gone.** If every check for 7 days fails because the name doesn't resolve or there is no route to it, the probe pauses as `unreachable` and the account owner gets one email. A target that answers with an error is down, not gone, and keeps being checked and paged. A DNS probe whose name comes back NXDOMAIN is down too, since a missing record is what it's there to catch, and it isn't paused for it. **Nobody signs in.** An account with no sign-in for 83 days gets an email saying its probes pause in 7 days. At 90 days, and never less than 7 days after that email, the probes pause as `inactive` and a second email says so. Signing in resumes them within the hour. Where an account has never signed in on the web, its last API token use stands in for a sign-in, and the email says which one it went by. **The target keeps turning the probe away.** A check is turned away when it gets a 403, a bot challenge, a refused connection, a firewall reject, or no answer at all before the timeout. When more than half of a probe's checks have been turned away for 72 hours, the probe pauses as `target_refusing`. That's what a site that doesn't want the traffic looks like. It's also what your own server looks like when it's been off for a long weekend, and then you resume the probe once the server is back. A site that fails now and then but answers most checks is never paused for it. Ask whoever runs the site to allow [our addresses](https://tissue.systems/mast/probes), or prove the site is yours. On a domain you've [proven yours](https://tissue.systems/mast/docs/probes/#sites-you-own) the window is 7 days instead of 72 hours. A probe on an IP address can't be proven, so 72 hours is its window too. To keep a probe from pausing while your server is down on purpose, pause it yourself and resume it when you're done. A probe that [expects its target down](https://tissue.systems/mast/docs/probes/#check-that-something-stays-down) is never paused as `unreachable` or `target_refusing`, because an unreachable target is the result it wants. That holds for a site behind a bot filter too: a probe that expects its target down keeps reading `blocked` there instead of pausing. **It keeps getting sent elsewhere.** Probes follow redirects only on the same site: the same host, with port 80 and 443 counting as one. A redirect anywhere else shows as a failed check saying where it pointed, and three checks of that pause the probe as `redirect_unfollowed`. Point the probe at the page it redirects to, or expect the redirect's status code to check the redirect itself. **The site asked us to stop.** A site's owner can opt out of all Mast checks. Probes aimed at it pause as `target_opted_out`. Proving the domain is yours lets yours run anyway. Whoever runs an address can opt it out too, and that one holds even for a domain you've proven, since a name can point at anyone's server. A probe whose checks land on one of our own servers, on a port we don't serve to the public, pauses as `address_policy`. **It sends data to a mail port.** Only the SMTP probe may talk to ports 25, 465, 587 and 2525. A TCP probe that sends data there is refused when you save it, and an older one pauses as `mail_port_payload`. Use an [SMTP probe](https://tissue.systems/mast/docs/probes/) to check a mail server. **The domain proof went away.** A probe that sends a body, credentials or a write method needs its domain [proven yours](https://tissue.systems/mast/docs/probes/#sites-you-own). If the daily look finds the proof gone, the probe pauses as `domain_unverified`. **No account.** Probes made from the phone app before it was connected to an account pause as `no_account` and start again within the hour of connecting it. **Tissue paused it.** A probe paused as `admin` was stopped by us, usually after an abuse report. You can't resume it yourself; write to support@tissue.systems. A target that answers `429 Too Many Requests` isn't paused for it straight away. Mast waits as long as its `Retry-After` asks, between a minute and an hour, or 5 minutes when it doesn't say, and then checks again. A site that's still answering 429 to most checks after 72 hours is turning the probe away, and pauses it as above. Heartbeats and alert sources aren't affected by any of these. --- ## When the card fails A declined renewal changes nothing for 14 days. After 14 days past due: - escalation stops after the first page: the page to you goes out, and the steps that would hand it to someone else don't, - probes pause, with the reason `billing`. The pager keeps paging. Every send to an alert source you own, and every heartbeat's page to you, reaches your phone the whole time. When the card goes through, escalation comes back and the probes resume within the hour. Nothing is deleted. [Billing](https://tissue.systems/mast/docs/billing/) has the rest. --- # Account / Billing Source: https://tissue.systems/mast/docs/billing/ # Billing Mast Pager is free on both stores, with no in-app purchases. What costs money is a plan on your Tissue Mast account, billed by Stripe. This page says what the receipt is for, and what happens when a card fails, when a plan goes down, and when you want an annual charge back. --- ## The plan is what's billed Everything that costs money is a plan on your Tissue Mast account, chosen under **Plan and billing** in the [web app](https://dashboard.tissue.systems/mast/plan) and billed by Stripe. Stripe emails the receipt and the invoice for each charge; **Plan and billing** in the web app shows the plan you are on and opens Stripe's billing portal, where the card on file, the invoices and the next renewal date live. A plan is monthly or annual, your choice at checkout, and the annual price is the monthly one with two months taken off. The plan sets caps (people, alert sources, heartbeats, probes, history) and switches on the features above Free. The [limits page](https://tissue.systems/mast/docs/limits/) has the per-plan numbers. A page sent to an alert source you own reaches your phone on Free and on every plan above it. The price you signed up at holds for as long as you stay subscribed. Free limits only go up. Any other change gets 90 days' notice, by email to the account owner. Prices are before tax. Sales tax is added at checkout where we are registered to collect it, which as of this page is Washington State. ## When the card fails Stripe tells us the moment a renewal charge is declined. We email the account owner and retry the card over the following days, and for 14 days nothing changes. If the card is still failing after 14 days, we pause the parts of Mast that act on your behalf: - escalation to other people on the account, including a down heartbeat's escalation, - probes. The pager itself is never paused. A page sent to an alert source you own reaches your phone the whole time, and so does a heartbeat's down page to you. The idea is that a lapsed card should never be the reason you missed the page that mattered; it is the reason nobody else got it. A successful charge lifts the pause on its own. Nothing is deleted at any point. ## Downgrading over a cap Move to a smaller plan while you hold more than it allows and we delete nothing, but the things past each cap stop until you move back up. Within the hour, the newest alert sources, heartbeats, keys, probes, rotations, policies and status pages beyond the new plan's numbers are paused: a paused alert source or key answers sends with `403 over_cap`, a paused heartbeat is not watched for going down, a paused probe stops checking, a paused rotation or policy is not followed (those pages go to everyone), and a paused status page answers 404. The oldest ones keep working. People beyond the plan's headcount, on a plan that has one, stay on the account and can still be paged, but go read-only: they can see everything and change nothing. The account owner gets one page saying what the account holds against the new plan's numbers. Bringing the count under the cap, or moving back up, lifts all of it within the hour. Which things count toward a cap, and the cap on each plan, is on the [limits page](https://tissue.systems/mast/docs/limits/#after-a-downgrade). ## Getting an annual charge back An annual term is refunded pro rata if you ask within 30 days of the charge: the unused months come back to the card and the plan ends. Email [hello@tissue.systems](mailto:hello@tissue.systems) from the owner's address. Monthly charges are not refunded; cancelling stops the next one and the plan runs to the end of the month you paid for. ## If Mast ever shuts down Every account owner gets at least 90 days' email notice. For that whole period the [alert sources as code](https://tissue.systems/mast/docs/alert-sources-as-code/) export keeps working, so alert sources, keys, heartbeats, schedules and history leave in a file the reconcile script already reads, and the unused part of any annual term is refunded without being asked. That promise is written into the [terms](https://tissue.systems/legal/terms), section 07. --- # Account / Single sign-on Source: https://tissue.systems/mast/docs/sso/ # Single sign-on On Company and Enterprise, the people on your account can sign in through your company's identity provider over OpenID Connect. You can also require it, so a password, an email link, Google, GitHub or a passkey stops working for anyone at your domain. It covers the whole account: the Mast web app, Mast Pager, the Tissue Cloud dashboard and `ribo login` all go through the same sign-in. Only an owner can set it up. It's under **Sign-in and security**, in the menu under your address at the top right, in the **Single sign-on for this account** section. --- ## What you need - An owner with a passkey or two-factor sign-in. You can set up the connection without one, but you can't require single sign-on until an owner can still get in when your provider is down. - Access to your identity provider's admin console, to make an OpenID Connect web application. - Access to your domain's DNS, to publish one TXT record. SAML isn't offered. Every provider on this page speaks OpenID Connect. --- ## Setting it up 1. In your provider, make an OpenID Connect **web** application (sometimes called a confidential client) with the authorization code flow, and give it this redirect URI: ``` https://auth.tissue.systems/auth/sso/callback ``` 2. In Tissue, open **Sign-in and security**, pick the provider, and fill in the issuer, the client ID and the client secret. Tissue reads the provider's discovery document before it saves anything, so a wrong issuer is refused straight away rather than at someone's first sign-in. 3. Add your domain and publish the TXT record Tissue shows you at `_tissue-challenge.<your domain>`. Press **check now** once it's published. DNS changes can take a few minutes to show up. A domain can be verified by one account only, and public mail domains such as gmail.com can't be claimed. 4. Press **Test the sign-in**. You sign in at your provider and Tissue shows what it would do with the answer: the address, the identity, the groups it saw and the role a new member would get. Nothing changes, and the test is in the audit log. 5. When the test works, people at the verified domain can sign in. On the sign-in page they type their address and go straight to your provider. Your sign-in address, shown on the settings page, goes there directly as well, which is handy as a bookmark or an app tile in your provider's portal. The client secret is stored encrypted and never shown again. Leave the field empty when you save other changes and the stored one stays. --- ## Who gets in, and with what role The address in the token has to be at one of the domains you verified. Tissue then finds the person by their identity at your provider. The first time it sees them, it finds them by address instead. With **Add people the first time they sign in** on, someone who isn't on the account yet joins it when they first sign in, as long as the plan's headcount has room. They join as developer unless you pick admin. With it off, only people already on the account can sign in through your provider. To set roles from your provider, put the name of the groups claim (usually `groups`) in **Groups claim** and list one group per line in **Group roles**: ``` oncall-leads = admin engineering = developer ``` Admin wins when someone is in several groups. A group can't make anyone an owner, so ownership only ever changes by hand. A role an owner set by hand is left alone, and a role the groups set follows the groups at each sign-in. A single sign-on session lasts the hours you set, 24 at most, and only works for this account. Someone who is also on another account signs in to that one the usual way. --- ## Requiring single sign-on There are two switches. **Require it for addresses at the verified domains.** Anyone with an address at one of your domains has to sign in through your provider. Their password, email links, Google, GitHub and passkeys stop working, on this account and on any other account they're on. **Require it for every member of this account.** Every member who isn't an owner has to come through your provider to reach this account, including people at other domains. Someone your provider doesn't know can't get in at all, so check the count the settings page shows first. Owners keep a way in for when your provider is down: a passkey, or a password with a two-factor code. Every sign-in that way is written to the audit log, and every owner on the account gets an email about it. An owner without either is held to single sign-on like everyone else. Requiring single sign-on doesn't end sessions that already exist. **Sign out everyone it covers** does: it ends every session and every `ribo` token of the members the switches cover, on every device. Owners stay signed in. If the plan stops including single sign-on, nobody can sign in through the connection and nothing is required. The settings stay for when the plan includes it again. Mast Pager's own link to your account isn't a sign-in, so a phone already linked keeps ringing when you require single sign-on. Remove someone from the account to stop their phone. --- ## Okta 1. In the Okta admin console, go to **Applications**, **Create App Integration**, pick **OIDC - OpenID Connect** and **Web Application**. 2. Under **Sign-in redirect URIs**, put `https://auth.tissue.systems/auth/sso/callback`. Leave the grant type at **Authorization Code**. 3. Assign the people or groups who should be able to sign in. 4. The issuer is your Okta domain, such as `https://yourcompany.okta.com`. If you use a custom authorization server, it's that server's issuer URI instead, such as `https://yourcompany.okta.com/oauth2/default`. 5. In Tissue, pick **Okta, JumpCloud, Keycloak or another OpenID Connect provider**. For groups, open the application's **Sign On** tab, edit **OpenID Connect ID Token**, set **Groups claim type** to **Filter**, the claim name to `groups`, and a filter such as **Matches regex** `.*`. Then put `groups` in Tissue's **Groups claim**. With a custom authorization server, add a `groups` claim to the server instead. ## Microsoft Entra ID 1. In the Entra admin center, go to **App registrations**, **New registration**. Pick **Accounts in this organizational directory only**. 2. Under **Redirect URI**, pick **Web** and put `https://auth.tissue.systems/auth/sso/callback`. 3. Under **Certificates & secrets**, make a client secret. Its value is the client secret, and Entra shows it only once. Entra secrets expire, so set a reminder to make a new one before the date it shows. 4. The issuer is `https://login.microsoftonline.com/<tenant id>/v2.0`, with your directory (tenant) ID from the app's **Overview**. Tissue refuses the shared `common` and `organizations` endpoints, which would let in every tenant. 5. In Tissue, pick **Microsoft Entra ID**. Tissue identifies people by their object ID in your tenant and checks that every token comes from that tenant. The address comes from the `email` claim, or from the sign-in name when there's none. For groups, open **Token configuration**, **Add groups claim**, and pick **Security groups**. Entra sends group object IDs rather than names, so map the IDs: ``` 3f6b7a52-0c1d-4e8a-9b2f-5d7e1a2c4b6d = admin ``` Entra leaves the groups out of the token for someone in more than about 200 groups. Tissue then sees no groups and leaves that person's role where it is. ## Google Workspace 1. In the Google Cloud console, pick a project in your Workspace organization, then **APIs & Services**, **OAuth consent screen**, and set the user type to **Internal**. 2. Under **Credentials**, **Create credentials**, **OAuth client ID**, pick **Web application** and add `https://auth.tissue.systems/auth/sso/callback` under **Authorized redirect URIs**. 3. The issuer is `https://accounts.google.com`. 4. In Tissue, pick **Google Workspace**. Google uses one issuer for every Google account, so Tissue also checks the `hd` claim, which says which Workspace vouched for the person, against the address's domain. A personal Gmail account can't get through. Google doesn't put groups in its tokens. Everyone joins with the default role, and you change roles by hand. ## JumpCloud 1. In the JumpCloud admin portal, go to **SSO Applications**, **Add New Application**, **Custom Application**, and pick **Manage Single Sign-On (SSO)** with **Configure SSO with OIDC**. 2. Put `https://auth.tissue.systems/auth/sso/callback` under **Redirect URIs**, pick **Client Secret Post** as the client authentication type, and set the login URL to your sign-in address from the Tissue settings page. 3. Under **Attribute Mapping**, include the **email** and **profile** standard scopes. To send groups, turn on **Include group attribute** and name it `groups`. 4. Bind the user groups who should be able to sign in. 5. The issuer is `https://oauth.id.jumpcloud.com/`. 6. In Tissue, pick **Okta, JumpCloud, Keycloak or another OpenID Connect provider**. ## Keycloak 1. In your realm, go to **Clients**, **Create client**, with the client type **OpenID Connect**. 2. Turn on **Client authentication** and leave **Standard flow** on. 3. Put `https://auth.tissue.systems/auth/sso/callback` under **Valid redirect URIs**. 4. The client secret is on the client's **Credentials** tab. 5. The issuer is `https://<your keycloak host>/realms/<realm>`. Keycloak has to be reachable from the internet at a public hostname. 6. In Tissue, pick **Okta, JumpCloud, Keycloak or another OpenID Connect provider**. Keycloak only puts `email_verified` in the token as true when the address is verified in Keycloak, and Tissue refuses a sign-in without it. Mark the addresses verified, or turn on email verification for the realm. For groups, open the client's dedicated scope, **Add mapper**, **By configuration**, **Group Membership**, with the token claim name `groups` and **Full group path** off. --- ## Provisioning with SCIM Single sign-on lets people in. SCIM lets your identity provider manage who is on the account: it adds people you assign to the application, keeps their names and addresses current, and takes them off the account when you unassign or deactivate them. It comes with single sign-on on Company and Enterprise, and needs the connection set up with at least one verified domain. Under **Provisioning with SCIM** on **Sign-in and security** you'll find the base URL and a **Make a token** button. The token is shown once, so copy it straight into your provider. Two tokens can be live at once, which lets you move to a new one before you revoke the old. A token only works for this account's connection. What happens to the people your provider sends: - **Added.** Someone at a verified domain joins as the role **New members join as** sets, or the role their groups map to, as long as the plan's headcount has room. When it's full, your provider gets an error naming the plan limit and nobody is added. They sign in through your provider, and nobody gets an invite email. - **Already a member.** Someone you added by hand is taken over by your provider and keeps the role they had. - **Deactivated or unassigned.** They leave the account the same way a removal on the members page works: their sessions and `ribo` tokens end, they come off every on-call rotation, and Mast Pager stops ringing their phone. Signing in through your provider doesn't add them back while your provider has them deactivated. - **Groups.** Push groups and the **Group roles** map applies to them, by group name or, for Entra, by the group's object ID. A role an owner set by hand is left alone. Someone your provider manages is changed there, not on the members page, which shows **managed by your identity provider** next to them and offers no role change or removal. An owner is never removed or demoted over SCIM. Your provider gets an error and the other owners get an email. If your provider tries to remove more people in ten minutes than about a quarter of those it manages (at least 3, at most 10), Tissue stops removing anyone, and every owner gets an email. Your provider retries on its own. Once you've checked it was meant, press **Approve the removals** and the next hour of removals goes through. Removing the single sign-on connection stops its SCIM tokens. Everyone stays on the account, managed on the members page again. ### SCIM with Okta 1. Open the OpenID Connect application you made for single sign-on. On its **General** tab, edit **App Settings** and set **Provisioning** to **SCIM**. 2. On the new **Provisioning** tab, under **Integration**, put the base URL in **SCIM connector base URL** and `userName` in **Unique identifier field for users**. 3. Tick **Push New Users**, **Push Profile Updates** and **Push Groups**. Set **Authentication Mode** to **HTTP Header** and paste the token as the bearer token. Press **Test Connector Configuration**, then save. 4. Under **To App**, turn on **Create Users**, **Update User Attributes** and **Deactivate Users**. 5. To set roles from groups, add the groups under **Push Groups** and map their names in **Group roles**. ### SCIM with Microsoft Entra ID 1. In the Entra admin center, open **Enterprise applications** and pick the application with the same name as the app registration you made for single sign-on. 2. Open **Provisioning**, and set **Provisioning Mode** to **Automatic**. 3. Under **Admin Credentials**, put the base URL with `?aadOptscim062020` on the end in **Tenant URL**, for example `https://auth.tissue.systems/scim/v2/ssoc_…?aadOptscim062020`, and the token in **Secret Token**. The suffix turns on the standard SCIM behaviour in Entra. Press **Test Connection**, then save. 4. Under **Settings**, set **Scope** to **Sync only assigned users and groups**, and assign people and groups under **Users and groups**. 5. Turn **Provisioning Status** on. Entra runs a cycle every 40 minutes or so, so changes show up then, not straight away. Entra sends the user principal name as the address by default. If that isn't the address people get mail at, change the `userName` mapping under **Mappings** to `mail`. --- ## When a sign-in fails **Test the sign-in** names the reason. The usual ones: - **The address is not at a domain this connection has verified.** The person's address is at a domain you haven't added, or the TXT record isn't verified yet. - **The code exchange with your provider failed.** The client ID or secret is wrong, the secret has expired, or the redirect URI in the provider doesn't match exactly. If your provider asks how the client authenticates, pick the client secret sent in the request body (`client_secret_post`). - **The provider did not say the address is verified.** Your provider didn't send `email_verified` as true. See the Keycloak note above. - **The token came from a different Entra tenant.** The issuer names another tenant than the one the person signed in to. - **Google did not say the address belongs to its Workspace domain.** The person signed in with a personal Google account, or one from another Workspace. Someone held to single sign-on who tries a password sees a message and is taken to your provider. An owner whose provider is down signs in with a passkey, or with a password and a two-factor code. Every change to the connection, its domains and the switches, every test, every owner sign-in past single sign-on, and every change your provider makes over SCIM is in the account's audit log under **Activity**.