Skip to main content
GET
/
anthropic
/
v1
/
files
List files (Anthropic format)
curl --request GET \
  --url http://localhost:8080/anthropic/v1/files
{
  "data": [
    {
      "id": "<string>",
      "type": "file",
      "filename": "<string>",
      "mime_type": "<string>",
      "size_bytes": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "downloadable": true
    }
  ],
  "has_more": true,
  "first_id": "<string>",
  "last_id": "<string>"
}

Headers

x-model-provider
string

Provider to use (defaults to anthropic)

Query Parameters

limit
integer
default:30

Maximum files to return

after_id
string

Cursor for pagination

Response

Successful response

data
object[]
has_more
boolean
first_id
string
last_id
string