Guides
Getting started

Environment

Hosts, versions, sandbox IDs, the sandbox clock and what your app has to change to point at Mimicr.

Hosts

WhatHost
Graph API, login dialog and sdk.jshttps://whatsapp.mimicr.dev
Control API, MCPhttps://api.mimicr.dev
Consolehttps://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:

bash
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

ItemWhere to read itNote
App ID and app secretapp_id, app_secretWebhook signature and OAuth
WABAwabas[]The default one has the business_name; create more with POST /v1/whatsapp/{slug}/wabas
Phone numberphone_numbers[]Registered, quality GREEN, tier TIER_10K
Tokensaccess_tokens[]One per WABA, no expiry
Verify tokenverify_tokenDefault meu-token-de-verificacao
Callbackcallback_urlEmpty until you verify a URL
TemplatesGraph APIOnly 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:

bash
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:

bash
npx mimicr clock whatsapp:docs +25h
json
{ "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), 130429 above it.
  • Business–customer pair: from 10 messages to the same number within 60 seconds, 131056.