WABPhoneNumbers
Methods
AddWABPhoneNumber
Adds a new WhatsApp Business phone number.
To call this method, make sure your service account has one of the following roles:
Parameters
application_id:
number
OptionalBound application ID
application_name:
string
OptionalBound application name that can be used instead of application_id
description:
string
OptionalWhatsApp Business phone number description
rule_id:
number
OptionalBound rule ID
rule_name:
string
OptionalBound rule name that can be used instead of rule_id
voice_password:
string
WhatsApp Business SIP password
wab_phone_number:
string
WhatsApp Business phone number
Returns
result:
number
1
DeleteWABPhoneNumber
Deletes a WhatsApp Business phone number.
To call this method, make sure your service account has one of the following roles:
Parameters
wab_phone_number:
string
WhatsApp Business phone number to delete
Returns
result:
number
1
GetWABPhoneNumbers
Gets the account's WhatsApp Business phone numbers.
To call this method, make sure your service account has one of the following roles:
Parameters
application_id:
number
OptionalApplication ID that is bound to the WhatsApp Business phone number
application_name:
string
OptionalBound application name that can be used instead of application_id
count:
number
OptionalDefaults on:Â Â 100Maximum returning records count
country_code:
string
OptionalCountry code filter (2 symbols) for the WhatsApp Business phone number
offset:
number
OptionalDefaults on:Â Â 0Number of records to be skipped in the result
wab_phone_number:
string
OptionalWhatsApp Business phone number
Returns
count:
number
Number of returned records
result:
WhatsApp Business phone numbers info
total_count:
number
Number of total records found
SetWABPhoneNumberInfo
Sets details for the specified WhatsApp Business phone number.
To call this method, make sure your service account has one of the following roles:
Parameters
application_id:
number
OptionalBound application ID
application_name:
string
OptionalBound application name that can be used instead of application_id
description:
string
OptionalNew WhatsApp Business phone number description
rule_id:
number
OptionalBound rule ID
rule_name:
string
OptionalBound rule name that can be used instead of rule_id
voice_password:
string
OptionalNew WhatsApp Business SIP password
wab_phone_number:
string
WhatsApp Business phone number to change details for
Returns
result:
number
1