One campaign with its rules and history
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.
bearerAuth analytics:readAuthorizationBearer <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: analytics:read
brandId*stringA brand id from GET /me or GET /creator/brands.
1 <= lengthcampaignId*stringA campaign id from GET /brands/{brandId}/campaigns. A payout cycle id is the same id.
1 <= lengthSuccess.
application/json- response
timeZone*stringpayShown*booleancampaign*rules*|nullrulesVersions*array<>Oldest first. Empty on a cycle from before campaigns that was never changed.
pauses*array<>history*array<>curl -X GET 'https://example.com/api/v1/brands/string/campaigns/string'{ "timeZone": "string", "payShown": true, "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" }, "rules": { "basePay": "string", "instagramBasePay": "string", "tiktokBasePay": "string", "youtubeBasePay": "string", "facebookBasePay": "string", "minimumViewsThreshold": -9007199254740991, "basePayRequirement": "all", "thresholdMode": "all", "thresholdAggregateMode": true, "bonusModel": "tiered", "bonusAggregateMode": true, "bonusTiers": [ { "id": "string", "viewThreshold": -9007199254740991, "bonusAmount": "string" } ], "linearBonusRatePerThousand": "string", "linearBonusCap": "string", "earningWindow": { "untilCampaignEnds": true, "daysAfterPosting": -9007199254740991 }, "setCounts": "any_video", "lateFoundVideos": "ignore", "basePayQueue": true, "paymentRequirements": { "minConnectedAccounts": -9007199254740991, "requiredPlatforms": [ "string" ], "minAudiencePct": -9007199254740991 }, "trialPay": { "mode": "normal", "hold": true, "rates": { "property1": null, "property2": null } } }, "rulesVersions": [ { "id": "string", "inForceFrom": "string", "savedAt": "string", "savedByName": "string", "note": "string", "rules": { "basePay": "string", "instagramBasePay": "string", "tiktokBasePay": "string", "youtubeBasePay": "string", "facebookBasePay": "string", "minimumViewsThreshold": -9007199254740991, "basePayRequirement": "all", "thresholdMode": "all", "thresholdAggregateMode": true, "bonusModel": "tiered", "bonusAggregateMode": true, "bonusTiers": [ { "id": "string", "viewThreshold": -9007199254740991, "bonusAmount": "string" } ], "linearBonusRatePerThousand": "string", "linearBonusCap": "string", "earningWindow": { "untilCampaignEnds": true, "daysAfterPosting": -9007199254740991 }, "setCounts": "any_video", "lateFoundVideos": "ignore", "basePayQueue": true, "paymentRequirements": { "minConnectedAccounts": -9007199254740991, "requiredPlatforms": [ "string" ], "minAudiencePct": -9007199254740991 }, "trialPay": { "mode": "normal", "hold": true, "rates": { "property1": null, "property2": null } } } } ], "pauses": [ { "id": "string", "pausedAt": "string", "resumedAt": "string", "reason": "string" } ], "history": [ { "id": "string", "kind": "string", "at": "string", "actorName": "string", "actingStaffName": "string", "apiCredentialId": "string", "before": { "property1": null, "property2": null }, "after": { "property1": null, "property2": null }, "note": "string" } ]}Create a campaign POST
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.
The brand's campaigns GET
Every campaign of the brand, as on the Campaigns page: the Live or Paused one first, then Scheduled, Drafts, and the past newest first. Deleted campaigns are listed while they can still be restored. Each has its state, its days in the brand's time zone (an open-ended campaign's `endDate` is null), any open pause, and what its state allows. `current` marks the Live or Paused campaign; `postsCount` says whether new posts count right now. With the money permission (**Payout settings, cycles and payouts**) and a full admin, `money` has what was earned and is still owed. A campaign's id is the same id as its payout cycle in the cycle operations.