Sample - OpenAI API
GET/assistantsDeprecated

List assistants

Lists assistants available to the authenticated user. Use cursor parameters to move forward or backward through the results, and control result count and ordering with limit and order. This operation is deprecated.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

4 parameters
limitintegeroptional
Maximum number of assistants to return, from 1 to 100. Defaults to 20 when omitted.
Default:20
orderstringoptional
Sort order by creation time: `asc` or `desc`. Defaults to `desc` when omitted.
Allowed:ascdescDefault:desc
afterstringoptional
Pagination cursor identifying the assistant after which to return results.
beforestringoptional
Pagination cursor identifying the assistant before which to return results.

2 status codes
200Returns a list object containing assistant data, the first and last assistant identifiers, and a boolean indicating whether more results are available.
objectstringrequired
dataarray<Assistant>required
first_idstringrequired
last_idstringrequired
has_morebooleanrequired
429Returned when the request was rejected because the rate limit was exceeded.
errorobjectrequired

Error handling

A 429 is returned when the request exceeds the rate limit. limit must be between 1 and 100, and order must be asc or desc when supplied.