Skip to main content
Version: 2.0

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

    chat_id stringrequired

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

    The ID of the chat.

Header Parameters

    Request-Timeout integer

    Possible values: >= 1

    The API will make a best effort to complete the request in the specified seconds or time out.

    Request-Timeout-Millis integer

    Possible values: >= 1

    The API will make a best effort to complete the request in the specified milliseconds or time out.

Responses

List of turns.

Schema
    turns object[]

    List of turns.

  • Array [
  • 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 future turns of the chat.

    created_at date-time

    Specifies when the turn was created.

  • ]
Loading...