Skip to main content
GET
Get thread messages

Authorizations

Authorization
string
header
required

WorkOS JWT token. Obtain via WorkOS AuthKit authentication flow. The token must include organization_id claim for organization-scoped endpoints.

Path Parameters

thread_id
string<uuid>
required

Thread ID to fetch messages for

Query Parameters

limit
integer

Maximum messages to return

Required range: 1 <= x <= 100

Response

OK

messages
null[]
required

List of UIMessage objects from ThreadAgent DO

message_count
integer
required

Total message count in thread

Required range: -9007199254740991 <= x <= 9007199254740991