Skip to content

Quote a draft before launching it

scope campaigns:spendwritesmoves money

Prices one of the brand’s complete DRAFT campaigns (named by slug or externalRef) and holds that price as a quoteId for a few minutes: the reserve the launch would take from the wallet, the commission fee, whether the balance covers it (null unless the key holds wallet:read; a rehearsal counts against the hourly spending budget like the real call), and requiresApproval — whether a person must say yes before it is spent.

Everything the agent is told about this tool

Prices one of the brand’s complete DRAFT campaigns (named by slug or externalRef) and holds that price as a quoteId for a few minutes: the reserve the launch would take from the wallet, the commission fee, whether the balance covers it (null unless the key holds wallet:read; a rehearsal counts against the hourly spending budget like the real call), and requiresApproval — whether a person must say yes before it is spent. It is the first of two steps: campaign_activate takes this quoteId and nothing else, so what is spent is what you were quoted. To put more money into a campaign that is ALREADY RUNNING, pass addBudget (minor units) instead of launching: the quote is then finished with campaign_budget_add, not campaign_activate. A quote is single-use and expires; any edit to the draft afterwards makes it stale and you must quote again. A draft that is not ready to publish is refused with draft_incomplete and the list of what is missing; a sum above the platform’s ceiling is over_ceiling. Nothing is reserved by this call. Send an idempotencyKey; dryRun: true prices without holding a quote (and still counts against the hourly spending budget). Example: {"campaign": "spring-2026", "idempotencyKey": "quote-spring-2026-1"}; to add money: {"campaign": "spring-launch", "addBudget": 20000, "idempotencyKey": "topup-spring-launch-1"}.

Name Type Required Description
campaign string yes The campaign’s slug, or the externalRef you gave it.
addBudget integer no To put more money into a campaign that is ALREADY RUNNING instead of launching a draft: the amount in minor units (cents), in the campaign’s currency. Leave it out to quote a draft launch. The quote this returns is used by campaign_budget_add, not by campaign_activate.
idempotencyKey string no Any unique string for this attempt, for example a UUID. Sending the same key and body again returns the first answer instead of writing twice.
dryRun boolean no When true, runs every check and returns what would happen, and keeps nothing: no draft, no log entry, no event.

A write: send an idempotencyKey (any unique string for this one intent). A call with dryRun: true needs none.

curl https://countviews.com/api/public/v1/call \
-H "Authorization: Bearer $COUNTVIEWS_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"campaign_quote_issue","arguments":{"campaign":"spring-2026","idempotencyKey":"quote-spring-2026-1"}}'