Skip to main content
POST
/
whatsapp
/
business_accounts
/
{id}
/
phone_numbers
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});

await client.whatsapp.businessAccounts.phoneNumbers.initializeVerification('id', {
  display_name: 'display_name',
  phone_number: 'phone_number',
});
{
  "errors": [
    {
      "code": "<string>",
      "title": "<string>",
      "detail": "<string>",
      "source": {
        "pointer": "<string>",
        "parameter": "<string>"
      },
      "meta": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Whatsapp Business Account ID

Body

application/json
phone_number
string
required
display_name
string
required
verification_method
enum<string>
default:sms
Available options:
sms,
voice
language
string
default:en_US

Response

Verification initiated