> For the complete documentation index, see [llms.txt](https://docs.limio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.limio.com/api/ai-agents-api/conversations.md). Agents can also search and read this documentation through its [MCP server](https://docs.limio.com/~gitbook/mcp).

# Conversations

Read the conversations that customers had with the agents: the messages, the tool calls of the agent, the outcome and the summary. These routes only read, except Refresh Conversation Summary, which makes a model call. A conversation contains personal data that the customer wrote.

## List Conversations

> Returns the conversations of the tenant, newest activity first, one page at a time. Each row gives the agent, the outcome label, the message count and the visitor device and location.\
> \
> To get older conversations, send \`next\_cursor\` from the response as \`before\`. There is no date filter. To read a period, get pages until the \`updated\` time of the last row is before the start of the period.\
> \
> To analyse a conversation, get it with Get Conversation. To find out if a conversation led to an order, read \`metadata.createdBaskets\` and get each basket with Get Object, path type \`baskets\`. In the basket, a \`checkoutLinkAccessed\` event in \`data.journey.events\` means that the customer opened the checkout link. \`status\` \`completed\` and \`data.order.order\_reference\` mean that the customer placed the order.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Conversations","description":"Read the conversations that customers had with the agents: the messages, the tool calls of the agent, the outcome and the summary. These routes only read, except Refresh Conversation Summary, which makes a model call. A conversation contains personal data that the customer wrote."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [Authentication](https://docs.limio.com/api/authentication).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"schemas":{"ConversationList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ConversationListItem"}},"has_more":{"type":"boolean","description":"True when there are older conversations."},"next_cursor":{"type":"string","description":"Send this value as `before` to get the next page."}}},"ConversationListItem":{"type":"object","description":"One conversation in the list. The list gives the outcome label only. To read the messages, the tool calls and the full outcome, get the conversation.","properties":{"id":{"type":"string"},"metadata":{"$ref":"#/components/schemas/ConversationMetadata"},"ownerId":{"type":"string","description":"The visitor who owns the conversation. Send it as `ownerId` to list the conversations of this visitor."},"created":{"type":"string","format":"date-time"},"updated":{"type":"string","format":"date-time","description":"The time of the last message or tool call. The list is sorted by this time."},"messageCount":{"type":"integer","description":"The number of messages from the visitor and the agent. When the agent has a greeting, the greeting is one message. Then 1 means that the visitor wrote nothing."},"toolCallCount":{"type":"integer"},"outcomeLabel":{"type":"string","description":"The label of the outcome. Absent when the agent selected no outcome."},"visitor":{"$ref":"#/components/schemas/ConversationVisitor"},"sentiment":{"type":"string","enum":["positive","neutral","negative"],"description":"From the summary. Absent when the conversation has no summary."},"category":{"type":"string","description":"From the summary. Absent when the conversation has no summary."}}},"ConversationMetadata":{"type":"object","description":"The agent that handled the conversation, and the baskets that it made.","properties":{"agentId":{"type":"string","description":"The ID of the agent that handled the conversation."},"agentVersion":{"type":"string","description":"The agent version that the conversation used. A conversation keeps its version when an admin publishes a new one."},"createdBaskets":{"type":"array","description":"Each checkout basket that the agent made in this conversation, oldest first. To find out if the customer opened the checkout or placed an order, get each basket with Get Object, path type `baskets`.","items":{"type":"string"}},"quotedOfferIds":{"type":"array","description":"The IDs of the offers that the agent looked up in this conversation. The agent can make a checkout only for these offers.","items":{"type":"string"}},"completedBasketId":{"type":"string","description":"The basket that the customer completed just before the conversation started. Present only for a conversation that started on the order-complete page."}}},"ConversationVisitor":{"type":"object","description":"What is known about the visitor. The device and location come from the request that started the conversation. The identity comes from what the visitor wrote in the chat.","properties":{"capturedAt":{"type":"string","format":"date-time"},"deviceType":{"type":"string","enum":["mobile","tablet","desktop","smarttv"]},"geo":{"type":"object","properties":{"city":{"type":"string"},"country":{"type":"string"},"postalCode":{"type":"string"},"timeZone":{"type":"string"}}},"identity":{"type":"object","description":"Who the visitor said they are. The conversation summary fills this in. This is personal data.","properties":{"name":{"type":"string"},"email":{"type":"string"},"organisation":{"type":"string"}}}}},"ChatError":{"type":"object","description":"The error body of the chat API. The fields are at the top level, not under an `error` key.","properties":{"requestId":{"type":"string","description":"The ID of the request that failed."},"code":{"type":"string","description":"A stable error code, for example `validation_error` or `unknown_toolset_type`."},"message":{"type":"string","description":"What went wrong, in words."},"fields":{"type":"object","description":"For a `validation_error`, the paths of the fields that failed and why. Correct these fields and send the request again.","additionalProperties":true}}}},"responses":{"Chat400Response":{"description":"Bad Request: the body, the path or the query failed validation, or the value is not allowed. A `validation_error` names each failed field in `fields`. The API rejects a key that the schema does not list, except inside a `config` object, which accepts any keys.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatError"}}}},"401Response":{"description":"Unauthorized: the request lacks valid authentication credentials. This response is returned by the API gateway before the request reaches the application. Verify your Bearer token is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}},"paths":{"/chat/v1/admin/conversations":{"get":{"tags":["Conversations"],"operationId":"listChatConversations","summary":"List Conversations","description":"Returns the conversations of the tenant, newest activity first, one page at a time. Each row gives the agent, the outcome label, the message count and the visitor device and location.\n\nTo get older conversations, send `next_cursor` from the response as `before`. There is no date filter. To read a period, get pages until the `updated` time of the last row is before the start of the period.\n\nTo analyse a conversation, get it with Get Conversation. To find out if a conversation led to an order, read `metadata.createdBaskets` and get each basket with Get Object, path type `baskets`. In the basket, a `checkoutLinkAccessed` event in `data.journey.events` means that the customer opened the checkout link. `status` `completed` and `data.order.order_reference` mean that the customer placed the order.","parameters":[{"name":"limit","in":"query","description":"The number of conversations on one page.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"before","in":"query","description":"The `next_cursor` value from the previous page.","schema":{"type":"string"}},{"name":"agentId","in":"query","description":"Return only the conversations of this agent.","schema":{"type":"string","maxLength":256}},{"name":"ownerId","in":"query","description":"Return only the conversations of this visitor, as List Visitors gives it. When you send `ownerId`, the API ignores `agentId`.","schema":{"type":"string","maxLength":512}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationList"}}}},"400":{"$ref":"#/components/responses/Chat400Response"},"401":{"$ref":"#/components/responses/401Response"}}}}}}
```

## Count Conversations

> Returns the number of customer conversations with activity in the last \`range\` days, and how many of them have an outcome.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Conversations","description":"Read the conversations that customers had with the agents: the messages, the tool calls of the agent, the outcome and the summary. These routes only read, except Refresh Conversation Summary, which makes a model call. A conversation contains personal data that the customer wrote."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [Authentication](https://docs.limio.com/api/authentication).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"schemas":{"ConversationCount":{"type":"object","properties":{"count":{"type":"integer","description":"The number of customer conversations with activity in the period. A conversation counts when it was updated in the period, not only when it started in the period. Page builder conversations do not count."},"outcomesReached":{"type":"integer","description":"How many of these conversations have an outcome."},"rangeDays":{"type":"integer","description":"The length of the period, in days, up to now."}}},"ChatError":{"type":"object","description":"The error body of the chat API. The fields are at the top level, not under an `error` key.","properties":{"requestId":{"type":"string","description":"The ID of the request that failed."},"code":{"type":"string","description":"A stable error code, for example `validation_error` or `unknown_toolset_type`."},"message":{"type":"string","description":"What went wrong, in words."},"fields":{"type":"object","description":"For a `validation_error`, the paths of the fields that failed and why. Correct these fields and send the request again.","additionalProperties":true}}}},"responses":{"Chat400Response":{"description":"Bad Request: the body, the path or the query failed validation, or the value is not allowed. A `validation_error` names each failed field in `fields`. The API rejects a key that the schema does not list, except inside a `config` object, which accepts any keys.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatError"}}}},"401Response":{"description":"Unauthorized: the request lacks valid authentication credentials. This response is returned by the API gateway before the request reaches the application. Verify your Bearer token is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}},"paths":{"/chat/v1/admin/conversations/count":{"get":{"tags":["Conversations"],"operationId":"countChatConversations","summary":"Count Conversations","description":"Returns the number of customer conversations with activity in the last `range` days, and how many of them have an outcome.","parameters":[{"name":"range","in":"query","description":"The number of days, up to now.","schema":{"type":"integer","minimum":1,"maximum":365,"default":30}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCount"}}}},"400":{"$ref":"#/components/responses/Chat400Response"},"401":{"$ref":"#/components/responses/401Response"}}}}}}
```

## Get Conversation

> Returns one conversation: the transcript of its messages, the tool calls of the agent, the outcome and the summary. The tool calls show which offers the agent looked up, which knowledge it read, which outcome it selected and which checkouts it made, each with the reason that the agent gave.\
> \
> The response contains what the visitor wrote and the outcome inputs. This can include names, email addresses and other personal data. Do not copy it to a place that the user did not ask for.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Conversations","description":"Read the conversations that customers had with the agents: the messages, the tool calls of the agent, the outcome and the summary. These routes only read, except Refresh Conversation Summary, which makes a model call. A conversation contains personal data that the customer wrote."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [Authentication](https://docs.limio.com/api/authentication).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"schemas":{"ConversationDetail":{"type":"object","properties":{"id":{"type":"string"},"metadata":{"$ref":"#/components/schemas/ConversationMetadata"},"ownerId":{"type":"string"},"created":{"type":"string","format":"date-time"},"updated":{"type":"string","format":"date-time"},"channel":{"type":"string","enum":["studio"],"description":"`studio` for a page builder conversation. Absent for a customer conversation."},"outcome":{"$ref":"#/components/schemas/ConversationOutcome"},"summary":{"$ref":"#/components/schemas/ConversationSummary"},"summaryStale":{"type":"boolean","description":"True when the summary does not cover the newest messages, or when there is no summary. To update it, use Refresh Conversation Summary."},"visitor":{"$ref":"#/components/schemas/ConversationVisitor"},"messageCount":{"type":"integer"},"toolCallCount":{"type":"integer"},"messages":{"type":"array","description":"The messages, oldest first. The first 500 only.","items":{"$ref":"#/components/schemas/ConversationMessage"}},"audit":{"type":"array","description":"The tool calls, oldest first. The first 200 only.","items":{"$ref":"#/components/schemas/ConversationAuditRecord"}},"uploads":{"type":"array","description":"The documents that the visitor uploaded, with the result of the virus scan.","items":{"type":"object","properties":{"uploadId":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer"},"status":{"type":"string","enum":["pending","clean","infected"]},"created":{"type":"string","format":"date-time"}}}}}},"ConversationMetadata":{"type":"object","description":"The agent that handled the conversation, and the baskets that it made.","properties":{"agentId":{"type":"string","description":"The ID of the agent that handled the conversation."},"agentVersion":{"type":"string","description":"The agent version that the conversation used. A conversation keeps its version when an admin publishes a new one."},"createdBaskets":{"type":"array","description":"Each checkout basket that the agent made in this conversation, oldest first. To find out if the customer opened the checkout or placed an order, get each basket with Get Object, path type `baskets`.","items":{"type":"string"}},"quotedOfferIds":{"type":"array","description":"The IDs of the offers that the agent looked up in this conversation. The agent can make a checkout only for these offers.","items":{"type":"string"}},"completedBasketId":{"type":"string","description":"The basket that the customer completed just before the conversation started. Present only for a conversation that started on the order-complete page."}}},"ConversationOutcome":{"type":"object","description":"The outcome that the agent selected. A conversation has one outcome at a time. The agent can change it as the conversation continues.","properties":{"outcomeId":{"type":"string","description":"The ID of the outcome in the agent configuration."},"label":{"type":"string"},"selectedAt":{"type":"string","format":"date-time"},"inputs":{"type":"object","description":"The values that the agent captured for the outcome, for example an email address. This is personal data.","additionalProperties":{"type":"string"}},"actionResults":{"type":"array","description":"What each action of the outcome did.","items":{"type":"object","properties":{"type":{"type":"string"},"status":{"type":"string","enum":["ok","error","skipped"],"description":"`skipped` means that the action needed an input that the agent did not capture."},"summary":{"type":"string"}}}}}},"ConversationSummary":{"type":"object","description":"A briefing of the conversation for a salesperson, written by a model. It covers the messages up to `coversUpTo`.","properties":{"text":{"type":"string","description":"The briefing, in Markdown."},"updatedAt":{"type":"string","format":"date-time"},"coversUpTo":{"type":"string","format":"date-time","description":"The time of the newest message that the briefing covers."},"sentiment":{"type":"string","enum":["positive","neutral","negative"]},"category":{"type":"string","description":"What the visitor wanted to do, from a fixed list."},"model":{"type":"string","description":"The model that wrote the briefing."}}},"ConversationVisitor":{"type":"object","description":"What is known about the visitor. The device and location come from the request that started the conversation. The identity comes from what the visitor wrote in the chat.","properties":{"capturedAt":{"type":"string","format":"date-time"},"deviceType":{"type":"string","enum":["mobile","tablet","desktop","smarttv"]},"geo":{"type":"object","properties":{"city":{"type":"string"},"country":{"type":"string"},"postalCode":{"type":"string"},"timeZone":{"type":"string"}}},"identity":{"type":"object","description":"Who the visitor said they are. The conversation summary fills this in. This is personal data.","properties":{"name":{"type":"string"},"email":{"type":"string"},"organisation":{"type":"string"}}}}},"ConversationMessage":{"type":"object","properties":{"id":{"type":"string"},"conversationId":{"type":"string"},"role":{"type":"string","enum":["user","assistant"],"description":"`user` is the visitor. `assistant` is the agent."},"content":{"type":"array","description":"The blocks of the message, in order. The chat widget shows each text block as a separate bubble. An agent message can start with short progress text, for example \"Let me check the current offers.\", before the answer.","items":{"type":"object","properties":{"type":{"type":"string","enum":["text/plain","text/markdown","application/vnd.limio.component+json"]},"data":{"description":"The text of a text block. For a component block, an object with `component` and `props`."}}}},"created":{"type":"string","format":"date-time"},"model":{"type":"string","description":"The model that wrote an agent message."},"usage":{"type":"object","description":"The tokens that the model used for an agent message.","properties":{"input_tokens":{"type":"integer"},"output_tokens":{"type":"integer"},"cache_read_input_tokens":{"type":"integer"},"cache_creation_input_tokens":{"type":"integer"}}},"latencyMs":{"type":"integer","description":"The time to make the agent message, in milliseconds."},"stopReason":{"type":"string","description":"Why the model stopped, for example `end_turn` or `max_tokens`."},"usedFallback":{"type":"boolean","description":"True when the model wrote no text and the visitor got the default reply."}}},"ConversationAuditRecord":{"type":"object","description":"One tool call that the agent made.","properties":{"id":{"type":"string"},"messageId":{"type":"string","description":"The agent message that this tool call belongs to."},"created":{"type":"string","format":"date-time"},"tool":{"type":"string","description":"The name of the tool."},"reasoning":{"type":"string","description":"Why the agent called the tool, in its own words."},"outcomeId":{"type":"string","description":"The outcome that the agent said this call moves forward."},"summary":{"type":"string","description":"What the call did. For `create_checkout`, the basket ID."},"subjectId":{"type":"string","description":"The record that the call used, for example the knowledge document that it read."},"isError":{"type":"boolean"},"durationMs":{"type":"integer"}}},"ChatError":{"type":"object","description":"The error body of the chat API. The fields are at the top level, not under an `error` key.","properties":{"requestId":{"type":"string","description":"The ID of the request that failed."},"code":{"type":"string","description":"A stable error code, for example `validation_error` or `unknown_toolset_type`."},"message":{"type":"string","description":"What went wrong, in words."},"fields":{"type":"object","description":"For a `validation_error`, the paths of the fields that failed and why. Correct these fields and send the request again.","additionalProperties":true}}}},"responses":{"401Response":{"description":"Unauthorized: the request lacks valid authentication credentials. This response is returned by the API gateway before the request reaches the application. Verify your Bearer token is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"Chat404Response":{"description":"Not Found. No record has this ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatError"}}}}}},"paths":{"/chat/v1/admin/conversations/{id}":{"get":{"tags":["Conversations"],"operationId":"getChatConversation","summary":"Get Conversation","description":"Returns one conversation: the transcript of its messages, the tool calls of the agent, the outcome and the summary. The tool calls show which offers the agent looked up, which knowledge it read, which outcome it selected and which checkouts it made, each with the reason that the agent gave.\n\nThe response contains what the visitor wrote and the outcome inputs. This can include names, email addresses and other personal data. Do not copy it to a place that the user did not ask for.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationDetail"}}}},"401":{"$ref":"#/components/responses/401Response"},"404":{"$ref":"#/components/responses/Chat404Response"}}}}}}
```

## Refresh Conversation Summary

> Writes a new summary of the conversation when the stored summary does not cover the newest messages, and returns it. When the summary is current, the API returns it with no change.\
> \
> A new summary is a model call, so it costs money and takes some seconds. Call this only when Get Conversation gives \`summaryStale\` true and the user needs the summary. To analyse many conversations, read the messages instead.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Conversations","description":"Read the conversations that customers had with the agents: the messages, the tool calls of the agent, the outcome and the summary. These routes only read, except Refresh Conversation Summary, which makes a model call. A conversation contains personal data that the customer wrote."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [Authentication](https://docs.limio.com/api/authentication).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"schemas":{"ConversationSummary":{"type":"object","description":"A briefing of the conversation for a salesperson, written by a model. It covers the messages up to `coversUpTo`.","properties":{"text":{"type":"string","description":"The briefing, in Markdown."},"updatedAt":{"type":"string","format":"date-time"},"coversUpTo":{"type":"string","format":"date-time","description":"The time of the newest message that the briefing covers."},"sentiment":{"type":"string","enum":["positive","neutral","negative"]},"category":{"type":"string","description":"What the visitor wanted to do, from a fixed list."},"model":{"type":"string","description":"The model that wrote the briefing."}}},"ChatError":{"type":"object","description":"The error body of the chat API. The fields are at the top level, not under an `error` key.","properties":{"requestId":{"type":"string","description":"The ID of the request that failed."},"code":{"type":"string","description":"A stable error code, for example `validation_error` or `unknown_toolset_type`."},"message":{"type":"string","description":"What went wrong, in words."},"fields":{"type":"object","description":"For a `validation_error`, the paths of the fields that failed and why. Correct these fields and send the request again.","additionalProperties":true}}}},"responses":{"401Response":{"description":"Unauthorized: the request lacks valid authentication credentials. This response is returned by the API gateway before the request reaches the application. Verify your Bearer token is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"Chat404Response":{"description":"Not Found. No record has this ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatError"}}}}}},"paths":{"/chat/v1/admin/conversations/{id}/summary":{"post":{"tags":["Conversations"],"operationId":"refreshChatConversationSummary","summary":"Refresh Conversation Summary","description":"Writes a new summary of the conversation when the stored summary does not cover the newest messages, and returns it. When the summary is current, the API returns it with no change.\n\nA new summary is a model call, so it costs money and takes some seconds. Call this only when Get Conversation gives `summaryStale` true and the user needs the summary. To analyse many conversations, read the messages instead.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"description":"The summary. Null when the conversation has no messages to summarise.","oneOf":[{"$ref":"#/components/schemas/ConversationSummary"},{"type":"null"}]}}}}}},"401":{"$ref":"#/components/responses/401Response"},"404":{"$ref":"#/components/responses/Chat404Response"}}}}}}
```

## List Visitors

> Returns the visitors who had a conversation, newest activity first, one page at a time. One visitor can have many conversations. To read them, send the \`ownerId\` of the visitor to List Conversations. To get older visitors, send \`next\_cursor\` from the response as \`before\`.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Conversations","description":"Read the conversations that customers had with the agents: the messages, the tool calls of the agent, the outcome and the summary. These routes only read, except Refresh Conversation Summary, which makes a model call. A conversation contains personal data that the customer wrote."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [Authentication](https://docs.limio.com/api/authentication).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"schemas":{"VisitorList":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"ownerId":{"type":"string","description":"Send this value as `ownerId` to List Conversations to get the conversations of the visitor."},"created":{"type":"string","format":"date-time"},"updated":{"type":"string","format":"date-time","description":"The time of the last activity in any conversation of the visitor. The list is sorted by this time."},"conversationCount":{"type":"integer"},"lastConversationId":{"type":"string"},"visitor":{"$ref":"#/components/schemas/ConversationVisitor"}}}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","description":"Send this value as `before` to get the next page."}}},"ConversationVisitor":{"type":"object","description":"What is known about the visitor. The device and location come from the request that started the conversation. The identity comes from what the visitor wrote in the chat.","properties":{"capturedAt":{"type":"string","format":"date-time"},"deviceType":{"type":"string","enum":["mobile","tablet","desktop","smarttv"]},"geo":{"type":"object","properties":{"city":{"type":"string"},"country":{"type":"string"},"postalCode":{"type":"string"},"timeZone":{"type":"string"}}},"identity":{"type":"object","description":"Who the visitor said they are. The conversation summary fills this in. This is personal data.","properties":{"name":{"type":"string"},"email":{"type":"string"},"organisation":{"type":"string"}}}}},"ChatError":{"type":"object","description":"The error body of the chat API. The fields are at the top level, not under an `error` key.","properties":{"requestId":{"type":"string","description":"The ID of the request that failed."},"code":{"type":"string","description":"A stable error code, for example `validation_error` or `unknown_toolset_type`."},"message":{"type":"string","description":"What went wrong, in words."},"fields":{"type":"object","description":"For a `validation_error`, the paths of the fields that failed and why. Correct these fields and send the request again.","additionalProperties":true}}}},"responses":{"Chat400Response":{"description":"Bad Request: the body, the path or the query failed validation, or the value is not allowed. A `validation_error` names each failed field in `fields`. The API rejects a key that the schema does not list, except inside a `config` object, which accepts any keys.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatError"}}}},"401Response":{"description":"Unauthorized: the request lacks valid authentication credentials. This response is returned by the API gateway before the request reaches the application. Verify your Bearer token is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}},"paths":{"/chat/v1/admin/visitors":{"get":{"tags":["Conversations"],"operationId":"listChatVisitors","summary":"List Visitors","description":"Returns the visitors who had a conversation, newest activity first, one page at a time. One visitor can have many conversations. To read them, send the `ownerId` of the visitor to List Conversations. To get older visitors, send `next_cursor` from the response as `before`.","parameters":[{"name":"limit","in":"query","description":"The number of visitors on one page.","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"before","in":"query","description":"The `next_cursor` value from the previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitorList"}}}},"400":{"$ref":"#/components/responses/Chat400Response"},"401":{"$ref":"#/components/responses/401Response"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.limio.com/api/ai-agents-api/conversations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
