Get a conversation

GET/v2/agents/{agentId}/conversations/{conversationId}

Fetch one conversation of an agent by its ID to read its channel, status, user and message count.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

Returns one conversation with its channel, status and counters. Call it to check whether a conversation is still open, or after a voice session to see how the call ended. The text of the conversation is read with a separate call.

Request

GET /v2/agents/{agentId}/conversations/{conversationId}

Path parameters:

Name Type Required Description
agentId string Yes The ID of the agent, starting with agt_.
conversationId string Yes The ID of the conversation, starting with conv_.

The call has no query parameters and no body. To read what was said, call List conversation messages with the same conversationId.

Example request

curl https://api.askocto.co/v2/agents/agt_8f3k2m/conversations/conv_5n2p8w \
  -H "Authorization: Bearer $OCTO_API_KEY"
const response = await fetch(
  "https://api.askocto.co/v2/agents/agt_8f3k2m/conversations/conv_5n2p8w",
  { headers: { Authorization: `Bearer ${process.env.OCTO_API_KEY}` } },
)

const conversation = await response.json()
console.log(conversation.status, conversation.messageCount)

Example response

A successful call returns 200 OK.

{
  "id": "conv_5n2p8w",
  "agentId": "agt_8f3k2m",
  "userId": "usr_3b6t0z",
  "channel": "widget",
  "status": "handoff",
  "messageCount": 6,
  "createdAt": "2026-03-20T13:58:00Z",
  "updatedAt": "2026-03-20T14:05:00Z"
}

Response fields

Name Type Description
id string The conversation ID, starting with conv_.
agentId string The agent that handled it.
userId string or null Your ID for the person, if you sent one.
channel string Where the conversation took place, such as widget, email, voice or whatsapp.
status string open, resolved or handoff. A handoff conversation went to your team in the Helpdesk.
messageCount integer The number of messages so far.
createdAt, updatedAt string ISO 8601 UTC times.

Change the status with Update conversation status.

Errors

Status Code When
401 unauthorized The API key is missing, malformed or deleted.
404 not_found The agent or the conversation does not exist in your workspace.
429 rate_limited Too many requests. Wait for the number of seconds in the Retry-After header.

See Error handling for the error object.

Something unclear or missing? Tell us and we will fix the page.