OverviewProductsPlatformsAPI ReferenceResources
WhatsApp

List your sandbox sessions

GEThttps://zernio.com/api/v1/whatsapp/sandbox/sessions

Returns all of the authenticated user's non-expired sandbox sessions (pending + active) plus the sandbox phone number. In practice there is at most one session per user since the sandbox is one-phone-per-user; the array shape is preserved for forward compatibility.

Authentication

AuthorizationBearer tokenRequired

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

Responses

Success· the request worked

Errors· the request failed

GET/v1/whatsapp/sandbox/sessions
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsappsandbox.listWhatsAppSandboxSessions();console.log(data);
{  "sessions": [    {      "id": "string",      "phoneE164": "string",      "status": "pending",      "expiresAt": "2019-08-24T14:15:22Z",      "activatedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "sandboxNumber": "string"}
OpenAPI specification
Was this page helpful?