Skip to main content
GET
Python (SDK)

Authorizations

Authorization
string
header
required

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Headers

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Query Parameters

after
string
Example:

"file-abc123"

limit
integer
default:10000
Required range: 1 <= x <= 10000
Example:

100

order
enum<string>
default:desc
Available options:
asc,
desc
Example:

"desc"

purpose
enum<string>
Available options:
assistants,
batch,
fine-tune,
vision,
user_data,
evals
Example:

"assistants"

Response

200 - application/json

OK

object
any
required
data
object[]
required
has_more
boolean
required
first_id
string
last_id
string