Sandbox
A sandbox application lets you build and test an integration with no real customer, no real number and no message sent.
These examples use a placeholder address. Your console shows the exact address of the API for your workspace.
What the sandbox does#
- It never calls Meta and never reads real customer data.
GET /connectionsreturns two fixed connections, and every connection has two fixed templates.POST /messagesaccepts a send. The message moves fromqueuedtosenttodeliveredon a timer, and the matchingmessage.status_updatedevents are queued to your sandbox endpoints.- Sandbox webhook endpoints only receive synthetic events: the ones you ask for with
POST /sandbox/eventsor the Send test event button. - The per-minute limits are the same as live. There is no daily send cap.
The fixed data#
Connections
| Id | Status | Number | Name |
|---|---|---|---|
00000000-0000-4000-8000-000000000001 | active | +237 6 00 00 00 01 | Vendrix Sandbox Shop |
00000000-0000-4000-8000-000000000002 | disconnected | +237 6 00 00 00 02 | Vendrix Sandbox Old Number |
Templates (on both connections)
| Name | Language | Category | Variables | Body |
|---|---|---|---|---|
hello_world | en | UTILITY | 0 | Hello from Vendrix Sandbox. |
order_confirmation | fr | UTILITY | 2 | Bonjour {{1}}, votre commande {{2}} est confirmée. |
Both connections have the quality rating GREEN, waba_id sandbox-waba and livemode: false.
How a send behaves#
- A text message is always inside the 24-hour window.
- The status follows the age of the message:
queuedfor the first 2 seconds,sentfrom 2 to 5 seconds,deliveredfrom 5 seconds on. - A
tonumber ending in0000simulates a failure: the status isfailedwith the error coderecipient_unreachable.
Synthetic events#
POST /sandbox/events takes the type of any webhook event except developer.application.created and queues one synthetic event to the active sandbox endpoints of the application that subscribe to it. A live key gets 403 sandbox_only.
curl -X POST "https://api.vendrix.net/v1/sandbox/events" \
-H "Authorization: Bearer $VENDRIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "message.received"
}'A synthetic message.received comes from +237600000099 with the text “Bonjour, c'est un test.” on the first sandbox connection.