List chats
GET/v2/chats
Retrieve a list of previous chats in the Vectara account.
Request
Query Parameters
Possible values: >= 1
and <= 10000
Default value: 1000
The maximum number of results to return in the list.
Used to retrieve the next page of chats after the limit has been reached.
Header Parameters
Possible values: >= 1
The API will make a best effort to complete the request in the specified seconds or time out.
Possible values: >= 1
The API will make a best effort to complete the request in the specified milliseconds or time out.
Responses
- 200
- 403
- 404
List of chats.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
chats object[]
List of chats.
Possible values: Value must match regular expression cht_.+$
ID of the chat.
The first query of the chat.
The first answer of the chat.
Indicates whether this chat is enabled and can have further turns.
Specifies when this chat was created.
metadata object
The standard metadata in the response of a list operation.
When requesting the next page of this list, this is needed as a query parameter.
{
"chats": [
{
"id": "string",
"first_query": "string",
"first_answer": "string",
"enabled": true,
"created_at": "2024-12-13T17:52:53.622Z"
}
],
"metadata": {
"page_key": "string"
}
}
Permissions do not allow listing chats.
- application/json
- Schema
- Example (from schema)
Schema
The messages describing why the error occurred.
The ID of the request that can be used to help Vectara support debug what went wrong.
{
"messages": [
"Internal server error."
],
"request_id": "string"
}
Corpus not found.
- application/json
- Schema
- Example (from schema)
Schema
The ID cannot be found.
ID of the request that can be used to help Vectara support debug what went wrong.
{
"id": "string",
"messages": [
"string"
],
"request_id": "string"
}