Skip to main content
POST
/
phone_numbers
/
actions
/
verify_ownership
JavaScript
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"
  }
}

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

Array of phone numbers to verify ownership for

Required array length: 1 - 1000 elements

Phone number in E.164 format

Response

Phone number ownership verification completed.

data
object