WabaResource
Defined in: src/resources/waba.ts:28
WABA management API exposed as client.waba.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WabaResource(
request,getDefaultBusinessAccountId):WabaResource
Defined in: src/resources/waba.ts:32
Parameters
Section titled “Parameters”request
Section titled “request”RequestFn
getDefaultBusinessAccountId
Section titled “getDefaultBusinessAccountId”BusinessAccountIdAccessor
Returns
Section titled “Returns”WabaResource
Methods
Section titled “Methods”get(
businessAccountId?,fields?):Promise<Waba>
Defined in: src/resources/waba.ts:41
Reads the business account’s details. Pass fields to request specific
Graph fields; when omitted no field selection is sent.
Parameters
Section titled “Parameters”businessAccountId?
Section titled “businessAccountId?”string
fields?
Section titled “fields?”string[]
Returns
Section titled “Returns”Promise<Waba>
listPhoneNumbers()
Section titled “listPhoneNumbers()”listPhoneNumbers(
businessAccountId?,options?):Promise<PhoneNumberList>
Defined in: src/resources/waba.ts:53
Lists the phone numbers owned by the business account, with optional field selection. Returns the Graph page shape including paging cursors.
Parameters
Section titled “Parameters”businessAccountId?
Section titled “businessAccountId?”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<PhoneNumberList>
listSubscribedApps()
Section titled “listSubscribedApps()”listSubscribedApps(
businessAccountId?):Promise<SubscribedAppList>
Defined in: src/resources/waba.ts:65
Lists the apps subscribed to the business account’s webhooks.
Parameters
Section titled “Parameters”businessAccountId?
Section titled “businessAccountId?”string
Returns
Section titled “Returns”Promise<SubscribedAppList>
subscribeApp()
Section titled “subscribeApp()”subscribeApp(
businessAccountId?):Promise<SuccessResponse>
Defined in: src/resources/waba.ts:74
Subscribes the current app to the business account’s webhooks.
Parameters
Section titled “Parameters”businessAccountId?
Section titled “businessAccountId?”string
Returns
Section titled “Returns”Promise<SuccessResponse>
unsubscribeApp()
Section titled “unsubscribeApp()”unsubscribeApp(
businessAccountId?):Promise<SuccessResponse>
Defined in: src/resources/waba.ts:83
Unsubscribes the current app from the business account’s webhooks.
Parameters
Section titled “Parameters”businessAccountId?
Section titled “businessAccountId?”string
Returns
Section titled “Returns”Promise<SuccessResponse>
Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.