Start free
Docs · Calendar

API reference

Calendar

Read as Markdown

On this page
  1. Get how full the week and month are
  2. List open posting slots
  3. List the calendar's posts
  4. Fill open slots with ready posts
  5. Get the content runway

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

All 5 Calendar operations

Get how full the week and month are

GET /organizations/{organizationId}/workspaces/{workspaceId}/calendar/completion
Beta Reads only calendar.completion.get
Scope
posts: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-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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
date optional query string (date) A day (YYYY-MM-DD) of the week and month to measure, in the workspace's time zone; today when omitted.

Responses

200 OK

object · CalendarCompletionResponse

  • dataobjectrequired
    3fields
    • timeZonestringrequired
    • weekobject · CalendarCompletionPeriodrequirednullable
      6fields
      • fromstring (date-time)required
      • tostring (date-time)required
      • fillednumberrequired
      • totalnumberrequired
      • percentnumberrequired
      • openUpcomingnumberrequired
    • monthobject · CalendarCompletionPeriodrequirednullable
      6fields
      • fromstring (date-time)required
      • tostring (date-time)required
      • fillednumberrequired
      • totalnumberrequired
      • percentnumberrequired
      • openUpcomingnumberrequired

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

Error codes

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.
9 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.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Examples

The week and month of the 15th of December

curl
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_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/completion?date=2026-12-15", {
  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/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/completion?date=2026-12-15",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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
    }
  }
}

A workspace without required posting slots

curl
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/completion" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/completion", {
  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/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/completion",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "timeZone": "Europe/Paris",
    "week": null,
    "month": null
  }
}

List open posting slots

GET /organizations/{organizationId}/workspaces/{workspaceId}/calendar/open-slots
Beta Reads only calendar.openSlots.list
Scope
posts: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 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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postId optional query string (uuid)
scope optional query string One of next, range.
from optional query string (date-time)
to optional query string (date-time)

Responses

200 OK

object · OpenSlotsResponse

  • dataarray of objectrequired
    5fields in each item
    • slotIdstringrequired
    • atstring (date-time)required
    • formatIdsarray of stringrequired
    • anyWhenNoFormatbooleanrequired
    • requireAllFormatsbooleanrequired

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

Error codes

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.
9 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.
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

The next free time of each slot

curl
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/open-slots?scope=next" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/open-slots?scope=next", {
  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/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/open-slots?scope=next",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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
Beta Reads only calendar.posts.list
Scope
posts: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 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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
from required query string (date-time) Start of the range (included), ISO 8601 UTC.
to required query string (date-time) End of the range (excluded), ISO 8601 UTC; at most 45 days after from.

Responses

200 OK

object · CalendarPostsResponse

  • dataarray of objectrequired
    13fields in each item
    • idstringrequired
    • titlestringrequired
    • captionstringrequirednullable
    • statusstringrequired
      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 (may gain values): ready, scheduled, in_process, posted, failed
    • scheduledAtstring (date-time)requirednullable
    • ordernumberrequired
      Position in the ready queue: Quick Fill takes ready posts in this order.
    • formatsarray of objectrequired
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • platformsarray of objectrequired
      5fields in each item
      • platformstringrequired
      • statestringrequired
        One of: pending, published, failed
      • urlstringrequirednullable
      • errorstringrequirednullable
      • viewsnumberoptionalnullable
    • mediaarray of objectrequired
      2fields in each item
      • typestringrequired
        One of: image, video, gif
      • thumbnailUrlstringrequirednullable
    • mediaCountnumberrequired
    • linkWindowobject · PostLinkWindowoptional
      2fields
      • afterobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
      • beforeobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
    • pendingApprovalobject · PostCardPendingApprovaloptionalnullable
      The approval request the post waits on (an integration asked to schedule or publish it); null when none is pending.
      3fields
      • idstring (uuid)required
      • actionstringrequired
        schedule (at scheduledAt) or publish_now.
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
        The time asked for (schedule); null for publish_now.
    • scheduledViaobject · PostViaoptionalnullable
      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.
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired

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

Error codes

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.
9 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.
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

The first week of December

curl
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_…"
TypeScript
const response = await fetch("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", {
  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/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/posts?from=2026-12-01T00%3A00%3A00.000Z&to=2026-12-08T00%3A00%3A00.000Z",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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
Beta Acts outside Beplan calendar.quickFill
Scope
posts:publish
Role permission
Schedule posts (post:schedule)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Request body JSON, required

object · QuickFillBody

  • fromstring (date-time)required
  • tostring (date-time)required

Responses

200 OK

object · QuickFillResponse

  • dataobjectrequired
    2fields
    • scheduledarray of objectrequired
      3fields in each item
      • postIdstringrequired
      • scheduledAtstring (date-time)required
      • approvalobject · PostApprovalSummaryoptional
        3fields
        • idstring (uuid)required
        • statusstringrequired
          One of: pending, approved, rejected, cancelled, expired
        • urlstringrequired
          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.
    • unfilledSlotsnumberrequired

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

Error codes

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

Fill next week

curl
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"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/quick-fill", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "from": "2030-01-14T00:00:00.000Z",
    "to": "2030-01-21T00:00:00.000Z"
  }),
});
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/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/quick-fill",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "from": "2030-01-14T00:00:00.000Z",
        "to": "2030-01-21T00:00:00.000Z",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "scheduled": [],
    "unfilledSlots": 0
  }
}

Get the content runway

GET /organizations/{organizationId}/workspaces/{workspaceId}/calendar/runway
Beta Reads only calendar.runway.get
Scope
posts: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.

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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Responses

200 OK

object · ContentRunwayResponse

  • dataobjectrequired
    5fields
    • daysnumberrequirednullable
    • uncoveredSlotAtstring (date-time)requirednullable
    • breakdownobject · ContentRunwayBreakdownrequirednullable
      3fields
      • monthsnumberrequired
      • weeksnumberrequired
      • daysnumberrequired
    • labelstringrequirednullable
    • atHorizonbooleanrequired

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

Error codes

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

Days planned ahead

curl
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/runway" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/runway", {
  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/ORGANIZATION_ID/workspaces/WORKSPACE_ID/calendar/runway",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "days": 18,
    "uncoveredSlotAt": "2026-12-08T17:00:00.000Z",
    "breakdown": {
      "months": 0,
      "weeks": 2,
      "days": 4
    },
    "label": "2w 4d",
    "atHorizon": false
  }
}