Get messages for a thread (UIMessage format)
Retrieve messages from a conversation thread in AI SDK v6 UIMessage format, ready for assistant-ui rendering. Requires authentication.
Authorizations
Org API key (scopes the request to its organization) or the shared trusted key (requires X-Organization-Id on every request).
Headers
Organization to scope the request to. Optional when authenticating with an org API key (the org is taken from the key; if sent, it must match). Required when authenticating with the trusted key.
End-user identity for the request; user-scoped data (threads, memory) resolves to {orgId}_{userId}. Required by endpoints that read or write user-scoped resources. A userId query param (or body field, where documented) is accepted as a fallback.
Query Parameters
Thread identifier
Maximum number of messages to return (max 50, default 10)
1 <= x <= 50Number of messages to skip for pagination
x >= 0