whatsapp phone numbers
Release phone number
Release a purchased phone number. This will: 1. Disconnect any linked WhatsApp social account 2. Decrement the Stripe subscription quantity (or cancel if last number) 3. Release the number from Telnyx 4. Mark the number as released
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
phoneNumberIdstring
Phone number record ID
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsappphonenumbers.releaseWhatsAppPhoneNumber({ path: { phoneNumberId: 'phonenumber_abc123', },});console.log(data);{
"message": "string",
"phoneNumber": {
"id": "string",
"phoneNumber": "string",
"status": "string",
"releasedAt": "2019-08-24T14:15:22Z"
}
}Empty
{
"error": "Unauthorized"
}{
"error": "Not found"
}