Get a single chat

Retrieves a specific chat by its ID, including its full transcript and any pending confirmations.

GET https://chat.betterstack.com/api/v2/chats/{id}

URL parameters

id
required string

Headers

Authorization
required string
200

Response body

{
  "data": {
    "id": "12345",
    "type": "chat",
    "attributes": {
      "team_id": 123456,
      "team_name": "example-team",
      "name": "Checkout 5xx spike",
      "status": "idle",
      "message_count": 2,
      "last_message_at": "2026-09-07T10:32:18.000Z",
      "total_tokens": 15420,
      "created_at": "2026-09-07T10:30:00.000Z",
      "updated_at": "2026-09-07T10:32:18.000Z",
      "messages": [
        {
          "id": 9001,
          "message_type": "user",
          "text": "Why did checkout start returning 5xx at 10:15?",
          "artifacts": [],
          "created_at": "2026-09-07T10:30:00.000Z",
          "user": null
        },
        {
          "id": 9002,
          "message_type": "ai",
          "text": "The 5xx responses come from checkout-api pods restarting after the 10:12 deploy of v2.4.0. The new version fails its readiness probe because PAYMENTS_URL is unset. Set it in the deployment manifest and roll out again.",
          "artifacts": [
            {
              "type": "report",
              "title": "Checkout 5xx investigation",
              "content": "Summary: the deploy of v2.4.0 at 10:12 dropped the PAYMENTS_URL variable from the checkout-api deployment. Pods fail their readiness probe and restart in a loop. Setting the variable and rolling out again restores checkout."
            }
          ],
          "created_at": "2026-09-07T10:32:18.000Z",
          "user": null
        }
      ],
      "pending_confirmations": []
    }
  }
}
401

Response body

{
  "errors": "Invalid authentication"
}
404

Response body

{
  "errors": "Resource with the provided ID was not found"
}

Example cURL

Example
curl --request GET \
  --url https://chat.betterstack.com/api/v2/chats/12345 \
  --header "Authorization: Bearer $TOKEN"