whatsapp phone numbers
Purchase phone number
Initiate purchasing a WhatsApp phone number. Payment-first flow: the user does not pick a specific number. The system either creates a Stripe Checkout Session (first number) or increments the existing subscription quantity and provisions inline (subsequent numbers). Requires a paid plan. The maximum number of phone numbers is determined by the user's plan.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
profileIdstring
Profile to associate the number with
Response Body
application/json
application/json
curl -X POST "https://zernio.com/api/v1/whatsapp/phone-numbers/purchase" \ -H "Content-Type: application/json" \ -d '{ "profileId": "507f1f77bcf86cd799439011" }'{
"message": "string",
"checkoutUrl": "http://example.com"
}Empty
{
"error": "Unauthorized"
}Empty