Skip to main content
POST
Start a RevShare campaign
То же, что Start на RevShare-оффере в кабинете. Выберите модель из /api/marketer/revshare/offers и передайте её of_account_id.

Поля

Ошибки

Перед запуском проверьте available_campaigns_limit в эндпоинте офферов: null означает без ограничений, 0 означает, что ни один запуск не пройдёт.

Авторизации

Authorization
string
header
обязательно

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.

Тело

application/json
of_account_id
integer
обязательно

OnlyFans account numeric id (of_account_id of the offer).

source
string
обязательно

Traffic source slug, the same values the web Start form offers (for example telegram, instagram, tiktok, reddit, x).

type
string
по умолчанию:1

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_days
integer
по умолчанию:7

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.

note
string

Private note shown on the campaign.

Ответ

200 - application/json

Success (check status; errors are also HTTP 200)

status
enum<string>
Доступные опции:
success
data
object