Start free
Docs · Posting slots

API reference

Posting slots

Read as Markdown

On this page
  1. List posting slots
  2. Create a posting slot
  3. Update a posting slot
  4. Delete a posting slot

Base URL https://api.beplan.io/v1. Authentication, envelopes, pagination, idempotency and rate limits: conventions. OpenAPI document: openapi.json.

All 4 Posting slots operations

List posting slots

GET /organizations/{organizationId}/workspaces/{workspaceId}/posting-slots
Beta Reads only postingSlots.list
Scope
organization:read
Role permission
Any member who can see it
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Responses

200 OK

object · ListPostingSlotsResponse

  • dataarray of objectrequired
    7fields in each item
    • idstringrequired
      The slot's id (a UUID).
    • dayOfWeekstring · DayOfWeekrequired
      One of: monday, tuesday, wednesday, thursday, friday, saturday, sunday
    • timestringrequired
      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$
    • formatsarray of objectrequired
      The formats (content types, e.g. "Reel") a post needs to fill the slot.
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • anyWhenNoFormatbooleanrequired
      With no format: whether any post fits (otherwise only posts without a format).
    • requireAllFormatsbooleanrequired
      With several formats: whether a post needs all of them (otherwise any one).
    • optionalbooleanrequired
      Optional slots don't count toward the calendar's completeness.

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.

Error codes

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.
10 more that every operation can answer (tokens, scopes, limits)
400 VALIDATION_FAILED Some of the information sent is invalid.
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

One slot

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots", {
  method: "GET",
  headers: {
    Authorization: "Bearer beplan_pat_…",
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.get(
    "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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
Beta Changes data postingSlots.create
Scope
workspaces:write
Role permission
Manage workspace settings (workspace:update)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Request body JSON, required

object · CreatePostingSlotBody

  • dayOfWeekstring · DayOfWeekrequired
    One of: monday, tuesday, wednesday, thursday, friday, saturday, sunday
  • timestringrequired
    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$
  • formatIdsarray of string (uuid)required
    Ids of the workspace's formats (GET …/formats); empty for a slot without format.
    at most 20 items
  • anyWhenNoFormatbooleanoptional
  • requireAllFormatsbooleanoptional
  • optionalbooleanoptional

Responses

201 Created

object · PostingSlotResponse

  • dataobject · PostingSlotrequired
    7fields
    • idstringrequired
      The slot's id (a UUID).
    • dayOfWeekstring · DayOfWeekrequired
      One of: monday, tuesday, wednesday, thursday, friday, saturday, sunday
    • timestringrequired
      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$
    • formatsarray of objectrequired
      The formats (content types, e.g. "Reel") a post needs to fill the slot.
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • anyWhenNoFormatbooleanrequired
      With no format: whether any post fits (otherwise only posts without a format).
    • requireAllFormatsbooleanrequired
      With several formats: whether a post needs all of them (otherwise any one).
    • optionalbooleanrequired
      Optional slots don't count toward the calendar's completeness.

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 429, 500.

Error codes

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.
13 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
409 CONFLICT This changed in the meantime. Refresh and try again.
409 IDEMPOTENCY_KEY_REUSED This Idempotency-Key was already used for a different request. Send a new key.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Wednesdays at 12:30, any post without a format

curl
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
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "dayOfWeek": "wednesday",
    "time": "12:30",
    "formatIds": [],
    "anyWhenNoFormat": true
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "dayOfWeek": "wednesday",
        "time": "12:30",
        "formatIds": [],
        "anyWhenNoFormat": True,
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 201
{
  "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}
Beta Changes data postingSlots.update
Scope
workspaces:write
Role permission
Manage workspace settings (workspace:update)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postingSlotId required path string (uuid)

Request body JSON, required

object · UpdatePostingSlotBody

  • dayOfWeekstring · DayOfWeekoptional
    One of: monday, tuesday, wednesday, thursday, friday, saturday, sunday
  • timestringoptional
    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$
  • formatIdsarray of string (uuid)optional
    at most 20 items
  • anyWhenNoFormatbooleanoptional
  • requireAllFormatsbooleanoptional
  • optionalbooleanoptional

Responses

200 OK

object · PostingSlotResponse

  • dataobject · PostingSlotrequired
    7fields
    • idstringrequired
      The slot's id (a UUID).
    • dayOfWeekstring · DayOfWeekrequired
      One of: monday, tuesday, wednesday, thursday, friday, saturday, sunday
    • timestringrequired
      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$
    • formatsarray of objectrequired
      The formats (content types, e.g. "Reel") a post needs to fill the slot.
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • anyWhenNoFormatbooleanrequired
      With no format: whether any post fits (otherwise only posts without a format).
    • requireAllFormatsbooleanrequired
      With several formats: whether a post needs all of them (otherwise any one).
    • optionalbooleanrequired
      Optional slots don't count toward the calendar's completeness.

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 429, 500.

Error codes

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.
11 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Move it to 19:00

curl
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"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots/a4d8c2f6-3e1b-4f7a-9c5d-8b0e2a6f1d73", {
  method: "PATCH",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "time": "19:00"
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.patch(
    "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots/a4d8c2f6-3e1b-4f7a-9c5d-8b0e2a6f1d73",
    headers={"Authorization": "Bearer beplan_pat_…"},
    json={
        "time": "19:00",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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}
Beta Deletes postingSlots.delete
Scope
workspaces:write
Role permission
Manage workspace settings (workspace:update)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postingSlotId required path string (uuid)

Responses

204 No content

No content.

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.

Error codes

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.
10 more that every operation can answer (tokens, scopes, limits)
400 VALIDATION_FAILED Some of the information sent is invalid.
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Delete a slot

curl
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_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots/a4d8c2f6-3e1b-4f7a-9c5d-8b0e2a6f1d73", {
  method: "DELETE",
  headers: {
    Authorization: "Bearer beplan_pat_…",
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
Python
import requests

response = requests.delete(
    "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/posting-slots/a4d8c2f6-3e1b-4f7a-9c5d-8b0e2a6f1d73",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()

Answers 204 with no content.