Threads

List threads

Lists visible threads for the authenticated user. Pass last_id as ?after= to paginate.

get/threads

Request

  • Base URL: https://api.korey.ai/api/v1
  • URL: https://api.korey.ai/api/v1/threads
  • Auth: HTTP bearer

Query parameters

ownedboolean

true = only threads you own; false = threads owned by others; omit = all visible threads.

privateboolean

true = private threads only; false = public threads only; omit = both.

archivedboolean

true to include archived threads. Default: false.

qstring

Full-text search query against thread names and messages.

sort_by'updated_at' | 'created_at'

Field to sort by. Default: updated_at.

sort_dir'asc' | 'desc'

Sort direction. Default: desc.

updated_sincestring

ISO 8601 timestamp — return only threads updated after this time.

limitinteger

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

afterstring

Return threads after this thread ID (for pagination).

Response

Success

first_idstring nullable required

ID of the first item in the page. null when the page is empty.

last_idstring nullable required

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

has_moreboolean required

True when there are more results 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.