OverviewProductsPlatformsAPI ReferenceResources

Disable SMS on a number

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

Turns off SMS for the number (deactivates its SMS account). The carrier registration is untouched, so re-enabling later reactivates it, with no re-registration.

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}/sms
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.sms.disableSmsOnNumber({  path: {    id: 'abc123',  },});console.log(data);
{  "enabled": true,  "phoneNumber": "string",  "disabled": true}
OpenAPI specification
Was this page helpful?