---
title: "Upload media to the OnlyFans CDN"
method: POST
path: "/api/{account}/media/upload"
tags: ["Media"]
---

# Upload media to the OnlyFans CDN

`POST /api/{account}/media/upload`

The response can be used **only once** to manually include media in a post or message. This endpoint does not upload media to the Vault.

## Request body

- object
  - `file` string, required — The file to upload.
  - `type` 'default' | 'avatar' | 'header' — Set to `avatar` if this file will be used as a profile picture, `header` for a profile banner, or keep empty if this file will be for anything else.

## Response `200`

- object
  - `prefixed_id` string
  - `file_name` string
  - `processId` string
  - `host` string
  - `sourceUrl` string
  - `extra` string
  - `additional` object
    - `user` string
  - `thumbs` object[]
    - `id` integer
    - `url` string

---

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