API Reference
WABA and webhooks

Subscribe the app

POST/{waba-id}/subscribed_apps
Base URL: https://whatsapp.mimicr.dev/v24.0 · provider: https://graph.facebook.com/v24.0

Subscribes the app to the webhooks of the WABA. With override_callback_uri and verify_token, the WABA's webhooks go to that URL: the platform first sends the GET ?hub.mode=subscribe&hub.verify_token=…&hub.challenge=… handshake and your endpoint must answer 200 with the hub.challenge; otherwise it returns 2200.

In Mimicr, the override becomes the callback URL of the sandbox.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

waba-idstringrequired

WhatsApp Business Account (WABA) ID.

Example: "313255174969123"

Body

application/json
override_callback_uristring

Alternate callback URL for this WABA.

verify_tokenstring

Verify token sent in the handshake. Required with override_callback_uri.

Responses

200Subscribed.
successbooleanrequired

true when the operation succeeded.

400Invalid request. The body follows the Graph API error envelope; code identifies the error (for example 100 invalid parameter, 131009 parameter value not valid).
errorobjectrequired
Show child attributes
messagestringrequired

Human-readable error message, for WhatsApp errors prefixed with (#code).

typestringrequired

Exception type.

Example: "OAuthException"
codeintegerrequired

Error code. See the error codes reference.

error_subcodeinteger

More specific code, when there is one (for example 33 for objects that do not exist or are not visible to the token, 460 for revoked tokens, 2388024 for duplicate templates).

error_user_titlestring

Title meant to be shown to the end user.

error_user_msgstring

Message meant to be shown to the end user.

error_dataobject
Show child attributes
messaging_productstring

Always whatsapp.

detailsstring

Details about the error.

fbtrace_idstringrequired

Trace ID. Include it when you contact support.

401Missing, invalid or revoked access token (190; a revoked token adds error_subcode: 460). A missing token answers 400 with code 104.
errorobjectrequired
Show child attributes
messagestringrequired

Human-readable error message, for WhatsApp errors prefixed with (#code).

typestringrequired

Exception type.

Example: "OAuthException"
codeintegerrequired

Error code. See the error codes reference.

error_subcodeinteger

More specific code, when there is one (for example 33 for objects that do not exist or are not visible to the token, 460 for revoked tokens, 2388024 for duplicate templates).

error_user_titlestring

Title meant to be shown to the end user.

error_user_msgstring

Message meant to be shown to the end user.

error_dataobject
Show child attributes
messaging_productstring

Always whatsapp.

detailsstring

Details about the error.

fbtrace_idstringrequired

Trace ID. Include it when you contact support.