Skip to main content
Version: 2.0

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

    chat_id stringrequired

    Possible values: Value must match regular expression cht_.+$

    The ID of the chat.

    turn_id stringrequired

    Possible values: Value must match regular expression trn_.+$

    The ID of the turn.

Responses

The turn.

Schema
    id string

    Possible values: Value must match regular expression trn_.+$

    The ID of the turn.

    chat_id string

    Possible values: Value must match regular expression cht_.+$

    The ID of the chat the turn resides in.

    query string

    The query made to produce this turn.

    answer string

    The response to the query.

    enabled boolean

    Indicates whether the turn is enabled and shown in futures turns of the chat.

    created_at date-time

    Specifies when the turn was created.

Loading...