curl -i -X GET \ 'https://graph.facebook.com/LATEST-VERSION/BUSINESS-ID/owned_whatsapp_business_accounts' \ -H 'Authorization: Bearer USER-ACCESS-TOKEN'
{
"data": [
{
"id": "WHATSAPP-BUSINESS-ACCOUNT-ID",
"name": "Test WhatsApp Business Account",
"timezone_id": "1",
"message_template_namespace": "MESSAGE-TEMPLATE-NAMESPACE"
}
],
"paging": {
"cursors": {
"before": "BEFORE-CURSOR",
"after": "AFTER-CURSOR"
}
}
}
curl -i -X GET \
"https://graph.facebook.com/LATEST-VERSION/BUSINESS-ID/owned_whatsapp_business_accounts \
?fields=id,name,creation_time \
&filtering=[{'field':'creation_time', 'operator': 'IN_RANGE', 'value': ['1569783261', '1604542049']}]"
-H 'Authorization: Bearer USER-ACCESS-TOKEN'
{
"data": [],
"paging": {}
}
| Error Code | Description |
|---|---|
200 | Permissions error |
190 | Invalid OAuth 2.0 Access Token |
104 | Incorrect signature |
80008 | There have been too many calls to this WhatsApp Business account. Wait a bit and try again. For more info, please refer to /docs/graph-api/overview/rate-limiting. |
100 | Invalid parameter |