Skip to content

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.

  1. Look. whoami returns sandbox (the space’s clock, traffic and webhook), readiness and guide.nextBestAction.
  2. Get money. sandbox_fund with { "amount": 100000 } adds €1,000 per call (the amounts are in cents). The wallet tops out at €10,000.
  3. Draft, quote, launch. campaign_draft_save, campaign_quote_issue, campaign_activate, exactly as in Launch a campaign. The first launch answers approval_required; the space says yes in the person’s place about 5 seconds later. Call approval_status every 5 seconds until approved.
  4. Get clips. sandbox_simulate_clips with { "campaign": "<slug>", "count": 5, "inflated": 1 } makes made-up creators file clips. inflated ones have views far ahead of their age.
  5. Review. review_queue, clip_detail, clip_decide as in Review clips.
  6. Move time. sandbox_simulate_clips with advanceDays: 10 runs 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.
  7. Look at the result. campaign_report, wallet_statement, events_list.
  8. End. campaign_end shows a preview. Add confirm: true to end it; a key with no limits then asks a person, and the space answers.
  9. Start again. sandbox_reset with { "confirm": true } gives a fresh empty space.
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.

  • No bank, no company: wallet_deposit_* and company_set do not exist here; sandbox_fund replaces them.
  • A frozen (flagged) clip is decided by nobody in the space, so a campaign that has one stays closing after campaign_end until sandbox_reset.
  • campaign_set_state and campaign_terms_update are 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.