Guides
Environment
Hosts, versions, sandbox IDs, the sandbox clock and what your app has to change to point at Mimicr.
Hosts
| What | Host |
|---|---|
Graph API, login dialog and sdk.js | https://whatsapp.mimicr.dev |
| Control API, MCP | https://api.mimicr.dev |
| Console | https://app.mimicr.dev |
The Graph API answers at https://whatsapp.mimicr.dev/{version}/.... Any version from v18.0 on is accepted (the examples use v24.0); older versions answer 2635. Keep the host in an environment variable, as you would with https://graph.facebook.com:
WHATSAPP_GRAPH_URL=https://whatsapp.mimicr.dev/v24.0 WHATSAPP_TOKEN=<token> WHATSAPP_PHONE_NUMBER_ID=424361664134261 WHATSAPP_WABA_ID=313255174969123 WHATSAPP_APP_SECRET=<app_secret>
What each sandbox has
| Item | Where to read it | Note |
|---|---|---|
| App ID and app secret | app_id, app_secret | Webhook signature and OAuth |
| WABA | wabas[] | The default one has the business_name; create more with POST /v1/whatsapp/{slug}/wabas |
| Phone number | phone_numbers[] | Registered, quality GREEN, tier TIER_10K |
| Tokens | access_tokens[] | One per WABA, no expiry |
| Verify token | verify_token | Default meu-token-de-verificacao |
| Callback | callback_url | Empty until you verify a URL |
| Templates | Graph API | Only hello_world (en_US, UTILITY, approved) |
With "examples": true at creation (or reset), the sandbox also gets six test customers (Ana, Bruno, Carla, Diego, Elisa and Fábio, one per persona) and sample templates such as promo_outubro, pedido_enviado and codigo_verificacao.
Several businesses in the same app
A tech provider serves several businesses with the same app. In Mimicr, each business is a WABA of the sandbox with its own number:
curl --request POST \
--url https://api.mimicr.dev/v1/whatsapp/docs/wabas \
--header 'Authorization: Bearer mk_...' \
--header 'Content-Type: application/json' \
--data '{ "name": "Gás do Povo", "display_phone_number": "+55 34 3000-0001" }'A business token only sees that business's WABA, numbers and templates. Webhooks go out with entry[].id set to the WABA of the number or template.
Sandbox clock
Message and webhook timestamps follow the sandbox clock, which you can move forward to close the 24-hour window or make retries come due:
npx mimicr clock whatsapp:docs +25h
{ "success": true, "now": 1794004196, "offset_seconds": 90000 }POST /v1/whatsapp/{slug}/clock/reset goes back to real time. Persona delays (delivery, read, reply) are real time, not sandbox time.
Asynchronous processing
Statuses, automatic replies and webhook deliveries are scheduled events. Mimicr processes them for about 40 seconds after each Graph API call, while the console is open, during a control API wait and every minute. In tests, POST /v1/whatsapp/{slug}/tick processes what is already due right away.
Mimicr limits
- Uploaded media: Meta's type and size limits (see Media).
- Throughput: 80 messages per second by default (
throughput_mps),130429above it. - Business–customer pair: from 10 messages to the same number within 60 seconds,
131056.