Skip to main content
Every endpoint on this page requires either a Clerk-issued JWT (Authorization: Bearer <token>) or an organization API key (x-api-key: pk_…). Anonymous calls return 401 Unauthorized. See Authentication for the full setup.
Returns every utterance — user, assistant, and tool calls if any. This is the source-of-truth for QA reviewers and for re-training extraction prompts.
Don’t poll. Pull-on-event. Receive the session.ended webhook first, persist the summary fields, then fetch the transcript asynchronously and stash it in object storage (S3/GCS) for your reviewer UI.

Code examples

curl "https://api.agntix.ai/api/v1/chat/sessions/$SESSION_ID/messages" \
  -H "x-api-key: $AGNTIX_API_KEY" \
  -H "Accept: application/json"

Sample response

{
  "data": [
    {
      "id": "msg_01j3m_user",
      "content": "Hi, this is Alex.",
      "role": "USER",
      "createdAt": "2026-04-08T05:00:03.120Z"
    },
    {
      "id": "msg_01j3m_assistant",
      "content": "Hello Alex, I'm calling about your order #88291. Is now a good time?",
      "role": "ASSISTANT",
      "createdAt": "2026-04-08T05:00:04.001Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 50,
    "total": 2,
    "totalPages": 1
  }
}