---
title: "Create queue"
method: POST
path: "/v1/social/post_queues"
tags: ["Queues"]
---

# Create queue

`POST /v1/social/post_queues`

## Request

- Base URL: `https://apihub.co.il`
- URL: `https://apihub.co.il/v1/social/post_queues`
- Auth: HTTP bearer

Creates a new posting queue connected to a profile group.

**Billing:** Request · **Rate limit:** 60/min

## Headers

- `Idempotency-Key` string
- `X-Tag` string

## Request body

- object: Request body for creating a queue.
  - `post_queue` object, required
    - `name` string, required: Queue name
    - `jitter` integer: Random offset in minutes (0-60, default: 0)
    - `timezone` string: IANA timezone (default: UTC)
    - `description` string: Optional description
    - `queue_timeslots_attributes` object[]: Initial timeslots
      - `id` integer: Existing timeslot ID (required when removing)
      - `day` integer: Day of the week: 0=Sunday through 6=Saturday
      - `time` string: Time in 24-hour HH:MM format
      - `_destroy` boolean: Pass true together with id to remove the timeslot

## Response `200`

Completed

- object
  - `id` string: Execution id — stable across internal retries; use it with GET /v1/executions/{id}
  - `status` 'pending' | 'processing' | 'completed' | 'partial' | 'failed' | 'cancelled' | 'timeout'
  - `operation` string
  - `tag` string, nullable: Your X-Tag, if sent
  - `created_at` string, date-time
  - `completed_at` string, date-time, nullable
  - `output` object: A posting queue that automatically schedules posts into recurring weekly timeslots, with priority-based ordering.
    - `id` string: Queue identifier (ID)
    - `name` string: Queue name
    - `jitter` integer: Random offset in minutes (+/-) applied to scheduled times (0-60, default: 0)
    - `enabled` boolean: Whether the queue is active. When paused (false), posts in the queue will not be published even if their scheduled time arrives
    - `timezone` string: IANA timezone name (e.g. America/New_York)
    - `timeslots` object[]: Weekly timeslot definitions
      - `id` integer: Timeslot ID (used for deletion)
      - `day` integer: Day of the week: 0=Sunday, 1=Monday, ..., 6=Saturday
      - `time` string: Time in 24-hour HH:MM format
    - `description` string, nullable: Optional description
    - `posts_count` integer: Number of currently scheduled posts
    - `profile_group_id` string: Associated profile group (ID)
  - `error` string, nullable
  - `usage` object
    - `credits_charged` number, nullable
    - `credits_reserved` number
    - `estimated_credits` number
    - `cost_source` 'provider_reported' | 'calculated' | 'estimated' | 'null', nullable
    - `provider_usage` object, nullable: Normalised consumption, e.g. { VIDEO_SECOND: 22.4 }
  - `balance` object
    - `available` number
    - `reserved` number

## Other responses

- `400`: Invalid input
- `402`: Insufficient credits / project budget
- `404`: Resource not found (or not yours)
- `429`: Rate limited
- `503`: Service temporarily paused

---

[API](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai.md) · [All operations](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/revisions/a8caa42835ce?raw)
