---
title: "Get file by id"
method: GET
path: "/v1/files/{file_id}"
tags: ["Files"]
---

# Get file by id

`GET /v1/files/{file_id}`

Retrieve metadata for a single file by its unique identifier. Returns the file's name, MIME type, size in bytes, processing status (`pending`, `completed`, or `failed`), author, and creation date.

Files are attachments (images, documents, audio, video) that can be embedded in docs, data entries, or other content. Use this endpoint to check a file's processing status after upload.

## Path parameters

- `file_id` string, required

## Response `200`

200

- object
  - `data` object, required
    - `id` string, required — Unique identifier of the file.
    - `name` string, required — The file's original name.
    - `type` string, nullable, required — The file's MIME type (e.g. 'image/png', 'video/mp4'). Null if unknown.
    - `size` number, nullable, required — Size of the file in bytes. Null if unknown.
    - `status` 'completed' | 'pending' | 'failed', required — Processing status of the file. 'pending' while being processed, 'completed' when ready, or 'failed' if processing encountered an error.
    - `author` union, required — The user who uploaded the file, or null if the author is unknown.
      - object
        - `id` string, required
        - `name` string
      - string, null, nullable
    - `created_at` union, required — ISO 8601 timestamp when the file was created.
      - string
      - string, null, nullable
    - `url` string, nullable, required — Permanent URL pointing at the **Download a file** endpoint. Safe to cache and store — the URL itself never expires, but calling it requires the same authentication as other API endpoints and returns a short-lived presigned URL each time. The endpoint performs its own readiness and access checks.

## Other responses

- `400` — 400
- `401` — 401
- `403` — 403
- `404` — 404
- `422` — 422
- `429` — 429
- `500` — 500

---

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