---
title: "Get file content (Anthropic format)"
method: GET
path: "/anthropic/v1/files/{file_id}/content"
tags: ["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, required

## Headers

- `x-model-provider` string
- `Accept` 'application/json' | 'application/octet-stream'

## Response `200`

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.

- object
  - `id` string
  - `type` string
  - `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

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
