PUT
/
api
/
{account}
/
posts
/
{post_id}
curl --request PUT \
  --url https://app.onlyfansapi.com/api/{account}/posts/{post_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "Hello!",
  "labelIds": [
    123
  ],
  "mediaFiles": [
    "mfu_abc123",
    "1234567890"
  ],
  "rfTag": [
    123
  ],
  "expireDays": 3,
  "scheduledDate": "2025-01-01T00:00:00.000Z",
  "saveForLater": true,
  "fundRaisingTargetAmount": 30,
  "fundRaisingTipsPresets": [
    5,
    10,
    15
  ],
  "votingType": "poll",
  "votingDue": 3,
  "votingOptions": [
    "First option",
    "Second option"
  ],
  "votingCorrectIndex": 0
}'
""

Authorizations

Authorization
string
header
required

You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.

Path Parameters

account
string
required

The Account ID

post_id
integer
required

The ID of the post

Body

application/json

Response

200 - text/plain

Success

The response is of type string.

Example:

""