List files (Anthropic format)

Lists uploaded files.

GET
/anthropic/v1/files
AuthorizationBearer <token>

Bearer token authentication. Use your MPilot virtual-key JWT or admin JWT. Virtual keys (prefixed with sk-bf-) can also be passed here.

In: header

Query Parameters

limit?integer

Maximum files to return

Default30
after_id?string

Cursor for pagination

Header Parameters

x-model-provider?string

Provider to use (defaults to anthropic)

Response Body

curl -X GET "https://loading/{AI_GATEWAY_URL}/anthropic/v1/files?limit=30&after_id=string" \  -H "x-model-provider: string"
{
  "data": [
    {
      "id": "string",
      "type": "file",
      "filename": "string",
      "mime_type": "string",
      "size_bytes": 0,
      "created_at": "2019-08-24T14:15:22Z",
      "downloadable": true
    }
  ],
  "has_more": true,
  "first_id": "string",
  "last_id": "string"
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string"
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string"
  }
}
On this page

On this page

No Headings