#Test mode
Test mode runs the full pipeline (persistence, webhooks, the event feed) without reaching a carrier and without needing an approved 10DLC campaign. Start here.
#Two ways in
- An
sk_test_API key. Every request made with it is sandboxed. Create one in the console, withPOST /v1/keysand"mode": "test", or withmittis login --test. - The magic number
+15005550006. Sending from it is always a test send, even with a live key.
bash
curl https://api.mittis.ai/v1/messages \
-H "Authorization: Bearer $MITTIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "to": "+14155550199", "from": "+15005550006", "body": "Test" }'#What you get
- Messages are stubbed: they are stored, move through delivery states, and fire
message.statuswebhooks, but never reach a handset. - No registered campaign is required to send.
- Webhook deliveries are real and signed, and events appear in
GET /v1/events, somittis listenworks. - Email sent with a test key sends nothing and bills nothing. Toll-free verification submitted with a test key never reaches the carrier.
#Moving to live
Test keys cannot mint live keys. Create a sk_live_ key in the console, buy a number, complete 10DLC registration, and attach the number to the approved campaign.