Skip to main content
GET
CSharp (SDK)

Authorizations

Authorization
string
header
required

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

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"

sha256
string

Only files whose content has this SHA-256: find the copies of a file before uploading or attaching it again.

Pattern: ^[0-9a-f]{64}$
Example:

"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"

Response

200 - application/json

OK

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