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

Notes

Read and write the notes on an incident with an API key — add a note or a resolution note, pin the one that says where the response is right now, and archive one. A note written this way is attributed to the API key and reads as <key name> (API), so an automation never needs a teammate’s credentials.

Add a note to an incident

post

Write a note on an incident.

This endpoint authenticates an organisation, not a person. The note is attributed to the API key that wrote it, and reads on the incident as <key name> (API) — so a note no human wrote never looks as though one did, and an in-house agent can write on an incident without being handed a teammate's credentials.

content is stored and returned verbatim, so Markdown passes through untouched.

Params:

content*: The body of the note. Up to 10000 characters.

isResolution: true records the note as a resolution note — what fixed the incident, rather than a comment on it. Defaults to false.

* Required

No x-team-id is needed: the organisation comes from the API key, and the incident already names its team.

To pin the new note as the incident's current state, follow this with PUT /incidents/{counterId}/notes/{noteId}/pin.

Attachments are deliberately not part of this API — a note written by a non-user identity cannot carry an uploaded file. Attach files from the dashboard.

Authorizations
x-api-keystringRequired

Your organisation's API key. Create one in the Spike dashboard under Settings > API. Sent on every request as the x-api-key header.

Path parameters
counterIdstringRequired

The incident's counterId — the short identifier in the incident's URL, and the counterId field of GET /incidents.

Example: 4821
Header parameters
x-api-keystringRequired

Your API key. Find it in your Spike dashboard under Settings > API.

Body
contentstringRequired

The body of the note, Markdown or plain text. Stored verbatim. Up to 10000 characters.

isResolutionbooleanOptional

Record the note as a resolution note — what fixed the incident, rather than a comment on it.

Default: false
Responses
201

The note was written.

application/json
successbooleanOptional
post/incidents/{counterId}/notes
POST /incidents/{counterId}/notes HTTP/1.1
Host: api.spike.sh
x-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 107

{
  "content": "## Triage\n\nError rate tracks the `v482` deploy at 14:02. Rolling back.",
  "isResolution": false
}
{
  "success": true,
  "note": {
    "_id": "66c1d2e3f4a5b60718293a4c",
    "content": "## Triage\n\nError rate tracks the `v482` deploy at 14:02. Rolling back.",
    "isResolution": false,
    "archived": false,
    "author": {
      "type": "api-key",
      "_id": "65a0b1c2d3e4f50617283940",
      "name": "Internal key (API)"
    },
    "counterId": "4821",
    "incident": "66b0c1d2e3f4a5b607182939",
    "editedAt": null,
    "createdAt": "2026-10-15T10:04:11.482Z",
    "updatedAt": "2026-10-15T10:04:11.482Z"
  }
}

Read an incident's notes

get

Read every note on an incident, oldest first, with the pinned one named separately.

An archived note is included with archived: true and content: null. Archiving hides a note's body from everyone except its author, and an API key is nobody's author, so this never returns an archived body — the same stub a teammate who did not write it sees.

pinnedNote is the _id of the note that answers "where are we right now", or null. One note is pinned at a time.

The path is /notes/list rather than /notes because GET /incidents/{counterId}/notes is the dashboard's own endpoint and returns the dashboard's envelope. It is left alone so nothing already reading it changes under them.

Authorizations
x-api-keystringRequired

Your organisation's API key. Create one in the Spike dashboard under Settings > API. Sent on every request as the x-api-key header.

Path parameters
counterIdstringRequired

The incident's counterId.

Example: 4821
Header parameters
x-api-keystringRequired

Your API key. Find it in your Spike dashboard under Settings > API.

Responses
200

The incident's notes.

application/json
successbooleanOptional
pinnedNotestring · nullableOptional

The _id of the note pinned as the incident's current state, or null when nothing is pinned.

pinnedAtstring · nullableOptional

When the pin was last moved, or null.

get/incidents/{counterId}/notes/list
GET /incidents/{counterId}/notes/list HTTP/1.1
Host: api.spike.sh
x-api-key: text
Accept: */*
{
  "success": true,
  "incident": {
    "_id": "66b0c1d2e3f4a5b607182939",
    "counterId": "4821"
  },
  "pinnedNote": "66c1d2e3f4a5b60718293a4c",
  "pinnedAt": "2026-10-15T10:06:02.119Z",
  "notes": [
    {
      "_id": "66c1d2e3f4a5b60718293a4b",
      "content": "Paging the database on-call.",
      "isResolution": false,
      "archived": false,
      "author": {
        "type": "user",
        "_id": "65a0b1c2d3e4f50617283001",
        "name": "Ada"
      },
      "counterId": "4821",
      "incident": "66b0c1d2e3f4a5b607182939",
      "editedAt": null,
      "createdAt": "2026-10-15T10:01:00.000Z",
      "updatedAt": "2026-10-15T10:01:00.000Z"
    },
    {
      "_id": "66c1d2e3f4a5b60718293a4c",
      "content": "Error rate tracks the `v482` deploy at 14:02. Rolling back.",
      "isResolution": false,
      "archived": false,
      "author": {
        "type": "api-key",
        "_id": "65a0b1c2d3e4f50617283940",
        "name": "Internal key (API)"
      },
      "counterId": "4821",
      "incident": "66b0c1d2e3f4a5b607182939",
      "editedAt": null,
      "createdAt": "2026-10-15T10:04:11.482Z",
      "updatedAt": "2026-10-15T10:04:11.482Z"
    }
  ]
}

Pin a note as the incident's current state

put

Pin a note, so the incident leads with it.

The question everyone joining a live incident asks is "where are we right now", and one note at a time holds the answer. Pinning is therefore a move, not a flag: pinning a second note is how you replace the first, and two notes can never both claim to be the current state.

Pinning is a decision about the incident rather than about the note, so any note on it can be pinned — including notes your responders wrote.

An archived note cannot be pinned (409): its body is hidden from everyone but its author, so it would read as a blank current state.

This endpoint has no body.

Authorizations
x-api-keystringRequired

Your organisation's API key. Create one in the Spike dashboard under Settings > API. Sent on every request as the x-api-key header.

Path parameters
counterIdstringRequired

The incident's counterId.

Example: 4821
noteIdstringRequired

The note's _id, as returned by POST /incidents/{counterId}/notes or GET /incidents/{counterId}/notes/list.

Example: 66c1d2e3f4a5b60718293a4c
Header parameters
x-api-keystringRequired

Your API key. Find it in your Spike dashboard under Settings > API.

Responses
200

The note is the incident's pinned note. Re-pinning the note that is already pinned answers the same way and changes nothing.

application/json
successbooleanOptional
pinnedbooleanOptional
pinnedNotestringOptional

The _id of the note now pinned.

put/incidents/{counterId}/notes/{noteId}/pin
PUT /incidents/{counterId}/notes/{noteId}/pin HTTP/1.1
Host: api.spike.sh
x-api-key: text
Accept: */*
{
  "success": true,
  "pinned": true,
  "pinnedNote": "66c1d2e3f4a5b60718293a4c"
}

Clear the incident's pin

delete

Stop leading the incident with this note. The note itself is untouched — it stays in the timeline where it was written; it just stops being the headline.

noteId is the note you believe holds the pin. If the pin has since moved to a different note, this is refused with a 409 rather than clearing whichever note holds it now — the pin moving out from under you is not the same thing as you asking to unpin something else.

Authorizations
x-api-keystringRequired

Your organisation's API key. Create one in the Spike dashboard under Settings > API. Sent on every request as the x-api-key header.

Path parameters
counterIdstringRequired

The incident's counterId.

Example: 4821
noteIdstringRequired

The note you believe is pinned.

Example: 66c1d2e3f4a5b60718293a4c
Header parameters
x-api-keystringRequired

Your API key. Find it in your Spike dashboard under Settings > API.

Responses
200

The incident has no pinned note.

application/json
successbooleanOptional
pinnedbooleanOptional
pinnedNotenullOptional
delete/incidents/{counterId}/notes/{noteId}/pin
DELETE /incidents/{counterId}/notes/{noteId}/pin HTTP/1.1
Host: api.spike.sh
x-api-key: text
Accept: */*
{
  "success": true,
  "pinned": false,
  "pinnedNote": null
}

Archive a note

delete

Archive a note on an incident.

This is the same reversible soft-hide the dashboard performs, not a delete: the note stays visible to its author, who can restore it from the incident page, and everyone else sees an audit line in its place. Archiving a note that is already archived is harmless.

Archiving the incident's pinned note also clears the pin — a pin pointing at a body nobody can read would show the room a blank current state.

Authorizations
x-api-keystringRequired

Your organisation's API key. Create one in the Spike dashboard under Settings > API. Sent on every request as the x-api-key header.

Path parameters
counterIdstringRequired

The incident's counterId.

Example: 4821
noteIdstringRequired

The note's _id.

Example: 66c1d2e3f4a5b60718293a4c
Header parameters
x-api-keystringRequired

Your API key. Find it in your Spike dashboard under Settings > API.

Responses
200

The note was archived.

application/json
successbooleanOptional
archivedbooleanOptional
delete/incidents/{counterId}/notes/{noteId}
DELETE /incidents/{counterId}/notes/{noteId} HTTP/1.1
Host: api.spike.sh
x-api-key: text
Accept: */*
{
  "success": true,
  "archived": true
}

Last updated