curl --request POST \
--url https://api.ofauth.com/v2/access/promotions \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '
{
"targetAudience": "all_subscribers",
"discount": {
"type": "free_trial",
"durationDays": 15
},
"offer": {
"limit": 0,
"expirationDays": 0
},
"message": ""
}
'[
{
"id": 123,
"message": "<string>",
"rawMessage": "<string>",
"hasRelatedPromo": true,
"price": 123,
"type": "all",
"canClaim": true,
"claimsCount": 1,
"subscribeCounts": 1,
"subscribeDays": 1,
"createdAt": "<string>",
"finishedAt": "<string>",
"isFinished": true
}
]Create one or more promotions using developer-friendly fields for target audience, discount, offer limit, and expiration.
Permission Required: promotions:write
curl --request POST \
--url https://api.ofauth.com/v2/access/promotions \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '
{
"targetAudience": "all_subscribers",
"discount": {
"type": "free_trial",
"durationDays": 15
},
"offer": {
"limit": 0,
"expirationDays": 0
},
"message": ""
}
'[
{
"id": 123,
"message": "<string>",
"rawMessage": "<string>",
"hasRelatedPromo": true,
"price": 123,
"type": "all",
"canClaim": true,
"claimsCount": 1,
"subscribeCounts": 1,
"subscribeDays": 1,
"createdAt": "<string>",
"finishedAt": "<string>",
"isFinished": true
}
]Documentation Index
Fetch the complete documentation index at: https://docs.ofauth.com/llms.txt
Use this file to discover all available pages before exploring further.
Requires a connection via the x-connection-id header.
Audience that can claim the promotion. all_subscribers targets new and expired subscribers; new_subscribers targets only new subscribers; expired_subscribers targets only expired subscribers.
all_subscribers, new_subscribers, expired_subscribers Promotion discount configuration.
Show child attributes
Offer limits and expiration.
Show child attributes
Optional promotion message.
1000Successful response
Promotion ID
Rendered promotion message
Original promotion message
True when OF created paired audience promotions from one request
Discounted subscription price in dollars
Promotion campaign audience returned by OnlyFans.
all, expired Whether the promotion can currently be claimed
Number of claims so far
x >= 0Offer limit, or null for no limit
x >= 0Accepted promotion duration in days. OF can return 0 for first-month discounts.
x >= 0Creation timestamp returned by OF
Finish timestamp, or null for promotions without an explicit end date
Whether the promotion has ended
Was this page helpful?