v1

latestOpenAPI 3.0.02026-07-13132131.7 KB

List messages

Lists all messages in a thread.

get/v2/threads/{thread_id}/messages

Path parameters

thread_idstring required

Query parameters

afterstring

Use with next_cursor and prev_cursor in the response to paginate through results.

limitnumber

Specifies how many records to return. The default and maximum is 50.

sort'created_at'
direction'asc' | 'desc'

Response

Successful operation

next_cursorstring nullable
prev_cursorstring nullable
total_countnumber required