OverviewProductsPlatformsAPI ReferenceResources
Voice & Calling

Disable phone calling on a number

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

Turns off PSTN calling for the number. The stored forward destination and settings are preserved, so re-enabling restores the prior config.

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

idstringRequired

Responses

Success· the request worked

Errors· the request failed

DELETE/v1/phone-numbers/{id}/voice
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.voice.disableVoiceOnNumber({  path: {    id: 'abc123',  },});console.log(data);
{  "enabled": true,  "phoneNumber": "string"}
OpenAPI specification
Was this page helpful?