Skip to Content
GuidesDevelopersResources
API actions

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.

On requestThe Botello team turns this feature on for your workspace. Contact us to get it.
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.

Best for

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.
The sandbox: test addresses, key, steps and requests received

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:

VerdictMeaning
Valid signatureSigned with the current secret of one of your webhooks
Valid (previous secret)Signed with the previous secret, during a rotation
Invalid signatureThe content was modified, or no secret in the workspace matches
Not signedNo signature header
Too oldThe 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_note field 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

  1. Add Démo — prise de rendez-vous (bac à sable) (the appointment booking demo), then save.
  2. In the preview, write: “My name is Jeanne Exemple, I’d like an appointment tomorrow at 2 pm.”
  3. The assistant asks for confirmation first, without booking anything. Answer “yes”: it confirms with a BK-… reference.
  4. In Requests received, a single POST /bookings appears.

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>.

RequestResponse
POST /hook200 {"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-mail400 {"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 key401 {"error": "unauthorized", "hint": "…"}
Any other route404 {"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, 429 with Retry-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 of Authorization is 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 seeLikely causeFix
Invalid signatureThe webhook tested does not belong to this workspace, or the content was modifiedCreate the webhook in the same workspace as the sandbox
Too oldThe request is more than 5 minutes oldExpected for a replayed request
The demo actions do not appearNo sandbox in this workspaceCreate it first
Action test returns 401You clicked New address after adding the demoDelete the demo and add it again
The assistant does not call the action in the previewThe chatbot is still on the former engineAsk the Botello team to switch you over
Nothing in Requests receivedThe webhook points to another addressCopy the receiving address again

Frequently asked questions

Learn more

Was this page helpful?
Checked against the product on 14 November 2026 Suggest a fix

On this page