import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const voicemail = await client.phoneNumbers.voicemail.retrieve('123455678900');
console.log(voicemail.data);{
"data": {
"enabled": "true",
"pin": "1234"
}
}Returns the voicemail settings for a phone number
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const voicemail = await client.phoneNumbers.voicemail.retrieve('123455678900');
console.log(voicemail.data);{
"data": {
"enabled": "true",
"pin": "1234"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the phone number.
Was this page helpful?