Pogton
Docs Queue

API reference

Queue

Set weekly posting slots per user or for your whole organization, then add posts with queue: true and Pogton schedules each into the next free slot.

A queue is a weekly schedule of posting slots, such as Monday, Wednesday and Friday at 09:00 in Stockholm. A post created with "queue": true is scheduled into the next free slot, so your users can fill a calendar without picking times.

Set a schedule

curl -X PUT https://pogton.com/api/v1/queue \
  -H "Authorization: Bearer pk_3f9a..." \
  -H "Content-Type: application/json" \
  -d '{
    "user_id": "user_123",
    "timezone": "Europe/Stockholm",
    "slots": [
      { "day": 1, "time": "09:00" },
      { "day": 3, "time": "09:00" },
      { "day": 5, "time": "09:00" },
      { "day": 5, "time": "16:30" }
    ]
  }'
{
  "schedule": {
    "user_id": "user_123",
    "timezone": "Europe/Stockholm",
    "slots": [
      { "day": 1, "time": "09:00" },
      { "day": 3, "time": "09:00" },
      { "day": 5, "time": "09:00" },
      { "day": 5, "time": "16:30" }
    ]
  }
}
FieldDescription
user_idThe user the schedule is for. Leave it out to set your organization's default, used by every user without their own schedule.
timezoneIANA timezone, e.g. Europe/Stockholm or America/New_York. Slot times follow daylight saving time.
slots1 to 100 slots. day is 0 (Sunday) to 6 (Saturday); time is HH:MM in 24-hour time.

PUT replaces the whole schedule. Posts already scheduled keep their times.

Get a schedule

curl "https://pogton.com/api/v1/queue?user_id=user_123" \
  -H "Authorization: Bearer pk_3f9a..."
{
  "schedule": { "user_id": "user_123", "timezone": "Europe/Stockholm", "slots": [{ "day": 1, "time": "09:00" }] },
  "next_slot": "2026-10-26T08:00:00.000Z"
}

When the user has no schedule, the response has the organization default and "user_id": null. With no schedule at all, both fields are null.

Add a post to the queue

curl -X POST https://pogton.com/api/v1/posts \
  -H "Authorization: Bearer pk_3f9a..." \
  -H "Content-Type: application/json" \
  -d '{ "user_id": "user_123", "platforms": ["linkedin"], "content": "Tip of the week", "queue": true }'

The post is created as pending with scheduled_at set to the slot, and post.scheduled is sent. From then on it is an ordinary scheduled post: you can edit its time, publish it now or cancel it.

How slots are picked:

  • The first slot more than a minute from now that no other pending post of the user has taken.
  • Slots are looked up eight weeks ahead. If all are taken, the API returns 422 queue_full.
  • Without any schedule, the API returns 422 no_queue_schedule.
  • queue can't be combined with scheduled_at.