Skip to main content
POST
/
verified_numbers
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const verifiedNumber = await client.verifiedNumbers.create({
  phone_number: '+15551234567',
  verification_method: 'sms',
});

console.log(verifiedNumber.phone_number);
{
  "phone_number": "+15551234567",
  "verification_method": "sms"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
phone_number
string
required
Example:

"+15551234567"

verification_method
enum<string>
required

Verification method.

Available options:
sms,
call
Example:

"sms"

extension
string | null

Optional DTMF extension sequence to dial after the call is answered. This parameter enables verification of phone numbers behind IVR systems that require extension dialing. Valid characters: digits 0-9, letters A-D, symbols * and #. Pauses: w = 0.5 second pause, W = 1 second pause. Maximum length: 50 characters. Only works with 'call' verification method.

Maximum string length: 50
Example:

"ww243w1"

Response

Expected response to a valid request.

phone_number
string
Example:

"+15551234567"

verification_method
string
Example:

"sms"