curl --request POST \
--url https://api-next.ofauth.com/v2/access/posts \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--data '
{
"text": "",
"mediaItems": [],
"isLockedText": false,
"price": 0,
"previewMediaCount": 0,
"releaseForms": {
"users": [],
"partners": [],
"guests": []
},
"userTags": [],
"isMarkdown": true,
"scheduledDate": "<string>",
"fundRaisingTargetAmount": 11,
"fundRaisingTipsPresets": [
123
],
"expireAfter": 15.5
}
'{
"id": 123,
"canDelete": true,
"canEdit": true,
"mediaCount": 123,
"media": [
{
"id": 123,
"type": "photo",
"convertedToVideo": true,
"canView": true,
"hasError": true,
"createdAt": "<string>",
"isReady": true,
"files": {
"full": {
"url": "<string>",
"width": 123,
"height": 123,
"size": 123,
"sources": [
"<unknown>"
]
},
"thumb": {
"url": "<string>",
"width": 123,
"height": 123,
"size": 123
},
"preview": {
"url": "<string>",
"width": 123,
"height": 123,
"size": 123,
"options": [
"<unknown>"
]
},
"squarePreview": {
"url": "<string>",
"width": 123,
"height": 123,
"size": 123
}
},
"duration": 123,
"releaseForms": [
{
"id": 123,
"name": "<string>",
"partnerSource": "<string>",
"type": "<string>",
"user": {
"view": "<string>",
"id": 123,
"name": "<string>",
"username": "<string>",
"isVerified": true,
"avatar": "<string>",
"avatarThumbs": {
"c50": "<string>",
"c144": "<string>"
},
"ivStatus": "<string>",
"isFromGuest": true
}
}
],
"hasCustomPreview": true,
"videoSources": {
"240": "<string>",
"720": "<string>"
}
}
],
"canViewMedia": true,
"author": {
"id": 123,
"_view": "<string>"
},
"responseType": "<string>",
"postedAt": "<string>",
"postedAtPrecise": "<string>",
"isMarkdownDisabled": true,
"isOpened": true,
"canToggleFavorite": true,
"tipsAmount": "<string>",
"text": "<string>",
"isFavorite": true,
"canComment": true,
"favoritesCount": 123,
"isMediaReady": true,
"rawText": "<string>"
}Create post
curl --request POST \
--url https://api-next.ofauth.com/v2/access/posts \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--data '
{
"text": "",
"mediaItems": [],
"isLockedText": false,
"price": 0,
"previewMediaCount": 0,
"releaseForms": {
"users": [],
"partners": [],
"guests": []
},
"userTags": [],
"isMarkdown": true,
"scheduledDate": "<string>",
"fundRaisingTargetAmount": 11,
"fundRaisingTipsPresets": [
123
],
"expireAfter": 15.5
}
'{
"id": 123,
"canDelete": true,
"canEdit": true,
"mediaCount": 123,
"media": [
{
"id": 123,
"type": "photo",
"convertedToVideo": true,
"canView": true,
"hasError": true,
"createdAt": "<string>",
"isReady": true,
"files": {
"full": {
"url": "<string>",
"width": 123,
"height": 123,
"size": 123,
"sources": [
"<unknown>"
]
},
"thumb": {
"url": "<string>",
"width": 123,
"height": 123,
"size": 123
},
"preview": {
"url": "<string>",
"width": 123,
"height": 123,
"size": 123,
"options": [
"<unknown>"
]
},
"squarePreview": {
"url": "<string>",
"width": 123,
"height": 123,
"size": 123
}
},
"duration": 123,
"releaseForms": [
{
"id": 123,
"name": "<string>",
"partnerSource": "<string>",
"type": "<string>",
"user": {
"view": "<string>",
"id": 123,
"name": "<string>",
"username": "<string>",
"isVerified": true,
"avatar": "<string>",
"avatarThumbs": {
"c50": "<string>",
"c144": "<string>"
},
"ivStatus": "<string>",
"isFromGuest": true
}
}
],
"hasCustomPreview": true,
"videoSources": {
"240": "<string>",
"720": "<string>"
}
}
],
"canViewMedia": true,
"author": {
"id": 123,
"_view": "<string>"
},
"responseType": "<string>",
"postedAt": "<string>",
"postedAtPrecise": "<string>",
"isMarkdownDisabled": true,
"isOpened": true,
"canToggleFavorite": true,
"tipsAmount": "<string>",
"text": "<string>",
"isFavorite": true,
"canComment": true,
"favoritesCount": 123,
"isMediaReady": true,
"rawText": "<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)
3 <= x <= 200x >= 1041 <= x <= 30Successful response
Show child attributes
photo, video, gif, audio Show child attributes
Show child attributes
Show child attributes
Was this page helpful?