---
title: "Get a file"
method: GET
path: "/files/{file_id}"
---

# Get a file

`GET /files/{file_id}`

Get the details of a file.

Example cURL request:

```console
curl -s \
  -H "Authorization: Token $REPLICATE_API_TOKEN" \
  https://api.replicate.com/v1/files/cneqzikepnug6xezperrr4z55o
```

## Path parameters

- `file_id` string, required

## Response `200`

Success

- SchemasFileResponse — A file resource
  - `checksums` object, required — A dictionary of checksums for the file keyed by the algorithm name
    - `sha256` string — SHA256 checksum of the file
  - `content_type` string, required — The content / MIME type of the file
  - `created_at` string, date-time, required — When the file was created
  - `expires_at` string, date-time, required — When the file expires
  - `id` string, required — A unique, randomly-generated identifier for the file resource
  - `metadata` object, required — Metadata provided by user when the file was created
  - `size` integer, required — The length of the file in bytes
  - `urls` object, required — A dictionary of URLs associated with the file resource
    - `get` string, uri — A URL to the file resource

## Other responses

- `404` — File not found

---

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