Get Formatted Number
Supported & TestedNormalize a phone number into the WhatsApp-friendly international format and return the expected phone JID.
POSThttps://api.waplix.io/api/v1/contacts/format
Authentication
Authorization: Bearer YOUR_API_KEY Parameters Specification
| Parameter | Type | Required | Description |
|---|---|---|---|
| instance_id | string | Required | Required Waplix instance id |
| number | string | Required | Required local or international phone number |
| country_code | string | Optional | Optional numeric country code such as 92 |
instance_id
stringReq Required Waplix instance id
number
stringReq Required local or international phone number
country_code
stringOpt Optional numeric country code such as 92
Usage Notes
Verified on production instance 29854.
Request Payload Example
Request
curl -X POST "https://api.waplix.io/api/v1/api/v1/contacts/format" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"instance_id": "demo_instance",
"number": "15551234567"
}'Success Response
Response · 200 OK
{
"success": true,
"data": {
"input": "15551234567",
"country_code": null,
"formatted_number": "15551234567",
"jid": "15551234567@s.whatsapp.net"
}
} Was this page helpful?