Zernio
APIFor you
Zernio
APIFor you
API Reference

Queue

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

List schedules

Returns queue schedules for a profile. Use all=true for all queues, or queueId for a specific one. Defaults to the default queue.


GET
/v1/queue/slots

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Query Parameters

profileId*string

Profile ID to get queues for

queueId?string

Specific queue ID to retrieve (optional)

all?string

Set to 'true' to list all queues for the profile

Value in

  • "true"
  • "false"

Response 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.listQueueSlots({  query: {    profileId: 'profile_abc123',  },});console.log(data);

{  "exists": 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"  ]}

Was this page helpful?

Unpin post

Unpins a published Facebook Page post from the top of its Page. Only Facebook posts can be unpinned; any other platform answers 400 `platform_not_supported`.

Create schedule

Create an additional queue for a profile. The first queue created becomes the default. Subsequent queues are non-default unless explicitly set.