Skip to content

WabaResource

Defined in: src/resources/waba.ts:28

WABA management API exposed as client.waba.

new WabaResource(request, getDefaultBusinessAccountId): WabaResource

Defined in: src/resources/waba.ts:32

RequestFn

BusinessAccountIdAccessor

WabaResource

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.

string

string[]

Promise<Waba>


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.

string

ListPhoneNumbersOptions

Promise<PhoneNumberList>


listSubscribedApps(businessAccountId?): Promise<SubscribedAppList>

Defined in: src/resources/waba.ts:65

Lists the apps subscribed to the business account’s webhooks.

string

Promise<SubscribedAppList>


subscribeApp(businessAccountId?): Promise<SuccessResponse>

Defined in: src/resources/waba.ts:74

Subscribes the current app to the business account’s webhooks.

string

Promise<SuccessResponse>


unsubscribeApp(businessAccountId?): Promise<SuccessResponse>

Defined in: src/resources/waba.ts:83

Unsubscribes the current app from the business account’s webhooks.

string

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.