Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 titled Notion task with no title.

  • Recovery: read from the first property whose type is Status. The names done, complete, completed, resolved, closed, cancelled and canceled, in any letter case, resolve the incident. Any other status, such as Not started or In progress, is a firing. Older databases whose status is a Select property named Status (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 Done

The first opens the incident and the second is the recovery. Titles carry no ids, URLs or timestamps.

A recovery for a task with no open incident is dropped rather than turned into a new incident. That happens when the firing automation never ran for the task, or when the incident was already resolved in Spike.

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.

Create integration and service on our dashboard

Step 2 — Create the automation that pages

  1. Open your tasks database in Notion, select ⚡ at the top of the database, then New automation.

  2. 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.

  3. Select New action and choose Send webhook.

  4. In the URL field paste the Spike webhook URL from Step 1.

  5. 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.

  6. Name the automation, for example Spike - task opened, and select Create.

Step 3 — Create the automation that resolves

  1. In the same database, select ⚡ → New automation.

  2. Select New trigger, choose Property edited, and set Status is set to Done (or the completed option your database uses).

  3. Select New action, choose Send webhook and paste the same Spike webhook URL.

  4. Under Properties, select Title and Status, name it Spike - task done and select Create.

Step 4 — Confirm it end to end

  1. Create a task that matches your first trigger. An incident opens in Spike titled with the task's title.

  2. 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 Shipped is 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

Nothing arrives in Spike

Check that the automation is turned on and not paused, that the URL is the full https://hooks.spike.sh/<your-token>/push-events, and that the integration has not been archived in Spike.

The incident does not resolve

Check that the resolving automation sends Title and Status, that the status name is one of Done, Complete, Completed, Resolved, Closed, Cancelled or Canceled, and that the incident is still open.

An incident titled "Notion task with no title" opened

The automation did not include the Title property, or the task has no title. Select Title under Properties in the automation.

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