API Reference · On-call · Schedules
Get on-call information
Query
onCallInformationReturns the shifts in progress right now and the caller's upcoming shifts.
onCallInformation(
organizationId: ID!
publicTeamId: Int
): OnCallInformation!Arguments
Field
Type
Returns
Field
Type
Example
query OnCallInformation($organizationId: ID!, $publicTeamId: Int) {
onCallInformation(organizationId: $organizationId, publicTeamId: $publicTeamId) {
ongoingShifts {
id
startTime
endTime
}
myUpcomingShifts {
id
startTime
endTime
}
}
}Example response
{
"data": {
"onCallInformation": {
"ongoingShifts": [
{
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"startTime": "2026-01-01T12:00:00Z",
"endTime": "2026-01-01T12:00:00Z"
}
],
"myUpcomingShifts": [
{
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"startTime": "2026-01-01T12:00:00Z",
"endTime": "2026-01-01T12:00:00Z"
}
]
}
}
}Related
More in Schedules