Check out our upcoming events and meetups! View events →
Verifies ownership of the provided phone numbers and returns a mapping of numbers to their IDs, plus a list of numbers not found in the account.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.phoneNumbers.actions.verifyOwnership({
phone_numbers: ['+15551234567'],
});
console.log(response.data);{
"data": {
"found": [
{
"number_val_e164": "+15551234567",
"id": "1293384261075731499"
}
],
"not_found": [
"+15551234568"
],
"record_type": "number_ownership_verification"
}
}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.
Array of phone numbers to verify ownership for
1 - 1000 elementsPhone number in E.164 format
Phone number ownership verification completed.
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 response = await client.phoneNumbers.actions.verifyOwnership({
phone_numbers: ['+15551234567'],
});
console.log(response.data);{
"data": {
"found": [
{
"number_val_e164": "+15551234567",
"id": "1293384261075731499"
}
],
"not_found": [
"+15551234568"
],
"record_type": "number_ownership_verification"
}
}