Owned and Client WABAs

GET https://graph.facebook.com/{{Version}}/{{Business-ID}}/owned_whatsapp_business_accounts

Use this API call to get a list of owned WhatsApp Business Accounts (WABAs). You can also filter and sort the results —see the available parameters below.

Parameters

NameDescription
filteringUsed to filter client and owned WhatsApp business accounts. See filtering object for more options.
sortUsed to sort shared and owned WhatsApp business accounts. Currently, you can sort WABAs based on their creation time. The two supported sorting categories are creation_time_ascending and creation_time_descending.

The filtering object

NameDescription
fieldContains the field being used for filtering. Currently, you can use the creation_time for filtering.
operatorContains how you want to filter the accounts. Supported values: LESS_THAN, GREATER_THAN.
valueA timestamp to be used in the filtering.

Examples

Under Example Request on the right-side panel, you can switch between examples of the following API calls: - Fetch list of owned and client WABAs - Filter list of owned and client WABAs - Sort list of owned and client WABAs

RESPONSES

status: OK

"{ \n    \"data\": [\n        {\n            \"id\": 1906385232743451, \n            \"name\": \"My WhatsApp Business Account\", \n            \"currency\": \"USD\", \n            \"timezone_id\": \"1\", \n            \"message_template_namespace\": \"abcdefghijk_12lmnop\" \n        },\n       {\n            \"id\": 1972385232742141, \n            \"name\": \"My Regional Account\", \n            \"currency\": \"INR\", \n            \"timezone_id\": \"5\", \n            \"message_template_namespace\": \"12abcdefghijk_34lmnop\" \n        },\n\n    ],\n    \"paging\": {\n\t\"cursors\": {\n\t\t\"before\": \"abcdefghij\",\n\t\t\"after\": \"klmnopqr\"\n\t}\n   }\n}"