---
title: "Get File"
method: GET
path: "/api/files/{file_id}"
tags: ["files"]
---

# Get File

`GET /api/files/{file_id}`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/files/{file_id}`
- Auth: HTTP bearer

Get file metadata by ID.

## Path parameters

- `file_id` string, uuid, required

## Response `200`

Successful Response

- FileResponse: Schema for file response.
  - `original_filename` string, required
  - `mime_type` string, required
  - `size_bytes` integer, required
  - `width` integer, nullable
  - `height` integer, nullable
  - `id` string, uuid, required
  - `user_id` string, uuid, required
  - `page_id` string, uuid, nullable
  - `block_id` string, uuid, nullable
  - `filename` string, required
  - `s3_key` string, required
  - `created_at` string, date-time, required
  - `url` string, nullable
  - `has_extracted_text` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
