List messages

Lists all messages in a thread.

get/v2/threads/{thread_id}/messages

Request

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

Changes

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