OverviewPlatformsAPI ReferenceResources
Phone Numbers

Release phone number

DELETEhttps://zernio.com/api/v1/phone-numbers/{id}

Release a purchased phone number. This will:

  1. Disconnect any linked WhatsApp account
  2. Decrement the Stripe subscription quantity (or cancel if last number)
  3. Release the number from Telnyx
  4. Mark the number as released

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

idstringRequired

Phone number record ID

Responses

Success· the request worked

Errors· the request failed

DELETE/v1/phone-numbers/{id}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.phonenumbers.releasePhoneNumber({  path: {    id: 'abc123',  },});console.log(data);
{  "message": "string",  "phoneNumber": {    "id": "string",    "phoneNumber": "string",    "status": "string",    "releasedAt": "2019-08-24T14:15:22Z"  }}
OpenAPI specification
Was this page helpful?