Test space
After this page you can run a full campaign, from funding to payout, with nothing real at stake.
What it is
Section titled “What it is”A test key (cvk_test_…) works in a separate database on the same server. Money, creators, clips and events are made up and exist nowhere else. Nothing a test key does reaches the real wallet, campaigns, creators or ledger, and nothing real is visible inside. The platform’s real code runs inside it: pricing, approvals, measurement, earnings, holds and checks for inflated views.
The five test-only tools
Section titled “The five test-only tools”| Tool | Does |
|---|---|
sandbox_fund |
adds free test money, up to €1,000 a call; the wallet ceiling is €10,000 |
sandbox_simulate_clips |
made-up creators file count clips (up to 25), inflated of them with fake views; advanceDays moves the clock |
sandbox_traffic |
standing traffic: clipsPerDay (0 to 48) arrive on their own, viewsPerClip, inflatedPercent |
sandbox_webhook_set |
one https address that receives the space’s events, signed and retried like a real one; the secret comes back once |
sandbox_reset |
starts the space over (needs confirm: true). Test keys keep working |
The space has its own clock. advanceDays (0 to 45 per call) moves it forward day by day, and clips being measured are read, paid and held on the way.
An inflated clip shows at about its 4th day. Approve it, then advance at least 5 days before expecting the checks to catch it; before it has been measured, rejecting it for inflation fails with rejection_unmeasured.
curl https://countviews.com/api/public/v1/call \ -H "Authorization: Bearer $COUNTVIEWS_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"sandbox_simulate_clips","arguments":{"campaign":"spring-2026","count":5,"inflated":1,"advanceDays":0,"idempotencyKey":"simulate-1"}}'{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "sandbox_simulate_clips", "arguments": { "campaign": "spring-2026", "count": 5, "inflated": 1, "advanceDays": 0, "idempotencyKey": "simulate-1" } }}{ "campaign": "spring-2026", "count": 5, "inflated": 1, "advanceDays": 0, "idempotencyKey": "simulate-1"}A full run
Section titled “A full run”whoami, sandbox_fund, campaign_draft_save, campaign_quote_issue, campaign_activate, sandbox_simulate_clips, review_queue, clip_decide, sandbox_simulate_clips { advanceDays: 10 }, campaign_report, wallet_statement, campaign_end.
What differs from live
Section titled “What differs from live”- Money and creators: made up in test, real in live.
- Approvals: the space answers “yes” for the person about 5 seconds after the request; then call
approval_status. Live: a person answers. - A frozen (inflated) clip: nobody decides it in test; a campaign holding one stays
closinguntilsandbox_reset. - Company, bank and deposit tools: not in test (
scope_not_in_test_space). - Tools shown: 20 in test, up to 24 live.
- Webhooks: from test only to the one address you set.
Test spaces put aside by a reset are cleaned out after 30 days.