On Call

Fetch on-calls

get

Get list of on-call schedules 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
/on-calls

Fetch an on-call

get

Get details about a specific on-call including layers, shifts and users

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
oncallIdstringRequired

oncallId parameter

Query parameters
fromstringRequiredExample: 2025-01-24T00:00:00.000Z
Responses
chevron-right
200

Successful response

application/json
objectOptional
get
/on-calls/{oncallId}

Is a user on-call?

get

Check whether a personal is currently oncall or not

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
/oncalls/am-i-on-call

Fetch upcoming shifts from multiple schedules

get

Fetch upcoming shifts from multiple schedules

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
/oncalls/upcoming-shifts

Fetch all currently active on-call shifts

get

Get a list of users who are currently on call

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
/oncalls/all-active-on-call-shifts

Last updated