OverviewPlatformsAPI ReferenceResources
WhatsApp

Revoke a sandbox session

DELETEhttps://zernio.com/api/v1/whatsapp/sandbox/sessions/{sessionId}

Hard-deletes the session. The user loses the ability to send to that phone via the sandbox until they re-activate it. Existing conversations and messages already exchanged with that phone are untouched. Revocation only blocks FUTURE sends.

Sessions belonging to other users cannot be revoked; the response is the same 400 as "session not found" so existence isn't leaked.

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

sessionIdstringRequired

The session id returned by POST /v1/whatsapp/sandbox/sessions.

Responses

Success· the request worked

Errors· the request failed

DELETE/v1/whatsapp/sandbox/sessions/{sessionId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsappsandbox.deleteWhatsAppSandboxSession({  path: {    sessionId: 'session_abc123',  },});console.log(data);
{  "success": true}
OpenAPI specification
Was this page helpful?