Step 5: Register Phone Number
POST https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/register
With your phone number’s ID in hand, you can register it. In the registration API call, you perform two actions at the same time:
- Register the phone.
- Enable two-step verification by setting a 6-digit registration code — you must set this code on your end. Save and memorize this code as it can be requested later. Setting up two-factor authentication is a requirement to use the Cloud API.
Embedded Signup Users
A phone number must be registered within 14 days after going through the Embedded Signup flow. If the phone number is not registered during that window, the phone number must go through the Embedded Signup flow again prior to registration.
Request Body
{"messaging_product"=>"whatsapp", "pin"=>"6-digit-pin"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"success":"true"}