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 setting = await client.whatsapp.businessAccounts.settings.update('id');
console.log(setting.data);{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"record_type": "whatsapp_business_account_settings",
"name": "<string>",
"timezone": "America/Chicago",
"webhook_url": "<string>",
"webhook_failover_url": "<string>",
"webhook_enabled": true,
"webhook_events": [
"<string>"
],
"updated_at": "2023-11-07T05:31:56Z"
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Whatsapp Business Account ID
IANA timezone identifier
"America/New_York"
URL to send Whatsapp events
Failover URL to send Whatsapp events
Enable/disable receiving Whatsapp events
Whatsapp event to subscribe to
Updated 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 setting = await client.whatsapp.businessAccounts.settings.update('id');
console.log(setting.data);{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"record_type": "whatsapp_business_account_settings",
"name": "<string>",
"timezone": "America/Chicago",
"webhook_url": "<string>",
"webhook_failover_url": "<string>",
"webhook_enabled": true,
"webhook_events": [
"<string>"
],
"updated_at": "2023-11-07T05:31:56Z"
}
}