Connect
API and webhooks
Let your own platform send WhatsApp messages through Qubox and hear about replies and statuses. Or connect Google Sheets, Zapier or Make.
What you need
- Someone who can set up your platform, or a Google Sheet
Steps
- API & webhooks → New API key for each platform. Copy the key and webhook secret now: they are shown once.
- Type the platform’s webhook address and save. Send a test event.
- Connect other tools: the Google Sheets script, or the Zapier and Make recipes.
Every setting on this page
- API key
- qb_live_…; only a hash is kept. 600 calls a minute per key; Idempotency-Key supported.
- Webhook address · secret
- Qubox signs each event: X-Qubox-Signature = sha256 HMAC of “timestamp.body”. Retried up to 24 hours; resend from the log.
- Turn off key · Delete key
- Turned off: calls refused. Delete once off (or at once if never used); messages it sent stay.
- Log
- Events and API calls, kept 30 days (also calls to the AiSensy-style address of Switch to Qubox).
- contact.tags on POST /v1/messages
- Tags sent with a message are added to the contact, never removed.
- Paused or closed business
- A paused or closed business’s keys are refused (403 business_paused; /v1/ping still answers with business_active false); closing a business turns its keys off. Each event is posted once; a key you turn off gets nothing more.
- Google Sheets: Send a template
- Asks which send this is (today’s date by default): the same number, template and send go once (“Already sent (same request)”); type another word to send it again.
- Calls a minute
- 600 a minute per key (Qubox’s API and the AiSensy-style address together) and per partner key; an address sending wrong keys is stopped after 120 a minute (429).
- Orders without doubles
- POST /v1/orders and /v1/orders/{id}/pay take an Idempotency-Key: the same key and body give the first answer again, another body 422, a request still running 409 (kept a day).
If something goes wrong
| You see | What to do |
|---|---|
| “No webhook address yet” | Qubox can’t tell your platform about delivered, read, replies or STOP until you add it. |
| 422 payment_method_missing | The WhatsApp account has no payment method at Meta, so template messages are refused. Add one in Meta’s billing, then Check again in Qubox. Free replies within 24 hours still go. |