OverviewProductsPlatformsAPI ReferenceResources
Creator Campaigns

Approve campaign submission

POSThttps://zernio.com/api/v1/creator-campaigns/{campaignId}/submissions/{submissionId}/approve

Approves a tracking or pending_review submission of an active campaign and fires campaign_submission.approved.

The Zernio dashboard offers Approve only on pending_review (a post that needs a decision) and waits for tracking posts to get there. The API accepts tracking so an integration can approve early.

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

campaignIdstringRequired

Campaign ID.

submissionIdstringRequired

Submission ID.

Headers

Optional
Idempotency-Keystring, max 255

Optional client-generated unique key (e.g. a UUID) that makes retries safe.

  • Same key + same body: replays the original response.
  • Same key + different body: 422.
  • Key still processing: 409.

A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.

On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.

Responses

Success· the request worked

Errors· the request failed

How it behaves

Earnings

  • What the post earned so far moves to owed and is held for the campaign's holdDays.
  • Later earnings post straight to owed.
  • A per-post campaign pays perApprovedPostCents here.

Errors

  • 409: the submission is in any other state.
  • 409 (invalid_resource_state, "This post is already approved in another campaign of yours."): the same post was approved in another of your campaigns, so one post never earns twice.
POST/v1/creator-campaigns/{campaignId}/submissions/{submissionId}/approve
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.creatorcampaigns.approveCampaignSubmission({  path: {    campaignId: 'campaign_abc123',    submissionId: 'submission_abc123',  },});console.log(data);
{  "submission": {    "id": "string",    "campaignId": "string",    "participantId": "string",    "creatorId": "string",    "accountId": "string",    "hasSparkCode": true,    "platform": "tiktok",    "platformPostId": "string",    "platformPostUrl": "string",    "externalPostId": "string",    "trackingWindowId": "string",    "mediaHash": "string",    "submittedAt": "2019-08-24T14:15:22Z",    "postPublishedAt": "2019-08-24T14:15:22Z",    "status": "received",    "rejectReason": "string",    "reviewRound": 0,    "reviewedBy": "string",    "reviewedAt": "2019-08-24T14:15:22Z",    "viewsAtSubmission": 0,    "viewsLatest": 0,    "viewsEligible": 0,    "engagementsLatest": 0,    "viewsPaid": 0,    "paidViewsReadAt": "2019-08-24T14:15:22Z",    "lastAccruedViews": 0,    "accruedCents": 0,    "approvedCents": 0,    "authenticityScore": 0,    "authenticityConfidence": 0,    "flags": [      {        "code": "duplicate_media",        "detail": "string",        "raisedAt": "2019-08-24T14:15:22Z"      }    ],    "draftId": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "creator": {      "id": "string",      "displayName": "string",      "avatarUrl": "string"    },    "authenticity": {      "score": 0,      "confidence": 0,      "reasons": [        null      ]    },    "earnedCents": 0,    "releasedCents": 0,    "paidOutCents": 0,    "window": {      "id": "string",      "endsAt": "2019-08-24T14:15:22Z",      "status": "string"    },    "post": {      "thumbnailUrl": "string",      "caption": "string",      "accountHandle": "string",      "publishedAt": "2019-08-24T14:15:22Z"    }  }}
OpenAPI specification
Was this page helpful?