Get a chat
GET/v2/chats/:chat_id
Get a chat summary to view what started the chat, but not subsequent turns.
Request
Path Parameters
Possible values: Value must match regular expression cht_.+$
The ID of the chat.
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
A chat.
- application/json
- Schema
- Example (from schema)
Schema
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.
{
"id": "string",
"first_query": "string",
"first_answer": "string",
"enabled": true,
"created_at": "2024-10-29T01:49:06.230Z"
}
Permissions do not allow retrieving the chat.
- 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 or chat 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"
}