When you connect your app to Boom, you want to test with real calls: send a verification code, record an event, watch the journey start. Until now, every API key was a production key. An event from your development environment could start a real journey, and a code could reach any phone.
You can now create a test key. It works just like your production key, from the same backend, but it can't reach your real customers.
How it works
A test key is tied to an environment that isn't production, such as staging. With it:
- You only message your test numbers. The same ones in Settings › Test numbers. A send to any other phone answers
403 recipient_not_test_number, and nothing is sent. - Only journeys published to staging start. A journey published only to production never runs from a test key.
- It never touches a production run. It doesn't cancel or change one, and it doesn't count toward your frequency cap or your Smart Sending cooldown.
Your production keys keep working exactly as before.
What you can test
A test key can call what an integration needs to test the whole flow:
- One-time codes: send and verify, to test numbers only. A code sent with a test key verifies only with a test key, and wrong guesses don't count toward production limits.
- People: create or update a person whose phone is a test number.
- Events: record events for those people so they start your staging journeys. An event for anyone else is accepted only when every journey it would start makes HTTP requests only, with no messages, and it isn't stored.
Every other call answers 403 environment_not_supported. From a test key, only WhatsApp or HTTP-only journeys start: one that sends email or SMS, places calls or gives rewards doesn't.
How to create one
- In Settings › Environments, create a
stagingenvironment. If the list is empty, createproductionfirst: the first environment becomes the default, and a test key can't use it. - In Settings › Test numbers, add your team's phones.
- Publish the journeys you want to test to
staging, with the journey's environment switcher. - In Settings › API keys, click Create key and choose
stagingunder Environment. In the table it shows as staging · test key.
A key's environment can't be changed later. When you go live, create a production key.
Good to know
Test messages are real: they go out from your usual WhatsApp number with your template, they're billed and they show up in the inbox. And a journey published only to staging still starts from your production keys, so publish it to production too before you send it real events.
Test keys are available in every workspace today. The step-by-step guide has an example of each call and what isn't covered yet, such as a different WhatsApp number per environment.