On-Call API › Microsoft Teams
Get chat availability
GET/api/v1/chat
Whether Microsoft Teams channels are available.
Permission (API-key scope): oncall:escalation:read.
Authorization
bearerAuth(oncall:escalation:read)apiKeyHeader(oncall:escalation:read)
Responses
200
Availability.
dataobject requiredteams_availableboolean
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/chat' \
-H 'Authorization: Bearer <TOKEN>'