Incidents

Fetch incidents

get

Get a list of all the incidents for a team.

Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Responses
chevron-right
200

Successful response

application/json
objectOptional
get
/incidents

Get all incident occurrences

get

Fetch all incident occurrences with filtering options for date range, teams, status, service, integration, and pagination.

Query Parameters:

  • start (required): Start date in ISO 8601 format (e.g., 2026-01-01T00:00:00Z)

  • end (required): End date in ISO 8601 format (e.g., 2026-02-01T23:59:59Z)

  • teams: Comma-separated team IDs

  • status: Comma-separated status values (ACK=Acknowledged, RES=Resolved, NACK=Not Acknowledged)

  • service: Comma-separated service IDs

  • integration: Integration ID

  • page: Page number for pagination (default: 1)

  • perPage: Number of results per page (default: 25, max: 100)

Example:

GET /incidents/all-occurrences?start=2026-01-01T00:00:00Z&end=2026-02-01T23:59:59Z&teams=64a1b2c3d4e5f6789012345a&status=ACK,RES&page=1&perPage=25
Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

Query parameters
startstringRequired

Start date in ISO 8601 format

Example: 2026-01-01T00:00:00Z
endstringRequired

End date in ISO 8601 format

Example: 2026-02-01T23:59:59Z
teamsstringOptional

Comma-separated team IDs (optional)

Example: 64a1b2c3d4e5f6789012345a,64a1b2c3d4e5f6789012345b
statusstringOptional

Comma-separated status values (optional)

Example: ACK,RES,NACK
servicestringOptional

Comma-separated service IDs (optional)

Example: 64a1b2c3d4e5f6789012345c,64a1b2c3d4e5f6789012345d
integrationstringOptional

Integration ID (optional)

Example: 64a1b2c3d4e5f6789012345e
pagestringOptional

Page number for pagination

Example: 1
perPagestringOptional

Results per page (default: 25, max: 100)

Example: 25
Responses
chevron-right
200

Successful response

application/json
objectOptional
get
/incidents/all-occurrences

Fetch incident info

get

Get details of an incident. Includes incident title, metadata, priority, severity, and activity log

Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Path parameters
counterIdstringRequired

counterId parameter

Responses
chevron-right
200

Successful response

application/json
objectOptional
get
/incidents/{counterId}

Create an incident

post

Creates an incident and send alerts. Accepts escalation _id, integration token along with priority and severity. You can send additional metadata in details

Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Body
titlestringOptional
metadataobjectOptional
escalationstringOptional
integrationstringOptional
priorityenum · enumOptionalPossible values:
severityenum · enumOptionalPossible values:
Responses
chevron-right
200

Successful response

application/json
objectOptional
post
/incidents/create

Fetch previous occurances of an incident

get

Fetches previous occurances of an incident.

Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Path parameters
counterIdstringRequired

counterId parameter

Responses
chevron-right
200

Successful response

application/json
objectOptional
get
/incidents/{counterId}/get-previous-incidents

Fetch a previous occurance of an incident

get

Fetches a previous occurance of an incident with it's details.

Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Path parameters
counterIdstringRequired

counterId parameter

_idstringRequired

_id parameter

Responses
chevron-right
200

Successful response

application/json
objectOptional
get
/incidents/{counterId}/previous-incident/{_id}

Add responder to an incident

post

Add a responder to an incident. Accepts an array of incident counterIds (116, prim-122) and user ids.

Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Body
idsstring[]Optional
assigneeIdsstring[]Optional
Responses
chevron-right
200

Successful response

application/json
objectOptional
post
/incidents/reassign

Fetch incident context

get

Fetches an overview of an incident

Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Path parameters
counterIdstringRequired

counterId parameter

Responses
chevron-right
200

Successful response

application/json
objectOptional
get
/incidents/{counterId}/incident-context

Fetch incident activity log

get

Get the activity log for an incident

Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Path parameters
counter_idstringRequired

counter_id parameter

Responses
chevron-right
200

Successful response

application/json
objectOptional
get
/incidents/{counter_id}/activity-log

Remove responder from an incident

post

Remove a responder from an incident. Accepts an array of incident counterIds (116, prim-122) and user ids.

Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Body
idsstring[]Optional
assigneeIdsstring[]Optional
Responses
chevron-right
200

Successful response

application/json
objectOptional
post
/incidents/remove-responder

Fetch all the acknowledged incidents

get
Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Responses
chevron-right
200

Successful response

application/json
objectOptional
get
/incidents/acknowledged

Fetch all the triggered incidents

get
Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Responses
chevron-right
200

Successful response

application/json
objectOptional
get
/incidents/triggered

Fetch incidents assigned to a user

get
Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Query parameters
idstringRequired
Responses
chevron-right
200

Successful response

application/json
objectOptional
get
/incidents/assigned-to-user

Fetch incident bar overview

get

Get an overview of the incidents in the team. This includes the total number of incidents, number of open incidents and the number of incidents assigned

Authorizations
x-api-keystringRequired

Your API key. You can find this in your Spike dashboard under Settings > API.

x-team-idstringRequired

Team ID of the team you are making the request to.

Query parameters
idstringRequired
Responses
chevron-right
200

Successful response

application/json
objectOptional
get
/incidents/overview

Last updated