Zernio
Zernio
API Reference

Queue

List schedulesGETCreate schedulePOSTGet next available slotGETUpdate schedulePUTDelete scheduleDELETEPreview upcoming slotsGET
Dashboard
llms.txtOpenAPI
OverviewPlatformsAPI ReferenceResources
Queue

Update schedule

Create a new queue or update an existing one. Without queueId, creates/updates the default queue. With queueId, updates a specific queue. With setAsDefault=true, makes this queue the default for the profile.


PUT
/v1/queue/slots

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

{  "success": true,  "schedule": {    "_id": "64f0a1b2c3d4e5f6a7b8c9d1",    "profileId": "64f0a1b2c3d4e5f6a7b8c9d0",    "name": "Morning Posts",    "timezone": "America/New_York",    "slots": [      {        "dayOfWeek": 1,        "time": "09:00"      },      {        "dayOfWeek": 3,        "time": "09:00"      },      {        "dayOfWeek": 5,        "time": "10:00"      }    ],    "active": true,    "isDefault": true  },  "nextSlots": [    "2024-11-04T09:00:00-05:00",    "2024-11-06T09:00:00-05:00"  ],  "reshuffledCount": 0}
Was this page helpful?

Get next available slot

Returns the next available queue slot for preview purposes. To create a queue post, use POST /v1/posts with queuedFromProfile instead of scheduledFor.

Delete schedule

Delete a queue from a profile. Pass queueId to delete a specific queue; omit it to delete all queues for the profile. If deleting the default queue, another queue will be promoted to default.

profileId*string
queueId?string

Queue ID to update (optional)

name?string

Queue name

timezone*string
slots*array<>
active?boolean
Defaulttrue
setAsDefault?boolean

Make this queue the default

reshuffleExisting?boolean

Whether to reschedule existing queued posts to match new slots

Defaultfalse