# Posting slots API reference

Base URL `https://api.beplan.io/v1`. Every operation is listed with its scope, permission, inputs, answers, errors and an example. Conventions: https://beplan.io/docs/api.md. OpenAPI document: https://beplan.io/docs/api/openapi.json.

## List posting slots

`GET /organizations/{organizationId}/workspaces/{workspaceId}/posting-slots` · operationId `postingSlots.list`

- Scope: `organization:read`
- Role permission: Any member who can see it
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Lists the workspace's weekly posting slots ("every Tuesday at 18:00, a Reel"): the rhythm the calendar plans against. Times are wall-clock `HH:mm` in the workspace's time zone (`GET …/settings`), not UTC. A slot's formats say which posts fill it.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required): The slot's id (a UUID).
  - `dayOfWeek` (string, required, DayOfWeek): one of `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`.
  - `time` (string, required): A wall-clock time `HH:mm` (24 h), in the workspace's time zone (not UTC). matches `^([01]\d|2[0-3]):[0-5]\d$`.
  - `formats` (array of object, required): The formats (content types, e.g. "Reel") a post needs to fill the slot.
    - `id` (string, required)
    - `name` (string, required)
    - `color` (string, required)
  - `anyWhenNoFormat` (boolean, required): With no format: whether any post fits (otherwise only posts without a format).
  - `requireAllFormats` (boolean, required): With several formats: whether a post needs all of them (otherwise any one).
  - `optional` (boolean, required): Optional slots don't count toward the calendar's completeness.

**Errors**

| Status | Code | Message |
|---|---|---|
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: One slot**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": [
    {
      "id": "a4d8c2f6-3e1b-4f7a-9c5d-8b0e2a6f1d73",
      "dayOfWeek": "tuesday",
      "time": "18:00",
      "formats": [
        {
          "id": "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
          "name": "Reel",
          "color": "#e4572e"
        }
      ],
      "anyWhenNoFormat": false,
      "requireAllFormats": false,
      "optional": false
    }
  ]
}
```


## Create a posting slot

`POST /organizations/{organizationId}/workspaces/{workspaceId}/posting-slots` · operationId `postingSlots.create`

- Scope: `workspaces:write`
- Role permission: Manage workspace settings (`workspace:update`)
- Effect (`write`): Changes data in Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Adds a weekly slot: a day, a wall-clock time in the workspace's time zone and the formats a post needs to fill it (ids from `GET …/formats`; empty for none). Refused with `409 POSTING_SLOT_CONFLICT` when a slot with the same formats exists that day within 29 minutes, `404 FORMAT_NOT_FOUND` for a format of another workspace. Answers `201` with the slot.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `dayOfWeek` (string, required, DayOfWeek): one of `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`.
- `time` (string, required): A wall-clock time `HH:mm` (24 h), in the workspace's time zone (not UTC). matches `^([01]\d|2[0-3]):[0-5]\d$`.
- `formatIds` (array of string (uuid), required): Ids of the workspace's formats (`GET …/formats`); empty for a slot without format. at most 20 items.
- `anyWhenNoFormat` (boolean, optional)
- `requireAllFormats` (boolean, optional)
- `optional` (boolean, optional)

**201 Created**

- `data` (object, required, PostingSlot)
  - `id` (string, required): The slot's id (a UUID).
  - `dayOfWeek` (string, required, DayOfWeek): one of `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`.
  - `time` (string, required): A wall-clock time `HH:mm` (24 h), in the workspace's time zone (not UTC). matches `^([01]\d|2[0-3]):[0-5]\d$`.
  - `formats` (array of object, required): The formats (content types, e.g. "Reel") a post needs to fill the slot.
    - `id` (string, required)
    - `name` (string, required)
    - `color` (string, required)
  - `anyWhenNoFormat` (boolean, required): With no format: whether any post fits (otherwise only posts without a format).
  - `requireAllFormats` (boolean, required): With several formats: whether a post needs all of them (otherwise any one).
  - `optional` (boolean, required): Optional slots don't count toward the calendar's completeness.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `FORMAT_NOT_FOUND` | One of the formats doesn't exist in this workspace. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 409 | `POSTING_SLOT_CONFLICT` | A slot with the same formats already exists within 30 minutes. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Wednesdays at 12:30, any post without a format**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "dayOfWeek": "wednesday",
  "time": "12:30",
  "formatIds": [],
  "anyWhenNoFormat": true
}'
```

Answers 201:

```json
{
  "data": {
    "id": "a4d8c2f6-3e1b-4f7a-9c5d-8b0e2a6f1d73",
    "dayOfWeek": "wednesday",
    "time": "12:30",
    "formats": [],
    "anyWhenNoFormat": true,
    "requireAllFormats": false,
    "optional": false
  }
}
```


## Update a posting slot

`PATCH /organizations/{organizationId}/workspaces/{workspaceId}/posting-slots/{postingSlotId}` · operationId `postingSlots.update`

- Scope: `workspaces:write`
- Role permission: Manage workspace settings (`workspace:update`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Changes the fields sent; `formatIds` replaces the slot's formats. Same conflict rule as creation (the slot itself excluded). Scheduled posts keep their times. Answers with the slot after the change.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `postingSlotId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `dayOfWeek` (string, optional, DayOfWeek): one of `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`.
- `time` (string, optional): A wall-clock time `HH:mm` (24 h), in the workspace's time zone (not UTC). matches `^([01]\d|2[0-3]):[0-5]\d$`.
- `formatIds` (array of string (uuid), optional): at most 20 items.
- `anyWhenNoFormat` (boolean, optional)
- `requireAllFormats` (boolean, optional)
- `optional` (boolean, optional)

**200 OK**

- `data` (object, required, PostingSlot)
  - `id` (string, required): The slot's id (a UUID).
  - `dayOfWeek` (string, required, DayOfWeek): one of `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`.
  - `time` (string, required): A wall-clock time `HH:mm` (24 h), in the workspace's time zone (not UTC). matches `^([01]\d|2[0-3]):[0-5]\d$`.
  - `formats` (array of object, required): The formats (content types, e.g. "Reel") a post needs to fill the slot.
    - `id` (string, required)
    - `name` (string, required)
    - `color` (string, required)
  - `anyWhenNoFormat` (boolean, required): With no format: whether any post fits (otherwise only posts without a format).
  - `requireAllFormats` (boolean, required): With several formats: whether a post needs all of them (otherwise any one).
  - `optional` (boolean, required): Optional slots don't count toward the calendar's completeness.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `FORMAT_NOT_FOUND` | One of the formats doesn't exist in this workspace. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `POSTING_SLOT_NOT_FOUND` | This posting slot doesn't exist in this workspace. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 409 | `POSTING_SLOT_CONFLICT` | A slot with the same formats already exists within 30 minutes. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Move it to 19:00**

```bash
curl -X PATCH "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots/a4d8c2f6-3e1b-4f7a-9c5d-8b0e2a6f1d73" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "time": "19:00"
}'
```

Answers 200:

```json
{
  "data": {
    "id": "a4d8c2f6-3e1b-4f7a-9c5d-8b0e2a6f1d73",
    "dayOfWeek": "tuesday",
    "time": "19:00",
    "formats": [
      {
        "id": "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
        "name": "Reel",
        "color": "#e4572e"
      }
    ],
    "anyWhenNoFormat": false,
    "requireAllFormats": false,
    "optional": false
  }
}
```


## Delete a posting slot

`DELETE /organizations/{organizationId}/workspaces/{workspaceId}/posting-slots/{postingSlotId}` · operationId `postingSlots.delete`

- Scope: `workspaces:write`
- Role permission: Manage workspace settings (`workspace:update`)
- Effect (`destructive`): Deletes data or cannot be undone.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Deletes the slot. Scheduled posts keep their times. Answers `204` with no body.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `postingSlotId` | path | string (uuid) | yes |  |

**204 No content**

No content.

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `POSTING_SLOT_NOT_FOUND` | This posting slot doesn't exist in this workspace. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Delete a slot**

```bash
curl -X DELETE "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots/a4d8c2f6-3e1b-4f7a-9c5d-8b0e2a6f1d73" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 204 with no content.


---
HTML version: https://beplan.io/docs/api/posting-slots/
