Assistants API - Filter Runs By Status

Development with the Assistants API would be a lot easier if we could get a list of runs filtered by status.

For example, if we wanted to check which runs need an action (Status: requires_action), we could get that subset of runs and perform the action. With the current API, we have to fetch all the runs and paginate through them. Over time as runs accumulate, this is a massive waste of resources.

If you know of a way of doing this, perhaps with a parameter that isn’t in the reference documentation or some other way, please let me know.


List runs documentation: