Skip to content
Endless Documentation
Conversations

List conversation messages

GET
/conversations/{conversation_id}/messages

Lists the conversation messages the caller can read. Scoped to the conversation named by conversation_id.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: chats:read

Path Parameters

conversation_id*string
Formatuuid

Query Parameters

view?string

display drops what only the model reads (reasoning signatures, connector tool results, the fields of a research tool's items the app does not show) and marks each trimmed part. Default full.

Value in"full""display"
parts_of?string

Comma-separated message ids: only these messages carry their parts, every other one has []. Empty for none. Omit for every message's parts.

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Response Body

OK

application/json
  1. response
items*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://api.endless.app/conversations/0191e5a2-5f18-7d63-b016-8c4a9e2f7b51/messages'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "conversation_id": "cc71b11a-25cd-4c2d-9950-df2cc38e3407",      "role": "system",      "parts": "string",      "metadata": "string",      "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",      "created_by_id": "string",      "model": "string",      "chat_model_id": "085fd23c-6380-4bcb-90c1-820841aba3a2",      "mod_message_id": "string",      "created_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}