Test everything
After this guide you can run a campaign from an empty wallet to a paid-out end in the test space, with an agent or with curl, without touching real money, creators or the ledger.
A test key (cvk_test_…) works in a separate database. It sees up to 20 tools, including five that exist only there. Every answer carries X-CountViews-Space: test, and its events carry sandbox: true.
- Look.
whoamireturnssandbox(the space’s clock, traffic and webhook),readinessandguide.nextBestAction. - Get money.
sandbox_fundwith{ "amount": 100000 }adds €1,000 per call (the amounts are in cents). The wallet tops out at €10,000. - Draft, quote, launch.
campaign_draft_save,campaign_quote_issue,campaign_activate, exactly as in Launch a campaign. The first launch answersapproval_required; the space says yes in the person’s place about 5 seconds later. Callapproval_statusevery 5 seconds untilapproved. - Get clips.
sandbox_simulate_clipswith{ "campaign": "<slug>", "count": 5, "inflated": 1 }makes made-up creators file clips.inflatedones have views far ahead of their age. - Review.
review_queue,clip_detail,clip_decideas in Review clips. - Move time.
sandbox_simulate_clipswithadvanceDays: 10runs readings, earnings and holds day by day. An inflated clip shows at about its fourth day, so approve it and advance at least 5 days before expecting the checks to catch it. - Look at the result.
campaign_report,wallet_statement,events_list. - End.
campaign_endshows a preview. Addconfirm: trueto end it; a key with no limits then asks a person, and the space answers. - Start again.
sandbox_resetwith{ "confirm": true }gives a fresh empty space.
Let the space fill itself
Section titled “Let the space fill itself”| Tool | What it does |
|---|---|
sandbox_traffic |
Sets standing traffic: clipsPerDay, viewsPerClip, inflatedPercent. Clips then arrive by themselves, one step per call. |
sandbox_webhook_set |
Points the space’s one webhook at your https server (url, optional events); the signing secret comes back once. Deliveries are signed and retried like the real ones. remove: true takes it off. |
The world moves one step at most every 30 seconds, driven by your own calls: a delivery or a new clip leaves within a call or two of its event, not instantly.
What differs from live
Section titled “What differs from live”- No bank, no company:
wallet_deposit_*andcompany_setdo not exist here;sandbox_fundreplaces them. - A frozen (flagged) clip is decided by nobody in the space, so a campaign that has one stays
closingaftercampaign_enduntilsandbox_reset. campaign_set_stateandcampaign_terms_updateare not offered to a test key, to keep its list at 20.- Nothing a test key does appears in the real account, and nothing is delivered from the space to real webhook endpoints.
To go live, make a live key with the scopes the job needs and swap it in. Next: Top up and set up the company.