---
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. You must provide either `file` or `file_url`.

## Response `200`

Synchronous upload (default)

- 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
  - `note` string

## Other responses

- `202` — Async upload (async=true)

---

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