API Reference
Login and Embedded Signup

Login dialog

GET/dialog/oauth
Base URL: https://whatsapp.mimicr.dev/v24.0 · provider: https://graph.facebook.com/v24.0

Facebook Login consent dialog (Meta serves it at https://www.facebook.com/{version}/dialog/oauth). After consent it redirects to redirect_uri?code=…&state=…; when the user cancels, to redirect_uri?error=access_denied&error_reason=user_denied&…. The code is valid for 10 minutes and is exchanged at /oauth/access_token.

In Mimicr, the page is simulated: with several businesses in the sandbox the user picks one, and the code (and the token) only gives access to that WABA. Without redirect_uri, the page opened by FB.login of the Mimicr sdk.js returns the code to the opener and posts the WA_EMBEDDED_SIGNUP events.

Authorization

Public route, no token.

Query parameters

client_idstringrequired

App ID.

redirect_uristring

URL that receives the code.

statestring

Opaque value returned unchanged.

scopestring

Comma-separated permissions, e.g. whatsapp_business_management,whatsapp_business_messaging.

config_idstring

Embedded Signup configuration ID.

Responses

200HTML consent page.
string
400Unknown client_id or missing redirect_uri (HTML page).