Skip to content
Implementation guides

Build a publishing rhythm with queues.

Use a queue when the publishing rhythm stays consistent and the content changes. The queue owns the weekly pattern; each post receives an available time within it.

What you will build

A recurring schedule with an explicit timezone and a test post allocated to a real slot.

In this guide

Before you start

  • A profile and its connected test accounts.
  • A writable test key with access to that profile.
  • The days, local times and timezone for the publishing schedule.

Use a test key for the walkthrough. Account access and the available operations still depend on the connected platform and its permissions.

Describe the weekly pattern.

Create a queue with profileId, name and at least one slot. Each slot contains an id, dayOfWeek and time. Use 0 for Sunday through 6 for Saturday, and a 24-hour HH:MM time.

Make the timezone explicit when it matters to your team. The queue resolves its local times in that timezone, including daylight-saving changes. Give each slot a unique ID and avoid two entries for the same weekday and time.

API operations

  • POST
    /v1/queuescreateQueue

Preview the pattern before adding content.

Read the queues for the profile and use previewQueue with the required profileId. Specify queueId when selecting a particular queue. Present the projected instants in a timezone the operator understands.

A preview reserves nothing. It describes the pattern, while getNextQueueSlot reports the next allocation point. Two people can read the same preview and then enqueue different posts; the API allocates their slots when the posts are created.

API operations

  • GET
    /v1/queueslistQueues
  • GET
    /v1/queue/previewpreviewQueue
  • GET
    /v1/queue/next-slotgetNextQueueSlot

Allocate a slot when creating the post.

Set queuedFromProfile to select queue mode and supply queueId to choose the queue. Omitting queueId is only valid when that profile has exactly one queue. Sending queueId by itself does not enable queue scheduling.

Use targets from the same profile and keep publishNow, scheduledFor and isDraft out of this request. Inspect the returned scheduleKind, queueId and queueSlot to see what was allocated. Save that result rather than displaying the earlier preview as a confirmed time.

API operations

  • POST
    /v1/postscreatePost
  • GET
    /v1/posts/{postId}getPost

Keep schedule changes visible.

Use individually scheduled posts when a particular campaign needs an exact timestamp outside the repeating rhythm. A queue is a useful default cadence, not a substitute for every deadline.

A queue in use by active scheduled posts cannot simply be deleted. Reschedule or cancel the affected posts first, then remove the queue. Test these transitions with the test key and review the allocated times before adding live content.

API operations

  • PUT
    /v1/posts/{postId}updatePost
  • POST
    /v1/posts/{id}/cancel-pendingcancelPendingTargets
  • DELETE
    /v1/queues/{id}deleteQueue

Continue with the source.

Use the full schemas for nested fields and response shapes. Generated skills keep the workflow context available to your coding agent.

Next guideTurn delivery events into useful updates.