Messaging & chat
WhatsApp Business mock API
Stateful WhatsApp Business Cloud API replica: messages, message templates, phone numbers, media and signed status webhooks.
At a glance
- Operations
- 113
- Stateful operations
- 11
- Stateful resources
- 4
- Webhook events
- 4
- Vendor API version
- v23.0
- Verification
- Spec-verified
How it works
Use WhatsApp Business without calling Meta Platforms, Inc.
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bearer EAAGMaxoPerfExampleToken0123456789 State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Messages | 1 |
| Message templates | 5 |
| Phone numbers | 2 |
| Media | 3 |
Webhooks
Events your handlers can receive
- messages.status.sent
- messages.status.delivered
- messages.status.read
- message_template_status_update
Deliveries are signed with the hmac scheme, so your verification code runs unchanged.
Coverage
113 operations
11 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 102 |
| Message templates | 5 |
| Media | 3 |
| Phone numbers | 2 |
| Messages | 1 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
2 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the Meta Platforms, Inc. API description, licensed under MIT.
- Meta Platforms, Inc. API documentation
- Source specification
Each collection holds up to 1 MiB of objects per access token; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Uploaded media bytes are not stored (only metadata) and the runtime rejects request bodies over 1 MiB with 413. Graph paths put the object id right after the version, so the mock tells objects apart by a 15-digit id whose first two digits give the type: 10 phone numbers (seeded 105550000000001 and 105550000000002), 11 WhatsApp Business account (seeded 114000000000001), 12 media (seeded 120000000000001), 13 message templates (seeded hello_world 130000000000001 and order_update 130000000000002), 14 groups, 15 flows, 16 business portfolios, 17 solutions, 18 media URLs, 19 migration intents, 20 pre-verified numbers, 21 account numbers, 22 bots, 23 business profiles, 24 OBO intents. Message statuses (sent, delivered, read) arrive as webhooks 0.5, 1.5 and 3 seconds after a send, and a created template becomes APPROVED after about 2 seconds (webhook plus derived status). Recipient +15550000000 fails with 131026; an unknown template name fails with 132001; sending an existing template is accepted whatever its approval state. One language per template name. Only messages, templates, phone numbers and media are stateful; every other operation answers a schema-valid sample. Webhooks go to the Virtual Service webhook setting, signed with X-Hub-Signature-256 (sha256=...).
MaxoPerf is not affiliated with, endorsed by, or sponsored by Meta Platforms, Inc. WhatsApp Business is a trademark of its owner.