Skip to main content

GET /v1/files

Returns a paginated list of files.

Authentication

Requires provider authentication headers:

Request

Headers

string
required
The provider to route the request to (e.g., openai, azure-openai)
string
required
Bearer token for the provider API

Query Parameters

string
Filter files by purpose (e.g., fine-tune, assistants, batch)

Response

array
Array of file objects
string
The object type, always “list”

Example

Response Example

Upload File

Upload a new file

Retrieve File

Get file metadata

Delete File

Delete an uploaded file