Accept CPL Campaign
Accepts a waiting campaign placed on your CPL offer (queue_position must be 0). Same rules as the Accept modal on the CPL Campaigns page:
- Trial campaigns need
trial_days, chosen from the campaign’s own list (default list: 1, 3, 7, 14, 30, 90, 180, 360). - OT tracking-link campaigns without a predefined link need
fallback_url: the OnlyFans page a fan lands on,https://onlyfans.com/…, max 255 characters.
Other campaigns ignore both fields. Returns the campaign as one /api/marketer/cpl/campaigns row with status = accepted.
Errors (status: "error", HTTP 200):
404Order not found.409Order is still in the queue (position N): accept it once queue_position is 0: the campaign has not reached you yet. Poll/api/marketer/cpl/campaignsand retry only once itsqueue_positionis0.422Choose a trial period: 1 | 3 | 7 | 14 | 30 | 90 | 180 | 360(the list is the campaign’s own),Fallback URL is required and must start with https://onlyfans.com/, or the platform’s message when the campaign can no longer be accepted.403Access denied: missing / unknown key, or the account is not an active partner.429Rate limit exceeded (30 writes per minute per key, see theRetry-Afterheader).503Service is temporarily unavailable: the platform did not answer in time. The action may still have been applied, check the matching read endpoint before repeating it.
order_id is the cplo_… public id from /api/marketer/cpl/campaigns; the campaign must be in waiting status with queue_position equal to 0.
Queue
A new campaign can wait in a queue behind other partners’ campaigns for the same client. Whilequeue_position is above 0 the campaign is not yours to accept yet: the call answers 409 and nothing changes. Poll the campaign list and accept once queue_position is 0, or react to the campaign notification instead of retrying on a timer.
Conditional fields
Two fields are required only for some campaigns, exactly like the Accept modal:comment is optional and shown to the client.
Errors
Authorizations
API key from the partner cabinet, Tools -> API (https://partners.onlytraffic.com/tools/api): up to 5 named keys per account, each Full or Read-only, ot_partners_ prefix, shown once at creation. Raw value or Bearer form. Read-only keys cannot call the POST endpoints (403 This API key is read-only); expired or revoked keys get 403 Error! Access denied.
Body
CPL campaign public id (cplo_…). Numeric internal ids are rejected with 404.
Trial length in days. Required for trial campaigns only; must be one of the campaign's allowed values.
Required for OT tracking-link campaigns without a predefined link. Must start with https://onlyfans.com/.
255Message to the client, shown on the campaign.