Skip to main content

Get Chat Messages

GET 

/api/chat/messages

This endpoint retrieves messages from a specified conversation within a workspace. The request must include a valid API key and user ID.

Request

Query Parameters

    workspaceId stringrequired

    ID of the workspace whose conversations are being retrieved.

    conversationId stringrequired

    ID of the conversation whose messages are being retrieved.

Header Parameters

    x-api-key stringrequired

    API key to authorize the request.

    userId stringrequired

    ID of the user making the request.

Responses

Successfully retrieved chat messages.

Schema

    data

    object[]

  • Array [

  • query string

    The query from the conversation.

    type string

    The type of the message (query or response).

    queryresponseid string

    The ID of the query response.

    createdat date-time

    The timestamp when the message was created.

    name string

    The name of the conversation.

    ownerid string

    The ID of the owner of the conversation.

    followUps

    object[]

  • Array [

  • id string

    The ID of the follow-up question.

    text string

    The text of the follow-up question.

  • ]

  • sourceSnips

    object[]

  • Array [

  • id string

    The ID of the source snippet.

    text string

    The text of the source snippet.

  • ]

  • ]

Loading...