queue
Preview upcoming slots
Returns the next N upcoming queue slot times for a profile as ISO datetime strings.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
profileIdstring
queueId?string
Filter by specific queue ID. Omit to use the default queue.
count?integer
Default
20Range
1 <= value <= 100Response Body
application/json
application/json
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"
]
}Empty
{
"error": "Unauthorized"
}Empty
Delete schedule DELETE
Delete a queue from a profile. Requires queueId to specify which queue to delete. If deleting the default queue, another queue will be promoted to default.
Get upload URL POST
Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts.