OverviewProductsPlatformsAPI ReferenceResources
Queue

Preview upcoming slots

GEThttps://zernio.com/api/v1/queue/preview

Returns the next N upcoming queue slot times for a profile as ISO datetime strings.

Authentication

AuthorizationBearer tokenRequired

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

Query parameters

profileIdstringRequired
queueIdstring

Filter by specific queue ID. Omit to use the default queue.

countintegerDefault 20

Responses

Success· the request worked

Errors· the request failed

GET/v1/queue/preview
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.queue.previewQueue({  query: {    profileId: 'profile_abc123',  },});console.log(data);
{  "profileId": "64f0a1b2c3d4e5f6a7b8c9d0",  "count": 10,  "slots": [    "2024-11-04T09:00:00-05:00",    "2024-11-04T14:00:00-05:00",    "2024-11-06T09:00:00-05:00",    "2024-11-08T10:00:00-05:00",    "2024-11-11T09:00:00-05:00",    "2024-11-11T14:00:00-05:00",    "2024-11-13T09:00:00-05:00",    "2024-11-15T10:00:00-05:00",    "2024-11-18T09:00:00-05:00",    "2024-11-18T14:00:00-05:00"  ]}
OpenAPI specification
Was this page helpful?