Integrate Spike with Notion
Send a Notion database automation to Spike so a new task in your tasks database alerts on-call, and the incident resolves when the task is marked Done.
Notion is a workspace where many teams keep their tasks in a database. A Notion database automation can send a webhook whenever a page in that database is added or changed.
Point that automation at a Spike integration URL and a task that reaches your trigger pages your on-call rotation, with the task's title as the incident title. When the task's Status is set to Done, a second automation resolves the incident.
Nothing is installed. One webhook URL and two database automations cover a whole tasks database.
How Spike reads the webhook
Identity:
data.id, the id of the Notion task page. It is the same on the firing delivery and the recovery, so the recovery resolves the incident the firing opened, and a repeat firing for the same task joins the open incident instead of paging again.Title: the task's title property. Its name is yours to choose (
Name,Task name, ...), so Spike finds it by its type, joins the text segments, collapses whitespace and shortens it at a word boundary to fit 200 characters. If the title is empty the incident is titledNotion task with no title.Recovery: read from the first property whose type is Status. The names
done,complete,completed,resolved,closed,cancelledandcanceled, in any letter case, resolve the incident. Any other status, such asNot startedorIn progress, is a firing. Older databases whose status is a Select property namedStatus(in any letter case) are read the same way.
Incident titles:
Checkout API returning 500s for EU customers
Checkout API returning 500s for EU customers marked DoneThe first opens the incident and the second is the recovery. Titles carry no ids, URLs or timestamps.
Prerequisites
A Notion database of tasks with a Title property and a Status property
Permission to create automations on that database (Notion requires a paid plan for database automations and the Send webhook action)
A Notion integration in Spike and its webhook URL
Step 1 — Create the integration in Spike
In Spike, go to Integrations → Add integration → Notion, attach it to a service and an escalation policy, and copy the webhook URL. It looks like https://hooks.spike.sh/<your-token>/push-events.
Step 2 — Create the automation that pages
Open your tasks database in Notion, select ⚡ at the top of the database, then New automation.
Select New trigger and choose the trigger that should page your team, for example Page added, or Property edited with Status is set to Not started. Add a filter if only some tasks should page, such as Priority is High.
Select New action and choose Send webhook.
In the URL field paste the Spike webhook URL from Step 1.
Under Properties, select Title and Status. Both are required: the title becomes the incident title, and the status tells Spike whether the task is open or done. Other properties are optional and are kept on the incident.
Name the automation, for example
Spike - task opened, and select Create.
Step 3 — Create the automation that resolves
In the same database, select ⚡ → New automation.
Select New trigger, choose Property edited, and set Status is set to Done (or the completed option your database uses).
Select New action, choose Send webhook and paste the same Spike webhook URL.
Under Properties, select Title and Status, name it
Spike - task doneand select Create.
Step 4 — Confirm it end to end
Create a task that matches your first trigger. An incident opens in Spike titled with the task's title.
Set that task's Status to Done. The incident resolves, and the event reads
<task title> marked Done.
Payload reference
Notion sends its own payload and there is no template to edit. This is what the Send webhook action delivers, and what alert rules and the Title Remapper can read as data.body.<field>. Properties you did not select in the automation are not sent.
The firing, which opens the incident:
The recovery for the same task, which resolves it. Note that data.id is the one the firing carried, which is what joins the two:
Things worth knowing
One webhook URL, two automations. Both automations send to the same URL. Spike tells them apart by the task's status.
Resolving in Spike does not change the task. The task keeps its status in Notion.
The title property can have any name. Spike finds it by its type, not by
Task name.Custom statuses. Only the names listed above resolve an incident. A status called
Shippedis read as a firing, so use one of those names for your completed option.Notion does not document this payload. The shape above is based on Notion's page object. Open the incident in Spike and check the payload if something does not match.
Troubleshooting
Disclaimer: These integration instructions are offered independently by Spike.sh, and Spike.sh is not affiliated with nor a partner of Notion Labs, Inc.
Last updated

