Bloss Docs

One campaign with its rules and history

Developers
GET
/brands/{brandId}/campaigns/{campaignId}

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.

Authorization

bearerAuth analytics:read
headerAuthorizationBearer <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

Path Parameters

brandId*string

A brand id from GET /me or GET /creator/brands.

Length1 <= length
campaignId*string

A campaign id from GET /brands/{brandId}/campaigns. A payout cycle id is the same id.

Length1 <= length

Response Body

Success.

application/json
  1. response
timeZone*string
payShown*boolean
campaign*
rules*|null
rulesVersions*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"    }  ]}

Was this page helpful?