Test webhooks and actions with the sandbox
Create a private fake store that receives your webhooks, checks their signature and answers your API actions, with nothing to install.
- Plans
- All plans
- Roles
- Owner, Admin
- In the admin
- Integrations › Developers › Test sandbox
The sandbox is a fake test store that Botello creates for your workspace. It has two jobs: receive your webhooks and check their signature, and act as an API for order status and appointment booking for your actions. You see everything arrive in the admin, without any external tool and without writing a line of code. Allow about fifteen minutes to try everything.
Discovering webhooks and API actions before connecting your own system, showing the process to a colleague, checking that a webhook is correctly signed.
Before you start
- Developer tools are enabled by the Botello team for your workspace. If not, write to support@botello.ch.
- You are an Owner or Admin of the workspace.
- Preferably use a test workspace, not a customer’s production workspace.
- For steps 3 and 4, your assistant answers with the new agent (otherwise, a warning banner is shown in Custom API actions).
Create the sandbox
Open the Developers page
Open Integrations, then on the Developers card, click Configure.
Create the sandbox
Under Test sandbox, click Create my sandbox.
You see Your test addresses:
- the webhook receiving address, in the form
https://api.botello.ch/api/sandbox/<token>/hook; - the fake order-status API,
…/orders/1001; - the fake API’s key, which starts with
sbx_(Bearer token); - the Requests received list, empty for now.

1. Receive a signed webhook
Create a webhook pointing to the sandbox
Copy the webhook receiving address. Open IntegrationsWebhooks, click Add a webhook, paste the address into Destination URL (https), then click Create. The whsec_… secret is displayed: you do not need it for this test.
Send a test
In the webhook’s menu, click Send a test event.
Read the verdict
Go back to IntegrationsDevelopers. Under Requests received (updated automatically), a Webhook row appears with the Valid signature badge. Click Show to read the headers and content received.
The sandbox checks both signature formats (Botello and Standard Webhooks) against the secrets of all the webhooks in your workspace. Possible verdicts:
| Verdict | Meaning |
|---|---|
| Valid signature | Signed with the current secret of one of your webhooks |
| Valid (previous secret) | Signed with the previous secret, during a rotation |
| Invalid signature | The content was modified, or no secret in the workspace matches |
| Not signed | No signature header |
| Too old | The timestamp is more than 5 minutes old: a replayed request is rejected |
What to try next:
- Rotation without downtime: Regenerate secret, then a new test. The verdict stays Valid signature, and the line “Rotation in progress” appears on the webhook.
- Without personal data: Edit, untick Include personal data. In subsequent deliveries, names, e-mails, phone numbers and texts are
null. - Channel filter: tick only WhatsApp under Channels. Website events are no longer sent to this webhook.
2. An action that reads an order
Add the demo
Open ChatbotActions, Custom API actions card, Configure. Under Demo actions (sandbox), choose Démo — statut de commande (bac à sable) (the order status demo; demo names are shown in French). Everything is already filled in: the sandbox address and key. Click Save.
Test
On the new action, click Test. Type 1001 in order_number and jeanne@example.com in email, then click Run test.
Compare the three blocks
- an HTTP 200 badge;
- What Botello sent, with Signed call (X-Botello-Signature) ✓;
- Your API's raw response (only you see it): it contains an
internal_notefield with a booby-trapped sentence asking the assistant to offer a 100% discount; - What the assistant will read: only the status, the carrier, the tracking link and the estimated delivery date. The booby-trapped sentence is not there.
This is the protection against a booby-trapped API: the assistant only reads the chosen fields, and it knows they are data, never orders. See Untrusted data.
The demo requires the number and the e-mail, both written by the visitor: the fake API refuses a number on its own (400 email_required), as a real store would.
3. In a real conversation
Open the chatbot preview (Studio) and write: “Where is my order 1001? My e-mail is jeanne@example.com”. The assistant gives the status and the tracking link. In Requests received, an Action call row appears (GET /orders/1001?email=… → 200). The e-mail value is never stored: only the names of the URL parameters are.
Variant: write “Where is my neighbour’s order?” without a number. The assistant asks for the number and the e-mail instead of making them up: both parameters are provided by The visitor (they must have written it).
4. An action that writes, with confirmation
- Add Démo — prise de rendez-vous (bac à sable) (the appointment booking demo), then save.
- In the preview, write: “My name is Jeanne Exemple, I’d like an appointment tomorrow at 2 pm.”
- The assistant asks for confirmation first, without booking anything. Answer “yes”: it confirms with a
BK-…reference. - In Requests received, a single
POST /bookingsappears.
An action that writes to your system never goes out without the visitor’s “yes”, and only once, even if the message is sent twice.
What the fake API does
All addresses start with https://api.botello.ch/api/sandbox/<token>. API calls require Authorization: Bearer <sbx_… key>.
| Request | Response |
|---|---|
POST /hook | 200 {"received": true, "signature": "<verdict>"}. Records the webhook and its verdict. |
GET /orders/<number>?email=<e-mail> | 200 with a fake order: order.number, status (processing, shipped, in_transit or delivered), carrier, trackingUrl, estimatedDelivery, items, internal_note. Always the same for a given number. |
GET /orders/<number> without an e-mail | 400 {"error": "email_required"} |
GET /orders/<number> with a number using anything other than letters, digits, #, _, - (40 characters at most) | 404 {"error": "order_not_found"} |
POST /bookings with {"date": "…", "name": "…"} | 201 {"booking": {"id": "BK-…", "date": "…", "status": "confirmed"}}. Without date: 400 date_required. |
| No key or wrong key | 401 {"error": "unauthorized", "hint": "…"} |
| Any other route | 404 {"error": "not_found"} |
Limits and security
- The address contains a random 32-byte token: it is the only key. An unknown token answers
404. - 30 requests per minute at most (beyond that,
429withRetry-After: 60), body of 64 KB at most. - The last 50 requests are kept, for 7 days at most.
- Only a few useful headers are recorded (
Content-Type,User-Agent,X-Botello-…,webhook-…). The value ofAuthorizationis never recorded, only whether it was valid. - The sandbox makes no outbound calls, and its responses cannot be read from a web page (no CORS).
- New address creates a new token and a new key: the old address stops working and the history is cleared. Demo actions already saved keep the old address: add them again.
- Delete the sandbox removes it, after confirmation: “Its addresses and key stop working, and the requests received are erased. Demo actions created from it will no longer respond.” You can create a new one afterwards.
Troubleshooting
| What you see | Likely cause | Fix |
|---|---|---|
| Invalid signature | The webhook tested does not belong to this workspace, or the content was modified | Create the webhook in the same workspace as the sandbox |
| Too old | The request is more than 5 minutes old | Expected for a replayed request |
| The demo actions do not appear | No sandbox in this workspace | Create it first |
Action test returns 401 | You clicked New address after adding the demo | Delete the demo and add it again |
| The assistant does not call the action in the preview | The chatbot is still on the former engine | Ask the Botello team to switch you over |
| Nothing in Requests received | The webhook points to another address | Copy the receiving address again |
Frequently asked questions
Learn more
Verify that an action call comes from Botello
Every API action call is signed with your workspace’s secret. Verify the signature to reject any call that does not come from Botello.
Create and manage REST API keys
An API key lets your CRM, an internal tool or a script read your workspace’s conversations, leads and contacts, and write to Botello.