Skip to content

Business Owned Whatsapp Business Accounts

Updated: Feb 14, 2023

Represents a collection of WhatsApp Business Accounts owned by a business.

To find the ID of a business, go to Business Manager > Business Settings > Business Info. There, you will see information about the business, including the ID.

Reading

Get a list of WhatsApp Business Accounts owned by this business. Supports filtering and sorting.

Example

Requirements

  • whatsapp_business_management permission
  • business_management permission
  • whatsapp_business_messaging permission
  • public_profile permission
  • BUSINESS ID (also referred to as BUSINESS MANAGER ID in Business Settings)
  • ADMIN SYSTEM USER ACCESS TOKEN for the business

Request

Select language

cURLAndroid SDKObjective-C


        curl -i -X GET \  
'https://graph.facebook.com/LATEST-VERSION/BUSINESS-ID/owned_whatsapp_business_accounts' \  
 -H 'Authorization: Bearer USER-ACCESS-TOKEN'

Response

{
  "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"
    }
  }
}

Request with Filtering

Select language

cURL


       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'

Parameters

This endpoint doesn't have any parameters.

Fields

Reading from this edge will return a JSON formatted result:

{
"data": [],
"paging": {}
}
data

A list of WhatsAppBusinessAccount nodes.

paging

For more details about pagination, see the Graph API guide.

Error Codes

Error CodeDescription
200Permissions error
190Invalid OAuth 2.0 Access Token
104Incorrect signature
80008There 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.
100Invalid parameter

Creating

You can't perform this operation on this endpoint.

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.

Unofficial mirror for reference/search purposes. All content originates from developers.facebook.com — see the source link at the top of each page. Machine-readable indexes: llms.txt · llms-full.txt · About