Returns a list of messages for a given thread.
/threads/{thread_id}/messages Parameters
path Path Parameters
| Name | Type |
|---|---|
thread_id
required
The ID of the thread the messages belong to. | string |
query Query Parameters
| Name | Type |
|---|---|
limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. | number |
order Sort order by the | "asc" | "desc" |
after A cursor for use in pagination. | string |
before A cursor for use in pagination. | string |
run_id Filter messages by the run ID that generated them. | string |
Responses
OK
object: string;
data:
first_id: string;
last_id: string;
has_more: boolean;
}