Use this edge to request a code to verify a phone number.
Use the WhatsApp Business Account > Phone Numbers endpoint to get a phone number's ID. See Retrieve Phone Numbers for usage details.
Requirements
id
from this callwhatsapp_business_management permission
whatsapp_business_messaging permission
public_profile permission
USER ACCESS TOKEN
Request
Formatted for readability.
curl -i -X POST \
"https://graph.facebook.com/LATEST-VERSION/WHATS-APP-BUSINESS-ACCOUNT-TO-NUMBER-CURRENT-STATUS-ID/request_code?
code_method=SMS&
language=en_US&
access_token=USER-ACCESS-TOKEN"
Response
{ "success": true }
request_code
edge from the following paths: Parameter | Description |
---|---|
code_method enum {SMS, VOICE} | method in which the code should be received, SMS or VOICE. Required |
language locale string | locale in which the code should be received in standard format, eg: en_US Required |
success
: bool, Error | Description |
---|---|
136024 | Request code error |
100 | Invalid parameter |