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.
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.
Your organisation's API key. Create one in the Spike dashboard under Settings > API. Sent on every request as the x-api-key header.
The incident's counterId — the short identifier in the incident's URL, and the counterId field of GET /incidents.
4821Your API key. Find it in your Spike dashboard under Settings > API.
The body of the note, Markdown or plain text. Stored verbatim. Up to 10000 characters.
Record the note as a resolution note — what fixed the incident, rather than a comment on it.
falseThe note was written.
content was missing, blank, not a string, or longer than 10000 characters. Nothing was written.
Unauthorized
No incident with that counterId in your organisation. An incident belonging to another organisation reads the same way.
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 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.
Your organisation's API key. Create one in the Spike dashboard under Settings > API. Sent on every request as the x-api-key header.
The incident's counterId.
4821Your API key. Find it in your Spike dashboard under Settings > API.
The incident's notes.
The _id of the note pinned as the incident's current state, or null when nothing is pinned.
When the pin was last moved, or null.
Unauthorized
No incident with that counterId in your organisation.
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, 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.
Your organisation's API key. Create one in the Spike dashboard under Settings > API. Sent on every request as the x-api-key header.
The incident's counterId.
4821The note's _id, as returned by POST /incidents/{counterId}/notes or GET /incidents/{counterId}/notes/list.
66c1d2e3f4a5b60718293a4cYour API key. Find it in your Spike dashboard under Settings > API.
The note is the incident's pinned note. Re-pinning the note that is already pinned answers the same way and changes nothing.
The _id of the note now pinned.
Unauthorized
No such incident in your organisation, or no such note on that incident.
The note is archived, so it cannot be pinned.
PUT /incidents/{counterId}/notes/{noteId}/pin HTTP/1.1
Host: api.spike.sh
x-api-key: text
Accept: */*
{
"success": true,
"pinned": true,
"pinnedNote": "66c1d2e3f4a5b60718293a4c"
}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.
Your organisation's API key. Create one in the Spike dashboard under Settings > API. Sent on every request as the x-api-key header.
The incident's counterId.
4821The note you believe is pinned.
66c1d2e3f4a5b60718293a4cYour API key. Find it in your Spike dashboard under Settings > API.
The incident has no pinned note.
Unauthorized
No such incident in your organisation.
The pin has moved: the note you named is not the incident's pinned note. Read pinnedNote from GET /incidents/{counterId}/notes/list to see what is.
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 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.
Your organisation's API key. Create one in the Spike dashboard under Settings > API. Sent on every request as the x-api-key header.
The incident's counterId.
4821The note's _id.
66c1d2e3f4a5b60718293a4cYour API key. Find it in your Spike dashboard under Settings > API.
The note was archived.
Unauthorized
No such incident in your organisation, or no such note on that incident.
DELETE /incidents/{counterId}/notes/{noteId} HTTP/1.1
Host: api.spike.sh
x-api-key: text
Accept: */*
{
"success": true,
"archived": true
}Last updated

