# Posting queues

Source: https://ampost.io/docs/posting-queues · Full reference: https://ampost.io/llms-full.txt

## Posting Queues

Each platform set has one queue: weekly slots (`{ "day": "monday", "time": "09:00" }`) in an IANA time zone (default `UTC`). Slot times follow the zone's daylight saving changes: a time that happens twice when clocks go back is the first one, and a time that does not exist when clocks go forward moves forward by the gap (02:30 becomes 03:30). Send `useQueue: true` instead of `scheduledFor` to `posts_create` with exactly one target, and the post is scheduled in that set's next free slot at least a minute away. A slot is taken while a queued post (`queuePlatformSetId` on the Post) is scheduled at its time; rescheduling, moving to another set, publishing or deleting the post frees it. Changing the slots does not move posts already in the queue. Queues are scheduling, so they need the Pro plan or above; reading one works on every plan. `queue_slots` with `filter: free` shows where the next queued posts go.

### Get a posting queue

`GET /api/platform-sets/{platformSetId}/queue` · MCP tool `queue_get` · scope `posts:read` · rate limit `apiRead` · success `200`

Get a platform set's queue settings: its `timezone` and weekly `slots` (weekday and HH:MM), sorted by weekday and time. A set without a saved queue answers with no slots in UTC (`updatedAt` null). Use it to read or show the weekly pattern before changing it with queue_update; to see the actual upcoming dates and which are free or taken by a post, use queue_slots. 404 PLATFORM_SET_NOT_FOUND when the set is not yours or the key is restricted to other sets.

| Field | In | Type | Required | Description |
|---|---|---|---|---|
| `platformSetId` | path | string | yes | Platform set id (UUID): `id` from platform_sets_list |

Example response:

```json
{
  "platformSetId": "0b6e4d2a-9c3f-4e1b-8a7d-5f2c1e9b3d40",
  "timezone": "Europe/Warsaw",
  "slots": [
    {
      "day": "monday",
      "time": "09:00"
    },
    {
      "day": "wednesday",
      "time": "12:30"
    },
    {
      "day": "friday",
      "time": "17:00"
    }
  ],
  "updatedAt": "2026-10-06T09:00:00.000Z"
}
```

### Update a posting queue

`PATCH /api/platform-sets/{platformSetId}/queue` · MCP tool `queue_update` · scope `posts:write` · rate limit `createPost` · success `200`

Set the time zone or the weekly slots of a platform set's queue; `slots` replaces the whole list. Queues need the Pro plan or above (403 UPGRADE_REQUIRED). Posts already in the queue keep their time. Returns the saved queue; omitted fields keep their value. 403 PLATFORM_SET_NOT_ALLOWED for a set the key is restricted from; 404 PLATFORM_SET_NOT_FOUND for an unknown set.

| Field | In | Type | Required | Description |
|---|---|---|---|---|
| `platformSetId` | path | string | yes | Platform set id (UUID): `id` from platform_sets_list |
| `timezone` | body | string | no | IANA time zone the slot times are in, for example Europe/Warsaw. Slots follow its daylight saving changes. |
| `slots` | body | object[] | no | Replaces every slot (max 100); duplicates are merged. An empty list turns the queue off. |

Example request:

```json
{
  "timezone": "Europe/Warsaw",
  "slots": [
    {
      "day": "monday",
      "time": "09:00"
    },
    {
      "day": "wednesday",
      "time": "12:30"
    },
    {
      "day": "friday",
      "time": "17:00"
    }
  ]
}
```

Example response:

```json
{
  "platformSetId": "0b6e4d2a-9c3f-4e1b-8a7d-5f2c1e9b3d40",
  "timezone": "Europe/Warsaw",
  "slots": [
    {
      "day": "monday",
      "time": "09:00"
    },
    {
      "day": "wednesday",
      "time": "12:30"
    },
    {
      "day": "friday",
      "time": "17:00"
    }
  ],
  "updatedAt": "2026-10-06T09:00:00.000Z"
}
```

### Preview queue slots

`GET /api/platform-sets/{platformSetId}/queue/slots` · MCP tool `queue_slots` · scope `posts:read` · rate limit `apiRead` · success `200`

The queue's next slot times from now on, as ISO timestamps (`scheduledFor`), each with the queued post holding it (`postId`, null when free); empty when the queue has no slots. With `filter: free` the first slot is where posts_create with `useQueue` puts the next post. Use it to tell the user when a queued post would go out or which times are taken; to read or change the weekly pattern itself, use queue_get and queue_update. `count` sets how many slots (1-50, default 10). 404 PLATFORM_SET_NOT_FOUND when the set is not yours or the key is restricted to other sets.

| Field | In | Type | Required | Description |
|---|---|---|---|---|
| `platformSetId` | path | string | yes | Platform set id (UUID): `id` from platform_sets_list |
| `count` | query | integer | no | How many slots, 1-50. Default 10. |
| `filter` | query | all \| free | no | `free`: only free slots, the ones posts_create with `useQueue` fills next, in order. Default `all`: taken slots too, with their post. |

Example response:

```json
{
  "platformSetId": "0b6e4d2a-9c3f-4e1b-8a7d-5f2c1e9b3d40",
  "timezone": "Europe/Warsaw",
  "slots": [
    {
      "scheduledFor": "2027-01-11T08:00:00.000Z",
      "postId": "7f1c2a9e-4b1d-4c55-9a0e-2f6d8b3c1a10"
    },
    {
      "scheduledFor": "2027-01-13T11:30:00.000Z",
      "postId": null
    },
    {
      "scheduledFor": "2027-01-15T16:00:00.000Z",
      "postId": null
    }
  ]
}
```
