Represents a collection of WhatsApp Business Pre-Verified Phone Numbers on a business. See Pre-Verified Phone Numbers.
Get a list of WhatsApp Business Pre-Verified Phone Numbers on a business.
Type | Description |
---|---|
User or System User | |
GET https://graph.facebook.com/<API_VERSION>/<BUSINESS_ACCOUNT_ID>/preverified_numbers ?fields=<FIELDS>
Placeholder | Description | Sample Value |
---|---|---|
| Optional. API version. | v19.0 |
| Business account ID. |
|
Placeholder | Description | Sample Value |
---|---|---|
| Optional. A comma-separated list of fields you want returned on each WhatsApp Business Pre-Verified Phone Number in the result set. |
|
A collection of WhatsApp Business Pre-Verified Phone Numbers and their default fields on the business.
{ "data": [ { "phone_number": "<PHONE_NUMBER>", "code_verification_status": "<CODE_VERIFICATION_STATUS>", "verification_expiry_time": "<VERIFICATION_EXPIRY_TIME>", "id": "<ID>" }, ... ], "paging": { "cursors": { "before": "QVFIU...", "after": "QVFIU..." } } }
curl -X GET 'https://graph.facebook.com/v19.0
/506914307656634/preverified_numbers' \
-H 'Authorization: Bearer EAAJB...'
{ "data": [ { "phone_number": "+1 211-555-5105", "code_verification_status": "VERIFIED", "verification_expiry_time": "2023-04-14T22:12:31+0000", "id": "5745365898905902" }, { "phone_number": "+1 211-555-7165", "code_verification_status": "VERIFIED", "verification_expiry_time": "2023-04-14T22:10:57+0000", "id": "9010077509033461" }, ... ], "paging": { "cursors": { "before": "QVFIU...", "after": "QVFIU..." } } }
Parameter | Description |
---|---|
code_verification_status enum {VERIFIED, NOT_VERIFIED, EXPIRED} | Indicates verification status. Values can be:
|
phone_number string | The business pre-verified phone number's display phone number. |
Reading from this edge will return a JSON formatted result:
{ "
data
": [], "paging
": {} }
data
paging
Error | Description |
---|---|
200 | Permissions error |