---
title: "Get a file's details (and a fresh download_url)"
method: GET
path: "/files/{id}"
---

# Get a file's details (and a fresh download_url)

`GET /files/{id}`

## Request

- Base URL: `https://marqpdf.com/v1`
- URL: `https://marqpdf.com/v1/files/{id}`
- Auth: HTTP bearer

## Response `200`

The file

- File
  - `object` 'file', required
  - `id` string, required
  - `name` string, required
  - `size` integer, required
  - `content_type` string, required
  - `pages` integer
  - `created_at` string, date-time, required
  - `expires_at` string, date-time, required
  - `source` 'upload' | 'url' | 'job', required
  - `job` string
  - `download_url` string, uri, required: Works without a key for an hour.

## Other responses

- `401`: Missing or invalid API key
- `404`: Unknown file or operation
- `410`: File expired (kept 24 hours)

---

[API](https://skmtc.dev/marqpdf/apis/marqpdf-api.md) · [All operations](https://skmtc.dev/marqpdf/apis/marqpdf-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marqpdf/apis/marqpdf-api/revisions/9f614f17df46?raw)
