Who Is on-call

GET https://api.squadcast.com/v4/schedules/who-is-oncall?teamId=612cdcf97115ff9a44a10357&time=2023-01-30T06:54:36Z&scheduleID=613&scheduleID=614

This endpoint is used the retrieve the list of all on-call users for a schedule.
Requires access_token as a Bearer {{token}} in the Authorization header with schedule-read scope.

Request Params

KeyDatatypeRequiredDescription
teamIdstring
timestring
scheduleIDnumber
scheduleIDnumber

RESPONSES

status: OK

{"data":[{"schedule":{"created_at":"2023-03-01T10:53:43.369321Z","updated_at":"2023-03-01T10:53:43.369321Z","deleted_at":null,"id":613,"name":"Primary","description":"","org_id":"5d1353590086040012ea889e","team_id":"612cdcf97115ff9a44a10357","time_zone":"Asia/Kolkata","paused":false,"owner_id":"5d1353590086040014ea859d","owner_type":"user","tags":{"tags":[{"key":"Environment","color":"#FFD9C7B3","value":"Prod"}]},"rotations":[{"created_at":"2023-03-01T10:53:43.374112Z","updated_at":"2023-03-01T10:53:43.374112Z","deleted_at":null,"id":1475,"name":"Daily 24 x 7","schedule_id":613,"color":"#FFD9C7B3","start_date":"2023-02-27T05:02:16Z","period":"weekly","custom_period_frequency":null,"custom_period_unit":null,"shift_time_slots":[{"startHour":8,"startMin":0,"duration":720,"dayOfWeek":null}],"change_participants_frequency":1,"change_participants_interval":"rotation","end_date":null,"ends_after_iterations":null,"rotation_participants":[{"rotation_id":1475,"group_index":0,"index_within_group":0,"participant_type":"user","participant_id":"63fde9324d3b101d20d4e694"}],"ShiftTimeSlotsJson":[{"duration":720,"startMin":0,"dayOfWeek":null,"startHour":8}]}]},"oncall":[{"id":"5d1353590086040014ea859d","first_name":"Buzz ","last_name":"Lightyear","email":"raghu@squad.camp","contact":{"dial_code":"+1","phone_number":"1234567890"}}]}]}