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

Headers

x-model-provider
string

Provider for the file

Accept
enum<string>
default:application/json

Response content type - use application/octet-stream for binary download

Available options:
application/json,
application/octet-stream

Path Parameters

file_id
string
required

File ID

Response

Successful response. Returns file metadata as JSON or raw binary file content. When returning binary content, the Content-Type header indicates the file's MIME type and Content-Disposition header may include the filename.

id
string
type
string
default:file
filename
string
mime_type
string

MIME type of the file

size_bytes
integer

Size of the file in bytes

created_at
string<date-time>
downloadable
boolean