import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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"
}
}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: 'My API Key',
});
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"
}
}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
Phone numbers that are not found in the account
Phone number in E.164 format
Identifies the type of the resource.
"number_ownership_verification"
Was this page helpful?