v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Anthropic Integration

Get file content (Anthropic format)

Retrieves file content. Returns raw binary file data when Accept header is set to application/octet-stream, or file metadata as JSON when Accept header is set to application/json.

get/anthropic/v1/files/{file_id}/content

Path parameters

file_idstring required

File ID

Headers

x-model-providerstring

Provider for the file

Accept'application/json' | 'application/octet-stream'

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

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.

idstring
typestring
filenamestring
mime_typestring

MIME type of the file

size_bytesinteger

Size of the file in bytes

created_atstring date-time
downloadableboolean