Threads

List messages

Lists active messages in a thread, ordered by created_at ASC. Pass last_id as ?after= to paginate.

get/threads/{thread-id}/messages

Request

  • Base URL: https://api.korey.ai/api/v1
  • URL: https://api.korey.ai/api/v1/threads/{thread-id}/messages
  • Auth: HTTP bearer

Path parameters

thread-idstring uuid required

The thread ID.

Query parameters

limitinteger

Maximum number of messages to return. Default: 50, max 200.

afterstring

Return messages after this message ID (for pagination).

Response

Success

first_idstring nullable required

ID of the first message in the page.

last_idstring nullable required

ID of the last message in the page. Pass as ?after= to fetch the next page.

has_moreboolean required

True when there are more messages beyond this page.

limitinteger required

The limit applied to this request.

Changes

No recorded changes to this operation across all 1 revision of this API.