API Reference
Exchange the code for a token
/oauth/access_tokenhttps://whatsapp.mimicr.dev/v24.0 · provider: https://graph.facebook.com/v24.0Exchanges the code from the login dialog or from Embedded Signup for a business access token. With grant_type=fb_exchange_token and fb_exchange_token, it returns a long-lived token for an existing token. No Authorization header: authenticate with client_id and client_secret (POST with a form body is accepted too).
Authorization
Public route, no token.
Query parameters
App ID.
App secret.
Code from the dialog or from FB.login.
Same redirect_uri used in the dialog, when there was one.
fb_exchange_token to extend a token.
Token to extend.
Responses
200Access token.
Access token of the chosen business.
bearer.
Lifetime in seconds.
400Invalid client_id (101), wrong client_secret (1), missing code (100) or invalid/expired code (100, subcode 36007).
Show child attributes
Human-readable error message, for WhatsApp errors prefixed with (#code).
Exception type.
"OAuthException"Error code. See the error codes reference.
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).
Title meant to be shown to the end user.
Message meant to be shown to the end user.
Show child attributes
Always whatsapp.
Details about the error.
Trace ID. Include it when you contact support.