Create a campaign
Save a new campaign as a draft. A draft reserves no dates and nothing counts toward it. It starts from simple starting rules, or from another campaign's rules with copyFromCampaignId; rules changes any of them. Its trial rule is the copied campaign's, or else the brand's default trial; trial says which. A copy also carries the pay the source campaign's groups and creators have only in that campaign (regular and trial), so they're paid the same in the new one until changed; a campaign not copied starts with none. With then it is also scheduled for a future day in the same call; if that is refused, the draft is kept and notScheduled says why. To start it, preview start_now with brand.campaigns.action and dryRun. Full admins only. Answers 201.
bearerAuth campaigns:writeAuthorizationBearer <token>Personal access token. Scopes: account:read, creator:read, creator:earnings, managed:read, coach:read, brand:read, creators:read, videos:read, analytics:read, onboarding:read, onboarding:signatures, engagement:read, support:read, integrations:read, payouts:read, funds:read, billing:read, groups:write, videos:write, onboarding:write, sync:write, payouts:write, campaigns:write.
Scope: campaigns:write
brandId*stringA brand id from GET /me or GET /creator/brands.
1 <= lengthapplication/json- body
name*stringUp to 80 characters.
1 <= length <= 80notes?|nullcopyFromCampaignId?stringStart from this campaign's rules and settings instead of the brand's, along with the pay its groups and creators have only in that campaign.
1 <= lengthrules?The rules to change, in the field names brand.campaigns.get returns. Omitted fields keep their value.
then?Schedule the new draft in the same call. Starting needs a dry run, so create the draft first and start it with brand.campaigns.action.
Success.
application/json- response
campaign*trial*The trial rule the campaign starts with: a copy takes its source campaign's, otherwise the brand's default trial. no_trial: starting the campaign passes creators waiting for one.
notScheduled*|Set when then was refused, or would have started the campaign at once. The draft was saved.
curl -X POST 'https://example.com/api/v1/brands/string/campaigns' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'{ "campaign": { "id": "string", "name": "string", "state": "draft", "current": true, "postsCount": true, "startDate": "string", "endDate": "string", "startAt": "string", "endAt": "string", "openEnded": true, "pausedSince": "string", "pauseReason": "admin", "closedAt": "string", "deletedAt": "string", "restorableUntil": "string", "payEveryoneSame": true, "notes": "string", "actions": [ "edit" ], "money": { "earned": 0, "owed": 0 }, "setsStillEarning": -9007199254740991, "earningUntil": "string", "createdAt": "string" }, "trial": { "mode": "custom", "ruleText": "string" }, "notScheduled": { "reason": "string", "message": "string" }}What a campaign owes each creator GET
Each creator's running balance in a campaign: earned, paid, owed now, and waiting (held by a trial, a cap or the budget), with the sets behind it, set by set. Read-only: paying and marking as paid happen in the app. A cycle from before campaigns is paid from its Payouts page, so `paidHere` is false and the list is empty: read it with the payout cycle operations.
One campaign with its rules and history GET
One campaign: its state, days, money, the rules a set made now is priced by, every saved rules version, its pauses and its history (who did what, newest first, up to 200 entries). Pay (`money`, `rules`, each version's `rules`, and the before and after of a rules change in the history) is shown only with the money permission and a full admin; otherwise it is null and `payShown` is false. Use the newest version's id as `basedOnVersionId` when you change the rules.