EvoHub Docs Sign in

On-Call API › Microsoft Teams

Preview a Teams action link

Use with AI
View as MarkdownThis page as plain text, for pasting into an AI tool Open in ClaudeAsk Claude questions about this page Open in ChatGPTAsk ChatGPT questions about this page
Connect to Cursor / VS Code / ClaudeSearch and read these docs from your AI tool (MCP server)

MCP server URL

https://docs-dev.evohub.io/mcp

Claude Code

claude mcp add --transport http evohub-docs-docs https://docs-dev.evohub.io/mcp

Claude (claude.ai and Claude Desktop): Settings → Connectors → Add custom connector, and paste the URL above.

Claude Desktop — claude_desktop_config.json

{
  "mcpServers": {
    "evohub-docs-docs": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://docs-dev.evohub.io/mcp"
      ]
    }
  }
}

Cursor — ~/.cursor/mcp.json

{
  "mcpServers": {
    "evohub-docs-docs": {
      "url": "https://docs-dev.evohub.io/mcp"
    }
  }
}

VS Code — .vscode/mcp.json

{
  "servers": {
    "evohub-docs-docs": {
      "type": "http",
      "url": "https://docs-dev.evohub.io/mcp"
    }
  }
}
GET/api/v1/chat/actions/{token}

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

Any one of:

Parameters

Path parameters

  • token string required
    The signed token from the action link on a Microsoft Teams card.

Responses

200

What the link would do.

Content type: application/json

Type: object

  • data ChatActionPreview required
    Show ChatActionPreview properties
    • action string
      One of: ack resolve takeover
    • alert ActionAlert
      Show ActionAlert properties
      • id string
      • title string
      • status AlertStatus
        One of: triggered acknowledged resolved suppressed
      • severity AlertSeverity
        One of: critical high medium low info
    • expires_at string (date-time)
    • via string
  • success boolean required
    Value: true

400

The link is invalid or has expired (INVALID_ACTION_LINK).

Content type: application/json

Type: Error

  • error object required
    • code string required
      Machine-readable code. Branch on this.
    • message string required
      Human-readable explanation.

401

No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).

Content type: application/json

Type: Error

  • error object required
    • code string required
      Machine-readable code. Branch on this.
    • message string required
      Human-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).

Content type: application/json

Type: Error

  • error object required
    • code string required
      Machine-readable code. Branch on this.
    • message string required
      Human-readable explanation.

404

No alert with this id in your organization (NOT_FOUND).

Content type: application/json

Type: Error

  • error object required
    • code string required
      Machine-readable code. Branch on this.
    • message string required
      Human-readable explanation.

429

Too many requests (RATE_LIMITED). Wait Retry-After seconds.

Headers

  • Retry-After integer
    Seconds to wait.

Content type: application/json

Type: Error

  • error object required
    • code string required
      Machine-readable code. Branch on this.
    • message string required
      Human-readable explanation.

500

Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.

Content type: application/json

Type: Error

  • error object required
    • code string required
      Machine-readable code. Branch on this.
    • message string required
      Human-readable explanation.

Example request

curl -X GET 'https://evohub.io/api/v1/chat/actions/string' \
  -H 'Authorization: Bearer <TOKEN>'

Last updated