# Calendar 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.

## Get how full the week and month are

`GET /organizations/{organizationId}/workspaces/{workspaceId}/calendar/completion` · operationId `calendar.completion.get`

- Scope: `posts: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-21.

How full the workspace's posting schedule is the week and the month of `date` (`YYYY-MM-DD`, today in the workspace's time zone when omitted), the calendar's completeness. Each required (non-optional) posting-slot occurrence of the period counts in `total`; it is `filled` when a post (scheduled, publishing, published or failed) goes out less than 30 minutes from it, past or future. `percent` is `filled` of `total`, rounded; `openUpcoming` counts the unfilled ones still ahead. Periods are `[from, to)` between local midnights in `timeZone` (the workspace's): the month is the calendar month, the week starts on the token user's week-start setting (Sunday or Monday; "today" makes it the 7 days from `date`), Monday by default. A period is `null` when it holds no required slot. Needs a plan with this feature (`402 PLAN_UPGRADE_REQUIRED`).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `date` | query | string (date) | no | A day (`YYYY-MM-DD`) of the week and month to measure, in the workspace's time zone; today when omitted. |

**200 OK**

- `data` (object, required)
  - `timeZone` (string, required)
  - `week` (object, required, nullable, CalendarCompletionPeriod)
    - `from` (string (date-time), required)
    - `to` (string (date-time), required)
    - `filled` (number, required)
    - `total` (number, required)
    - `percent` (number, required)
    - `openUpcoming` (number, required)
  - `month` (object, required, nullable, CalendarCompletionPeriod)
    - `from` (string (date-time), required)
    - `to` (string (date-time), required)
    - `filled` (number, required)
    - `total` (number, required)
    - `percent` (number, required)
    - `openUpcoming` (number, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 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: `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: The week and month of the 15th of December**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/completion?date=2026-12-15" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "timeZone": "Europe/Paris",
    "week": {
      "from": "2026-12-13T23:00:00.000Z",
      "to": "2026-12-20T23:00:00.000Z",
      "filled": 3,
      "total": 5,
      "percent": 60,
      "openUpcoming": 2
    },
    "month": {
      "from": "2026-11-30T23:00:00.000Z",
      "to": "2026-12-31T23:00:00.000Z",
      "filled": 9,
      "total": 22,
      "percent": 41,
      "openUpcoming": 11
    }
  }
}
```

**Example: A workspace without required posting slots**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/completion" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "timeZone": "Europe/Paris",
    "week": null,
    "month": null
  }
}
```


## List open posting slots

`GET /organizations/{organizationId}/workspaces/{workspaceId}/calendar/open-slots` · operationId `calendar.openSlots.list`

- Scope: `posts: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 future occurrences of the workspace's posting slots that no post takes (none going out within 30 minutes), in time order, each with the formats it accepts: `scope=next` gives the first free occurrence of each slot (the usual way to pick a time for a post: then `POST …/posts/:postId/schedule` at `at`), `scope=range&from&to` every free one within a span of at most 48 hours. `postId` leaves that post's own time free when you reschedule it.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `postId` | query | string (uuid) | no |  |
| `scope` | query | string (next, range) | no |  |
| `from` | query | string (date-time) | no |  |
| `to` | query | string (date-time) | no |  |

**200 OK**

- `data` (array of object, required)
  - `slotId` (string, required)
  - `at` (string (date-time), required)
  - `formatIds` (array of string, required)
  - `anyWhenNoFormat` (boolean, required)
  - `requireAllFormats` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 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: `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: The next free time of each slot**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/open-slots?scope=next" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": [
    {
      "slotId": "a4d8c2f6-3e1b-4f7a-9c5d-8b0e2a6f1d73",
      "at": "2026-12-08T17:00:00.000Z",
      "formatIds": [
        "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93"
      ],
      "anyWhenNoFormat": false,
      "requireAllFormats": false
    }
  ]
}
```


## List the calendar's posts

`GET /organizations/{organizationId}/workspaces/{workspaceId}/calendar/posts` · operationId `calendar.posts.list`

- Scope: `posts: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 posts scheduled, publishing, published or failed with `from <= scheduledAt < to` (ISO 8601 instants, at most 45 days apart), ordered by `scheduledAt`. Each is light: a caption cut to 280 characters, up to four thumbnails, and where it stands on each account. Drafts and ready posts have no date: list them with `GET …/drafts/posts` and `GET …/posts/ready`. Not paginated: ask for shorter ranges.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `from` | query | string (date-time) | yes | Start of the range (included), ISO 8601 UTC. |
| `to` | query | string (date-time) | yes | End of the range (excluded), ISO 8601 UTC; at most 45 days after `from`. |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required, nullable)
  - `status` (string, required): `ready` (finished, not scheduled), `scheduled` (waits for `scheduledAt`), `in_process` (being published), `posted` (published), `failed` (failed on at least one account: see `platforms[].state`). one of `ready`, `scheduled`, `in_process`, `posted`, `failed` (may gain values).
  - `scheduledAt` (string (date-time), required, nullable)
  - `order` (number, required): Position in the ready queue: Quick Fill takes ready posts in this order.
  - `formats` (array of object, required)
    - `id` (string, required)
    - `name` (string, required)
    - `color` (string, required)
  - `platforms` (array of object, required)
    - `platform` (string, required)
    - `state` (string, required): one of `pending`, `published`, `failed`.
    - `url` (string, required, nullable)
    - `error` (string, required, nullable)
    - `views` (number, optional, nullable)
  - `media` (array of object, required)
    - `type` (string, required): one of `image`, `video`, `gif`.
    - `thumbnailUrl` (string, required, nullable)
  - `mediaCount` (number, required)
  - `linkWindow` (object, optional, PostLinkWindow)
    - `after` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
    - `before` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
  - `pendingApproval` (object, optional, nullable, PostCardPendingApproval): The approval request the post waits on (an integration asked to schedule or publish it); `null` when none is pending.
    - `id` (string (uuid), required)
    - `action` (string, required): `schedule` (at `scheduledAt`) or `publish_now`. one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable): The time asked for (`schedule`); `null` for `publish_now`.
  - `scheduledVia` (object, optional, nullable, PostVia): The integration that last scheduled the post (an app's or assistant's name; a personal token's own name only for its own member, "API token" for anyone else); `null` when a person did it, or never.
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `CALENDAR_RANGE_TOO_LONG` | Pick a shorter date range. |
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 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: `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: The first week of December**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/posts?from=2026-12-01T00%3A00%3A00.000Z&to=2026-12-08T00%3A00%3A00.000Z" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": [
    {
      "id": "8b9c0d1e-2f3a-4b5c-9d6e-7f8a9b0c1d2e",
      "title": "Studio tour reel",
      "caption": "A look behind the scenes of the new studio.",
      "status": "scheduled",
      "scheduledAt": "2026-12-01T17:00:00.000Z",
      "order": 0,
      "formats": [
        {
          "id": "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
          "name": "Reel",
          "color": "#e4572e"
        }
      ],
      "platforms": [
        {
          "platform": "instagram",
          "state": "pending",
          "url": null,
          "error": null
        }
      ],
      "media": [
        {
          "type": "video",
          "thumbnailUrl": "https://storage.beplan.io/org-media/…/preview?X-Amz-Signature=…"
        }
      ],
      "mediaCount": 1
    },
    {
      "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
      "title": "Spring drop teaser",
      "caption": "Something new lands Thursday.",
      "status": "scheduled",
      "scheduledAt": "2026-12-03T14:00:00.000Z",
      "order": 0,
      "formats": [],
      "platforms": [
        {
          "platform": "linkedin",
          "state": "pending",
          "url": null,
          "error": null
        }
      ],
      "media": [],
      "mediaCount": 0
    }
  ]
}
```


## Fill open slots with ready posts

`POST /organizations/{organizationId}/workspaces/{workspaceId}/calendar/quick-fill` · operationId `calendar.quickFill`

- Scope: `posts:publish`
- Role permission: Schedule posts (`post:schedule`)
- Effect (`external`): Leaves Beplan: publishes, sends a message or an email, or spends paid quota. Counts against the smaller budget of operations that leave 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.

Schedules ready posts (in queue order) into the workspace's empty future posting slots within `[from, to)` (ISO 8601, at most 45 days apart), respecting each slot's formats, and answers what it scheduled and how many slots found no fitting post. Each post is scheduled as by `POST …/posts/:postId/schedule`, so it will be published; a post that fails a scheduling check is skipped for the next fitting one. When the organization requires a person's approval for integrations, each post is held instead: its item carries `approval`.

**Parameters**

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

**Request body** (JSON, required)

- `from` (string (date-time), required)
- `to` (string (date-time), required)

**200 OK**

- `data` (object, required)
  - `scheduled` (array of object, required)
    - `postId` (string, required)
    - `scheduledAt` (string (date-time), required)
    - `approval` (object, optional, PostApprovalSummary)
      - `id` (string (uuid), required)
      - `status` (string, required): one of `pending`, `approved`, `rejected`, `cancelled`, `expired`.
      - `url` (string, required): The post's page in the Beplan web app, where a signed-in member approves or rejects the request. A page for people, not an API URL.
  - `unfilledSlots` (number, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `CALENDAR_RANGE_TOO_LONG` | Pick a shorter date range. |
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 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 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |

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: Fill next week**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/quick-fill" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "from": "2030-01-14T00:00:00.000Z",
  "to": "2030-01-21T00:00:00.000Z"
}'
```

Answers 200:

```json
{
  "data": {
    "scheduled": [],
    "unfilledSlots": 0
  }
}
```


## Get the content runway

`GET /organizations/{organizationId}/workspaces/{workspaceId}/calendar/runway` · operationId `calendar.runway.get`

- Scope: `posts: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.

How many consecutive days ahead the workspace's content is planned: starting tomorrow (in the workspace's time zone), a day counts when each of its required posting slots has a post scheduled within 30 minutes or can take a ready post that fits its formats. `days` is `null` without required posting slots; `uncoveredSlotAt` is the first slot nothing covers. `breakdown` splits `days` into 30-day months, 7-day weeks and remaining days (48 → 1, 2, 4) and `label` writes it the way the app does ("1m 2w 4d", zero parts left out, "0d" for none); both are `null` when `days` is. Counting stops after 365 days: then `atHorizon` is true, the runway is at least `days` long and `label` ends with `+`. Needs a plan with this feature (`402 PLAN_UPGRADE_REQUIRED`).

**Parameters**

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

**200 OK**

- `data` (object, required)
  - `days` (number, required, nullable)
  - `uncoveredSlotAt` (string (date-time), required, nullable)
  - `breakdown` (object, required, nullable, ContentRunwayBreakdown)
    - `months` (number, required)
    - `weeks` (number, required)
    - `days` (number, required)
  - `label` (string, required, nullable)
  - `atHorizon` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 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: Days planned ahead**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/runway" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "days": 18,
    "uncoveredSlotAt": "2026-12-08T17:00:00.000Z",
    "breakdown": {
      "months": 0,
      "weeks": 2,
      "days": 4
    },
    "label": "2w 4d",
    "atHorizon": false
  }
}
```


---
HTML version: https://beplan.io/docs/api/calendar/
