On-Call API › Schedules
Who is on call everywhere
GET/api/v1/on-call-now
Who is on call right now on every schedule of the organization that has someone on call. Schedules with nobody on call are left out.
Permission (API-key scope): oncall:schedule:read.
Authorization
bearerAuth(oncall:schedule:read)apiKeyHeader(oncall:schedule:read)
Responses
200
One entry per schedule with someone on call.
dataarray of OnCallInfo requiredShow OnCallInfo properties
user_idstring requiredschedule_idstring requiredlayer_idstringstarts_atstring (date-time)Start of the current shift.ends_atstring (date-time)End of the current shift.
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/on-call-now' \
-H 'Authorization: Bearer <TOKEN>'