On-Call API › Slack
Get the Slack connection
GET/api/v1/slack
Whether Slack is available on this EvoHub and connected for the organization, the workspace name and the default channel alerts are posted to.
Permission (API-key scope): oncall:escalation:read.
Authorization
bearerAuth(oncall:escalation:read)apiKeyHeader(oncall:escalation:read)
Responses
200
The connection.
dataSlackStatus requiredShow SlackStatus properties
availablebooleanSlack is set up on this EvoHub.connectedbooleanteam_namestringdefault_channel_idstringdefault_channel_namestring
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/slack' \
-H 'Authorization: Bearer <TOKEN>'