OverviewProductsPlatformsAPI ReferenceResources
Creator Campaigns

Get creator campaign

GEThttps://zernio.com/api/v1/creator-campaigns/{campaignId}

Returns the campaign with its budget consumption, participant count and submission counts.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

campaignIdstringRequired

Campaign ID.

Responses

Success· the request worked

Errors· the request failed

GET/v1/creator-campaigns/{campaignId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.creatorcampaigns.getCreatorCampaign({  path: {    campaignId: 'campaign_abc123',  },});console.log(data);
{  "campaign": {    "id": "string",    "userId": "string",    "profileId": "string",    "kind": "string",    "name": "string",    "brandName": "string",    "status": "draft",    "type": "cpm",    "currency": "string",    "platforms": [      "tiktok"    ],    "contentRules": "string",    "startsAt": "2019-08-24T14:15:22Z",    "endsAt": "2019-08-24T14:15:22Z",    "trackingDays": 0,    "holdDays": 0,    "maxPostAgeMinutes": 0,    "activatedAt": "2019-08-24T14:15:22Z",    "settlement": "none",    "economics": {      "type": "cpm",      "metric": "views",      "engagementTypes": [        "likes"      ],      "organicViewsOnly": false,      "ratePer1kCents": 1,      "minViewsToEarn": 0,      "maxPayoutPerClipCents": 1,      "budgetCents": 0    },    "caps": {      "maxParticipants": 1,      "maxSubmissionsPerParticipantPerDay": 1,      "maxAccountsPerParticipant": 1,      "maxXReadSpendCents": 1,      "authenticityThreshold": 0    },    "branding": {      "brandName": "string",      "primaryColor": "string",      "logoUrl": "string",      "theme": {}    },    "budgetExhaustedAt": "2019-08-24T14:15:22Z",    "closedAt": "2019-08-24T14:15:22Z",    "payableScannedAt": "2019-08-24T14:15:22Z",    "joinApproval": "auto",    "requireDraftApproval": true,    "storeAccountId": "string",    "sampleProducts": [      {        "productId": "string",        "title": "string",        "imageUrl": "string",        "variants": [          {            "id": "string",            "title": "string"          }        ]      }    ],    "sampleContentDueDays": 1,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "hasOpenInvite": true,    "consumedCents": 0,    "participantCount": 0,    "submissionCounts": {      "received": 0,      "tracking": 0,      "pending_review": 0,      "approved": 0,      "rejected": 0,      "expired": 0,      "withdrawn": 0    },    "payableCents": 0,    "landingUrl": "string",    "codeDiscountPercent": 0,    "autoPayout": {      "enabled": true,      "cadence": "weekly"    },    "pendingParticipantCount": 0,    "draftCounts": {      "submitted": 0,      "approved": 0,      "revision_requested": 0,      "rejected": 0    },    "sampleCounts": {      "pending": 0,      "approved": 0,      "shipped": 0,      "declined": 0    }  }}
OpenAPI specification
Was this page helpful?