Conversations
3 endpoints
/v1/conversationsList conversations
Returns a paginated list of the account's conversations (chat threads)
(cursor v2). Stable sort: created_.
A conversation groups a visitor's messages with an agent (AI or human) under the calling account. Threads are created and messages are sent from the front end / chat SDK — the public API is read-only.
Filters
?agent_— exact match on the AI agent replying in the thread.slug ?agent_— exact match on the thread's specific AI agent (an account can have several chatbots).identity_ id ?source— exact match on the thread source (URL, funnel label,widget, etc.).
conversations:readQuery parameters
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | null | optional | Opaque pagination cursor: pass the pagination. value from the previous page. |
limit | integer | optional | Maximum number of results per page (default 20, max 100). Above that → 400 invalid_request. |
created_after | string | optional | Filter: only resources created after this date (inclusive). |
created_before | string | optional | Filter: only resources created before this date (inclusive). |
agent_slug | string | optional | AI agent slug — exact match on the threads this agent serves. |
agent_identity_id | string | optional | Identifier of the specific AI agent — exact match on the threads it serves. |
source | string | optional | Thread source — exact match (URL, funnel label, widget, etc.). |
Responses
| Status | Description |
|---|---|
200 | Paginated list of conversations. |
400 | Invalid request.
|
401 | The API key is missing, unknown or expired.
|
403 | Authorization refused.
|
429 | Rate limit reached.
|
500 | Unexpected server error. Always include the
|
501 | Test keys (
|
503 | A service the request depends on didn't respond (reading the key, the
account or the plan). The same request will go through once it's back:
retry after the
|
Example request
curl -X GET 'https://api.capturia.io/v1/conversations' \
-H 'Authorization: Bearer cap_live_<your-key>' \
-H 'Content-Type: application/json'/v1/conversations/{id}Retrieve a conversation
Returns a conversation's metadata by its ID. To
retrieve the individual messages, use
GET /.
If the conversation belongs to another account, doesn't exist, or if
the ID is not a UUID, returns 404 not_
(details. is conversation) — tenant isolation hides
the existence of conversations outside the calling account.
conversations:readPath parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | required | UUID of the resource. |
Responses
| Status | Description |
|---|---|
200 | Conversation found. |
401 | The API key is missing, unknown or expired.
|
403 | Authorization refused.
|
404 | Resource not found.
|
429 | Rate limit reached.
|
500 | Unexpected server error. Always include the
|
501 | Test keys (
|
503 | A service the request depends on didn't respond (reading the key, the
account or the plan). The same request will go through once it's back:
retry after the
|
Example request
curl -X GET 'https://api.capturia.io/v1/conversations/{id}' \
-H 'Authorization: Bearer cap_live_<your-key>' \
-H 'Content-Type: application/json'/v1/conversations/{id}/messagesList a conversation's messages
Returns a paginated list of a conversation's messages in
chronological reading order (created_),
with an id tiebreaker to prevent duplicates or skipped rows between
two pages when several messages share the same millisecond.
This sort direction (ASC) is the reverse of the other v2 list endpoints (DESC) — a conversation reads naturally in the chronological order of the exchange.
Each message tells you who wrote it (author_): the visitor,
the AI agent, or a sales rep on the team who replied from the Inbox
(author_ then holds their first name).
If the conversation belongs to another account, doesn't exist, or if
the ID is not a UUID, returns 404 not_
(details. is conversation).
conversations:readPath parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | required | UUID of the resource. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | null | optional | Opaque pagination cursor: pass the pagination. value from the previous page. |
limit | integer | optional | Maximum number of results per page (default 20, max 100). Above that → 400 invalid_request. |
Responses
| Status | Description |
|---|---|
200 | Paginated list of messages (chronological order). |
400 | Invalid request.
|
401 | The API key is missing, unknown or expired.
|
403 | Authorization refused.
|
404 | Resource not found.
|
429 | Rate limit reached.
|
500 | Unexpected server error. Always include the
|
501 | Test keys (
|
503 | A service the request depends on didn't respond (reading the key, the
account or the plan). The same request will go through once it's back:
retry after the
|
Example request
curl -X GET 'https://api.capturia.io/v1/conversations/{id}/messages' \
-H 'Authorization: Bearer cap_live_<your-key>' \
-H 'Content-Type: application/json'