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": [
"ofapi_media_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
}'
""
Update a posted, queued, or “saved for later” post.
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": [
"ofapi_media_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
}'
""
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
Success
The response is of type string
.
""