Get a turn
GET/v2/chats/:chat_id/turns/:turn_id
Get a specific turn from a chat, which is a message and response pair from the conversation.
Request
Path Parameters
Possible values: Value must match regular expression cht_.+$
The ID of the chat.
Possible values: Value must match regular expression trn_.+$
The ID of the turn.
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
The turn.
- application/json
- Schema
- Example (from schema)
Schema
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.
{
"id": "string",
"chat_id": "string",
"query": "How do you turn this widget?",
"answer": "The widget turns counter clockwise.",
"enabled": true,
"created_at": "2024-12-13T17:52:53.636Z"
}
Permissions do not allow getting the turn.
- 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, chat, or turn 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"
}