On-Call API › Microsoft Teams
Preview a Teams action link
The buttons on an alert card posted to Teams are signed links. This reads
one: which action it would take (ack, resolve or takeover), on which
alert, and until when the link works. It changes nothing.
Permission (API-key scope): oncall:alert:read.
Authorization
bearerAuth(oncall:alert:read)apiKeyHeader(oncall:alert:read)
Parameters
Path parameters
tokenstring requiredThe signed token from the action link on a Microsoft Teams card.
Responses
200
What the link would do.
dataChatActionPreview requiredShow ChatActionPreview properties
actionstringalertActionAlertShow ActionAlert properties
idstringtitlestringstatusAlertStatusseverityAlertSeverity
expires_atstring (date-time)viastring
successboolean required
400
The link is invalid or has expired (INVALID_ACTION_LINK).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
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 caller lacks the permission (FORBIDDEN), the link belongs to another organization (WRONG_ORG), or the alert belongs to a team the caller is not in and is not assigned to them (NOT_IN_TEAM).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
404
No alert with this id in your organization (NOT_FOUND).
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/actions/string' \
-H 'Authorization: Bearer <TOKEN>'