Test mode
Every workspace has a test twin. Use a vi_test_… API key and everything works the same — numbers, calls, messages, agents, campaigns, webhooks and the realtime stream — except:
- Nothing reaches the phone network. Calls and messages are simulated; no one is dialed or texted.
- No charges. Usage is recorded but never billed.
- Deterministic outcomes. Simulated calls progress through
call.initiated→call.ringing→call.answered→call.ended, and messages throughmessage.sent→message.delivered, so you can build and test webhook handlers end to end. - Test data stays in test mode. Resources created with a test key are invisible to live keys and vice versa.
ts
const vi = new Kolwire({ apiKey: process.env.KOLWIRE_TEST_KEY });
console.log(vi.testMode); // true for vi_test_ keyspython
client = Kolwire(api_key=os.environ["KOLWIRE_TEST_KEY"])The MCP server works with test keys too — a safe way to let an AI assistant explore the API.
Testing webhook handlers
Sign a payload yourself to unit-test your handler without network access:
ts
import { signPayload } from "@kolwire/sdk";
const body = JSON.stringify({ id: "evt_test", type: "call.ended", workspace_id: "ws_test", created_at: new Date().toISOString(), data: { call_id: "call_1", status: "completed" } });
const header = await signPayload("whsec_test", body);
await fetch("http://localhost:3000/webhooks", { method: "POST", body, headers: { "content-type": "application/json", "kolwire-signature": header } });python
from kolwire.webhooks import sign_payload
header = sign_payload("whsec_test", body)