Skip to main content
GET
/
v1
/
files
List files
curl --request GET \
  --url http://localhost:8080/v1/files
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "object": "<string>",
      "bytes": 123,
      "created_at": 123,
      "filename": "<string>",
      "purpose": "batch",
      "status": "uploaded",
      "status_details": "<string>",
      "expires_at": 123
    }
  ],
  "has_more": true,
  "after": "<string>",
  "extra_fields": {
    "request_type": "<string>",
    "provider": "openai",
    "model_requested": "<string>",
    "model_deployment": "<string>",
    "latency": 123,
    "chunk_index": 123,
    "raw_request": {},
    "raw_response": {},
    "cache_debug": {
      "cache_hit": true,
      "cache_id": "<string>",
      "hit_type": "<string>",
      "provider_used": "<string>",
      "model_used": "<string>",
      "input_tokens": 123,
      "threshold": 123,
      "similarity": 123
    }
  }
}

Query Parameters

x-model-provider
enum<string>
required

Provider to list files for AI model provider identifier

Available options:
openai,
azure,
anthropic,
bedrock,
cohere,
vertex,
mistral,
ollama,
groq,
sgl,
parasail,
perplexity,
cerebras,
gemini,
openrouter,
elevenlabs,
huggingface,
nebius
purpose
enum<string>

Filter by purpose

Available options:
batch,
assistants,
fine-tune,
vision,
batch_output,
user_data,
responses,
evals
limit
integer

Maximum number of files to return

Required range: x >= 1
after
string

Cursor for pagination

order
enum<string>

Sort order (asc/desc)

Available options:
asc,
desc

Response

Successful response

object
string
data
object[]
has_more
boolean
after
string
extra_fields
object

Additional fields included in responses