Skip to main content
POST
/
customer_service_records
/
phone_number_coverages
JavaScript
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"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
phone_numbers
string[]
required

The phone numbers list to be verified.

A valid US phone number in E164 format.

Response

Successful Response

data
object[]