Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The phone numbers list to be verified.
A valid US phone number in E164 format.
Response
Successful Response
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.customerServiceRecords.verifyPhoneNumberCoverage({
phone_numbers: ['+1234567890'],
});
console.log(response.data);{
"data": [
{
"phone_number": "+12223334444",
"has_csr_coverage": true,
"reason": "The phone number '+19999999999' is invalid.",
"additional_data_required": [
"name"
],
"record_type": "customer_service_record_phone_number_coverage"
}
]
}Verify the coverage for a list of phone numbers.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.customerServiceRecords.verifyPhoneNumberCoverage({
phone_numbers: ['+1234567890'],
});
console.log(response.data);{
"data": [
{
"phone_number": "+12223334444",
"has_csr_coverage": true,
"reason": "The phone number '+19999999999' is invalid.",
"additional_data_required": [
"name"
],
"record_type": "customer_service_record_phone_number_coverage"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The phone numbers list to be verified.
A valid US phone number in E164 format.
Successful Response
Show child attributes
Was this page helpful?