Get voicemail
GET/phone_numbers/:phone_number_id/voicemail
Returns the voicemail settings for a phone number
Request
Path Parameters
phone_number_id stringrequired
The ID of the phone number.
Example: 123455678900
Responses
200: Successful response
- application/json
400: Bad request
401: Unauthorized
404: Resource not found
Request samples
curl -L 'https://api.telnyx.com/v2/phone_numbers/:phone_number_id/voicemail' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": {
"enabled": "true",
"pin": "1234"
}
}