On-Call API › Microsoft Teams
List Teams channels
GET/api/v1/chat/channels
The organization's Microsoft Teams channels. The webhook URL behind each one is stored encrypted and never returned.
Permission (API-key scope): oncall:escalation:read.
Authorization
bearerAuth(oncall:escalation:read)apiKeyHeader(oncall:escalation:read)
Responses
200
The channels.
dataarray of ChatChannel requiredShow ChatChannel properties
idstringorg_idstringkindstringnamestringall_alertsbooleanEvery alert is posted here.created_bystringcreated_atstring (date-time)updated_atstring (date-time)
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/channels' \
-H 'Authorization: Bearer <TOKEN>'