Skip to main content
GET
/
get_messages_for_conversation
Get Messages for Conversation
curl --request GET \
  --url https://vevdoh3hve.execute-api.us-east-1.amazonaws.com/prod/get_messages_for_conversation
{
  "messages": [
    {
      "message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "conversation_created_at": "2023-11-07T05:31:56Z",
      "content": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "message_order": 123,
      "tool_calls": "<string>",
      "documents": "<array>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.chatzy.ai/llms.txt

Use this file to discover all available pages before exploring further.

Returns paginated messages for a given conversation. This endpoint is useful for building a chat interface and fetch past conversation history based on the conversation_id. You must have to save the conversation_id at the start of the conversation and use it in this endpoint to fetch messages for the conversation.

Query Parameters

conversation_id
string<uuid>
required

UUID of the conversation to fetch messages for.

Example:

"0913fa4c-7eac-4377-b801-58f0c1a151e6"

limit
integer
default:20

Maximum number of messages to return (default: 20, max: 100).

Required range: 1 <= x <= 100
offset
integer
default:0

Number of messages to skip (for pagination, default: 0).

Required range: x >= 0
access_token
string

Optional access token for iframe-authenticated conversations.

Response

200 - application/json

Paginated messages of the conversation.

messages
object[]
required