Get Conversation Messages

Retrieves all messages from a specific conversation.

Endpoint

GET /v1/conversations/{conversation_id}/messages

Parameters

Parameter
Type
Required
Description

conversation_id

string

Yes

Unique identifier of the conversation

Authentication

Requires a valid API key or user authentication token.

Response

Returns an array of message objects in chronological order.

Response Format

[
  {
    "id": "string",
    "conversation_id": "string",
    "role": "string",
    "content": "string",
    "created_at": "datetime"
  }
]

Response Fields

Field
Type
Description

id

string

Unique identifier for the message

conversation_id

string

ID of the conversation this message belongs to

role

string

Role of the message sender ("system", "user", "assistant")

content

string

Text content of the message

created_at

datetime

When the message was created

Example Request

Example Response

Error Responses

Status Code
Description

401

Unauthorized - Invalid or missing API key

403

Forbidden - Not authorized to access this conversation

404

Not Found - Conversation not found

500

Internal Server Error

Notes

  • Messages are returned in chronological order (oldest first)

  • The first message is typically a system message containing the agent's instructions

  • For voice conversations, messages contain transcribed text

  • All participants' messages are included in the conversation history

  • Messages are stored permanently for record-keeping

Last updated