---
title: "Download file as base64"
method: GET
path: "/v1/projects/{project_id}/files/{file_id}/download/base64"
tags: ["Files"]
---

# Download file as base64

`GET /v1/projects/{project_id}/files/{file_id}/download/base64`

## Request

- Base URL: `https://api.naturali.ai`
- URL: `https://api.naturali.ai/v1/projects/{project_id}/files/{file_id}/download/base64`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.naturali.ai/authorize`, token URL `https://api.naturali.ai/token`, scopes: `mcp:access`)

Returns the file content encoded as base64

## Path parameters

- `file_id` string, required

## Query parameters

- `token` string

## Response `200`

File content as base64

- object
  - `content` string: Base64-encoded file content
  - `filename` string: Original filename
  - `content_type` string: MIME type of the file
  - `size` integer, nullable: File size in bytes

## Other responses

- `401`: Missing or invalid credentials.
- `403`: The credential is scoped to a different project, or the caller's role in the project does not carry this action.
- `404`: File not found

---

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