---
title: "Upload File (Base64)"
method: POST
path: "/v3/file/base64"
tags: ["Files"]
---

# Upload File (Base64)

`POST /v3/file/base64`

Upload a base64 encoded file with optional metadata and path. Supports images, videos, and audio.
If a custom CDN domain is configured and enabled, the response `url` will use the custom domain and `originalUrl` will contain the default storage URL.

## Request body

- HttpRouteV3HandlerFileBase64UploadRequest
  - `base64` string
  - `filename` string
  - `metadata` string
  - `path` string
  - `retentionExempt` boolean

## Response `200`

OK

- ApiFileUploadResponseV3
  - `data` ApiFileUploadResponseDataV3
    - `id` string
    - `originalUrl` string
    - `url` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `413` — Request Entity Too Large
- `500` — Internal Server Error

---

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