Skip to content

Save a campaign draft

scope campaigns:writewrites

Creates a campaign draft, or updates the draft you saved before under the same externalRef.

Everything the agent is told about this tool

Creates a campaign draft, or updates the draft you saved before under the same externalRef. A draft is the brand’s unpublished text: it costs nothing, reserves nothing and is not visible to creators. Send the whole draft each time; it is stored as sent. Needs at least a title, kind (clips, ugc or banner), and budget, rate and maxPayoutPerVideo as {amount, currency} in minor units, and your externalRef if you want to update it later. The answer lists what is still missing before it could be published, and complete once nothing is. Launching is a separate step for a key with campaigns:spend: campaign_quote_issue, then campaign_activate; without that scope the brand publishes in its workspace. Pass dryRun: true to check a draft without keeping it; send an idempotencyKey (idempotency_key_required without one). A campaign that has been published is no longer a draft and is refused with not_a_draft (409). Example: {"externalRef": "spring-2026", "title": "Spring launch", "kind": "clips", "platforms": ["youtube_shorts"], "topics": ["gaming"], "budget": {"amount": 50000, "currency": "EUR"}, "rate": {"amount": 100, "currency": "EUR"}, "maxPayoutPerVideo": {"amount": 20000, "currency": "EUR"}, "idempotencyKey": "save-spring-2026-1"}.

Name Type Required Description
language string no
reviewSlaHours integer no
startsOn string | null no
endsOn string | null no
kind "clips" | "ugc" | "banner" yes
budget object yes
rate object yes
maxPayoutPerVideo object yes
brief string no
materials object[] no
examples object[] no
externalRef string no Your own id for the campaign, unique in this workspace. Saving a draft with the same ref again updates that draft.
title string yes The campaign’s title. Required: a draft with no title cannot be told apart from the blank one a person is typing.
platforms "tiktok" | "youtube_shorts" | "instagram_reels" | "vk_clips" | "x"[] no Platform ids, for example youtube_shorts. Empty until chosen.
topics "gaming" | "memes" | "film_tv" | "reviews" | "true_crime" | "psychology" | "music" | "sports" | "beauty" | "food" | "tech" | "cars" | "fitness" | "travel" | "education" | "finance"[] no Topic ids creators filter by. Empty until chosen.
payableCountries string[] no ISO country codes whose views are paid for; empty pays for any.
contentRules object no What the post must carry: requiredLink, requiredHashtags, mandatoryDisclaimer, minDurationSec, maxDurationSec.
conditions object no What is asked of creators who take the brief; see the fields.
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_draft_save","arguments":{"externalRef":"spring-2026","title":"Spring launch","kind":"clips","platforms":["youtube_shorts"],"topics":["gaming"],"budget":{"amount":50000,"currency":"EUR"},"rate":{"amount":100,"currency":"EUR"},"maxPayoutPerVideo":{"amount":20000,"currency":"EUR"},"idempotencyKey":"save-spring-2026-1"}}'