On Call Hours Per User
GET https://api.squadcast.com/v3/schedules-v2/on-call-user-report/export/csv?owner_id=<string>
This endpoint is used the fetch oncall hours for each user belonging to the team across all schedules within the chosen time.
Requires access_token as a Bearer {{token}} in the Authorization header with team-analytics-read scope.
Note 1: Maximum interval allowed between
start_timeandend_timeis of 30 days.Note 2:
start_timeandend_timeaccepts date in RFC3339 format (2024-05-28T00:00:00+05:30), when passing the timezone offset+05:30, the+symbol needs to be escaped, make sure to URL encode your query parameters before sending the request.Note 3: We only consider the current users in squads, if the users in squads are updated, final on-call hours report may not be accurate.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
owner_id | string | Required | |
end_time | string | Provide date in RFC3339 format. Default value is now | |
start_time | string | Provide date in RFC3339 format. Default value is 30 days from now | |
schedule_id | number | Filter by schedule IDs |