curl --request POST \
--url https://api-next.ofauth.com/v2/access/uploads/init \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--data '
{
"filename": "<string>",
"size": 1,
"contentType": "<string>",
"vaultUpload": {
"userId": "<string>",
"mode": "message"
}
}
'{
"mediaUploadId": "<string>"
}Initialize media upload
curl --request POST \
--url https://api-next.ofauth.com/v2/access/uploads/init \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--data '
{
"filename": "<string>",
"size": 1,
"contentType": "<string>",
"vaultUpload": {
"userId": "<string>",
"mode": "message"
}
}
'{
"mediaUploadId": "<string>"
}Connection ID for managed sessions
OnlyFans user id for direct sessions (optional override)
OnlyFans cookie header for direct sessions (must include auth_id and fp values)
OnlyFans x-bc header for direct sessions (optional override)
User agent to use when proxying requests (required when not using x-connection-id)
1x > 01Successful response
Was this page helpful?