Skip to main content

Campaigns

📄️Create a campaign

Creates a campaign for a brand and opens one empty creative (`NOT_GENERATED`) per product; they have no public representation until generated, and generating them happens in the Mocart dashboard. Creating a campaign spends no credits. The `201` carries the campaign the way `GET /campaigns/{id}` returns it, and a `Location` header. `Idempotency-Key` is required: a retry with the same key and body returns the same campaign, never a second one. The account must be under its plan's campaign limit.

📄️Restore a deleted campaign

Restores a deleted campaign and the creatives that were deleted with it, and returns the campaign — the same body `GET /campaigns/{id}` returns. There is no time limit, but the restored campaign counts against the plan’s campaign limit like a new one (`403 LIMIT_EXCEEDED` at the cap). A creative deleted on its own stays deleted, and the campaign’s review links stay revoked. Restoring a campaign that is already live is a no-op `200`; `Idempotency-Key` is required.