---
title: "Preview upcoming queue slots"
method: GET
path: "/v1/queue/preview"
tags: ["Queues"]
---

# Preview upcoming queue slots

`GET /v1/queue/preview`

## Request

- Base URL: `https://api.postzen.dev`
- URL: `https://api.postzen.dev/v1/queue/preview`
- Auth: HTTP bearer

Returns the next `count` instants the queue would hand out, in ascending order. Occupied slots are skipped, so the preview matches what the next posts would actually receive. Previewing reserves nothing.

## Query parameters

- `profileId` string, required
- `queueId` string
- `count` integer

## Response `200`

Upcoming slots returned.

- QueuePreviewResponse
  - `profileId` string, required
  - `count` integer, required: Number of slots returned, which can be fewer than requested.
  - `slots` string[], required

## Other responses

- `400`: Invalid request.
- `401`: Missing or invalid API key.
- `403`: The API key does not have sufficient permission or profile access.
- `404`: Resource not found.
- `409`: The queue is paused or has no slots.
- `429`: Rate limit exceeded. Retry after the interval indicated by the `Retry-After` header.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/postzen/apis/postzen-public-api.md) · [All operations](https://skmtc.dev/postzen/apis/postzen-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/postzen/apis/postzen-public-api/revisions/40863e3710ec?raw)
