Enable or disable Whatsapp calling for a phone number
PATCH
JavaScript
JavaScript
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Check out our upcoming events and meetups! View events →
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const callingSetting = await client.whatsapp.phoneNumbers.callingSettings.update('phone_number', {
enabled: true,
});
console.log(callingSetting.data);{
"data": {
"record_type": "whatsapp_calling_settings",
"phone_number": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"enabled": true
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Phone number (E.164 format)
Updated calling settings
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const callingSetting = await client.whatsapp.phoneNumbers.callingSettings.update('phone_number', {
enabled: true,
});
console.log(callingSetting.data);{
"data": {
"record_type": "whatsapp_calling_settings",
"phone_number": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"enabled": true
}
}