On-Call API › Schedules
My on-call shifts
GET/api/v1/schedules/my-on-call
For the caller: the schedules they are on call for right now (with who takes
over next), and their next shift within the coming 14 days, or null.
Every schedule in the organization is considered. Meant for a person; with an
organization API key the key is the caller and holds no shifts.
Permission (API-key scope): oncall:schedule:read.
Authorization
bearerAuth(oncall:schedule:read)apiKeyHeader(oncall:schedule:read)
Responses
200
The caller's shifts.
dataMyOnCall requiredShow MyOnCall properties
nowarray of objectschedule_idstringschedule_namestringteam_idstringstarts_atstring (date-time)ends_atstring (date-time)next_user_idstringWho takes over when the shift ends.
nextobject | nullThe caller's next shift within 14 days, or null.- object
schedule_idstringschedule_namestringstarts_atstring (date-time)ends_atstring (date-time)
- null
successboolean required
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
429
Too many requests (RATE_LIMITED). Wait Retry-After seconds.
Retry-AfterintegerSeconds to wait.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
Example request
curl -X GET 'https://evohub.io/api/v1/schedules/my-on-call' \
-H 'Authorization: Bearer <TOKEN>'