List turns in a chat
GET/v2/chats/:chat_id/turns
List all turns in a chat to see all message and response pairs that make up the dialog.
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
List of turns.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
turns object[]
List of turns.
Possible values: Value must match regular expression trn_.+$
The ID of the turn.
Possible values: Value must match regular expression cht_.+$
The ID of the chat the turn resides in.
The query made to produce this turn.
The response to the query.
Indicates whether the turn is enabled and shown in future turns of the chat.
Specifies when the turn was created.
{
"turns": [
{
"id": "string",
"chat_id": "string",
"query": "How do you turn this widget?",
"answer": "The widget turns counter clockwise.",
"enabled": true,
"created_at": "2024-10-29T01:49:06.236Z"
}
]
}
Permissions do not allow listing turns in 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"
}