Запустить RevShare-кампанию
Starts a RevShare campaign on a model from the offer catalog (/api/marketer/revshare/offers). Same fields, defaults and rules as the Start modal in the cabinet: campaign limits, cooldowns and per-model source restrictions come back as error messages.
Returns the created campaign as one /api/marketer/revshare/campaigns row.
Errors (status: "error", HTTP 200):
422Please fill in all campaign fieldswhenof_account_idorsourceis missing.4xxPlatform limit / cooldown messages (campaign limit reached, source not allowed for this model, cooldown after a finished campaign) pass through unchanged.429Another campaign start is still running. Wait a few seconds and try again (one campaign start at a time per account).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.
/api/marketer/revshare/offers и передайте её of_account_id.
Поля
Ошибки
available_campaigns_limit в эндпоинте офферов: null означает без ограничений, 0 означает, что ни один запуск не пройдёт.Авторизации
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.
Тело
OnlyFans account numeric id (of_account_id of the offer).
Traffic source: a slug the web Start form offers (for example telegram, instagram, tiktok, reddit, facebook, google, threads; X is twitter) or your own label of at least 2 characters, without URLs. Per-model source restrictions compare these slugs, so use twitter for X, never x.
Campaign type code, the same values the web Start form sends: 1 = By Campaign Link, 2 = Free Trial (only when the offer allows trials).
Trial length in days, trial campaigns (type = 2) only. Same set as the web Start form: 1, 3, 7, 14, 30, 90, capped by the trial length the model allows.
Private note shown on the campaign.