Request Verification Code
POST https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/request_code
You need to verify the phone number you want to use to send messages to your customers. Phone numbers must be verified through SMS/voice call. The verification process can be done through the Graph API calls specified below.
To verify a phone number using Graph API, make a
POST
request to
{{PHONE_NUMBER_ID}}/request_code
. In your call, include your chosen verification method and locale. You need to authenticate yourself using
{{User-Access-Token}}
(This is automatically done for you in the
Request Verification Code
request).
Request Parameters
Name | Description |
---|---|
code_method
|
Required
.
Specifies the method for verification. Supported options are:
SMS
or
VOICE
.
|
locale
|
Required
.
Specifies your locale. For instance:
"en_US"
.
|
Response
After a successful call to
Request Verification Code
, you will receive your verification code via the method you selected in
code_method
. To finish the verification process, you need to use the
Verify Code
request.
Request Body
{"code_method"=>"SMS", "locale"=>"en_US"}
HEADERS
| Key | Datatype | Required | Description |
| Content-Type
| string | | |
| Authorization
| string | | |
RESPONSES
status: OK
{"success":true}