Anthropic integration

Get file content (Anthropic format)

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

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.

Path Parameters

file_id*string

File ID

Header Parameters

x-model-provider?string

Provider for the file

Accept?string

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

Default"application/json"
Value in"application/json" | "application/octet-stream"

Response Body

application/json

application/json

curl -X GET "http://localhost:8080/anthropic/v1/files/string/content"
{
  "id": "string",
  "type": "file",
  "filename": "string",
  "mime_type": "string",
  "size_bytes": 0,
  "created_at": "2019-08-24T14:15:22Z",
  "downloadable": true
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string"
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string"
  }
}