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

# Get file metadata

`GET /files/{file_id}`

Retrieves metadata for a single file owned by the requesting workspace.

## Path parameters

- `file_id` string, required

## Query parameters

- `workspace_id` string, uuid — Workspace to scope the request to. Defaults to the caller’s default workspace.

## Response `200`

The file metadata.

- FileMetadata — Metadata describing a stored file.
  - `created_at` string, required
  - `downloadable` boolean, required
  - `filename` string, required
  - `id` string, required
  - `mime_type` string, required
  - `size_bytes` integer, required
  - `type` 'file', required

## Other responses

- `401` — Unauthorized - Authentication required or invalid credentials
- `404` — Not Found - Resource does not exist
- `429` — Too Many Requests - Rate limit exceeded
- `500` — Internal Server Error - Unexpected server error

---

[API](https://skmtc.dev/openrouterteam/apis/openrouter-api.md) · [All operations](https://skmtc.dev/openrouterteam/apis/openrouter-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openrouterteam/openrouter-api/revisions/98bdfab7d8fe/schema)
