v1

latestOpenAPI 3.1.02026-08-04151221521.2 KB
Messages v2

Get Message (v2 - UIMessage format)

Get a single message by ID in UIMessage format.

Returns the transformed UIMessage or null if not found.
get/v2/messages/{message_id}

Path parameters

message_idstring required

Query parameters

task_idstring required

The task ID

The task ID

Response

Successful Response

createdAtstring nullable

ISO timestamp when created

idstring required

Unique message ID

role'system' | 'user' | 'assistant' required

Role of the message author.

Example response

{
  "createdAt": "2024-01-01T00:00:00Z",
  "id": "msg_01ABC",
  "parts": [
    {
      "text": "Hello, how can I help?",
      "type": "text"
    }
  ],
  "role": "assistant"
}