GET
/threads/{thread_id}/runsList runs in a thread
Lists runs belonging to a thread. Use order to sort runs by creation time and after or before to navigate through the results. The returned run statuses show whether each run is queued, active, completed, or in another state.
thread_idstringrequired
The ID of the thread whose runs to list.
limitintegeroptional
Maximum number of runs to return, from 1 to 100. Defaults to 20 when omitted.
orderstringoptional
Sort order by creation time: `asc` or `desc`. Defaults to `desc` when omitted.
afterstringoptional
Run ID cursor after which to return results.
beforestringoptional
Run ID cursor before which to return results.
200Returns a page of run objects with the first and last run IDs and a `has_more` flag.
objectstringrequired
dataarray<ARunOnAThread>required
first_idstringrequired
last_idstringrequired
has_morebooleanrequired
429Returned when the request is rejected because a rate limit was exceeded.
errorobjectrequired
Error handling
A 429 is returned when the request exceeds a rate limit. The thread_id path parameter identifies the thread whose runs to list. The limit query parameter must be between 1 and 100, and order must be asc or desc.