Media Upload
Create Signed Upload
Requests a single-part or multipart S3 PUT URL set for uploading a file to the OnlyFans CDN. After this call, the client PUTs file bytes **directly to the returned S3 URLs** — no further calls through this API until [Finish Multipart Upload](/api-reference/media-upload/finish-multipart-upload) (for multipart) or the final convert.onlyfans.com step (for both). Requires permission api_media_upload_signed_create.
https://public-api.buffmetrics.comAuthorization
defaultAuthorizationBearer <token>Send your FansMetric API key as a Bearer token in the Authorization header.
In: header
Path Parameters
account_id*integerOnlyFans numeric account ID.
Request Body
application/jsonkey*stringS3 object key. Format:
upload/{uuid}/{12-digit-number}/{url-encoded-filename}.parts*stringNumber of S3 parts.
1for a single-part upload,> 1for multipart (one part per chunk of ≥ 5 MB except the last).contentType*stringMIME type of the file (
image/jpeg,video/mp4, …).securestringDefault
false. Settruefor protected/DRM uploads.
curl --request POST "https://public-api.buffmetrics.com/v1/acct_XXXXX/upload/signed/create" \
--header "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"key": "upload/8a3d.../529838163914/photo.jpg",
"parts": 1,
"contentType": "image/jpeg",
"secure": false
}'Response
200