Start free
Docs · Drafts

API reference

Drafts

Read as Markdown

On this page
  1. List the drafts board's columns
  2. List the posts of a drafts column
  3. Move a draft to a column

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

All 3 Drafts operations

List the drafts board's columns

GET /organizations/{organizationId}/workspaces/{workspaceId}/drafts/board
Beta Reads only drafts.board.get
Scope
posts:read
Role permission
Any of: Create posts (post:create), Edit posts (post:update), Delete posts (post:delete)
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Returns the drafts board's columns in display order with the number of posts in each: Ideas (idea), In progress (in_progress), the workspace's custom columns (custom:<id>, holding in-progress posts), In review (in_review, Team Collaboration add-on only) and Ready (ready). Optional filters: q (title contains), formatId, platform (repeat a parameter for several values). Use a column's id with GET …/drafts/posts and POST …/posts/:postId/move.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
q optional query string at most 200 characters
formatId optional query one of
platform optional query one of

Responses

200 OK

object · DraftsBoardResponse

  • dataobjectrequired
    1field
    • columnsarray of objectrequired
      4fields in each item
      • idstringrequired
        matches ^(idea|in_progress|in_review|ready|custom:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$
      • statusstringrequired
        One of (may gain values): idea, in_progress, in_review, ready
      • customColumnobjectrequirednullable
        3fields
        • idstringrequired
        • namestringrequired
        • colorstringrequired
      • totalnumberrequired

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

curl
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/drafts/board" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/drafts/board", {
  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/drafts/board",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "columns": [
      {
        "id": "idea",
        "status": "idea",
        "customColumn": null,
        "total": 12
      },
      {
        "id": "in_progress",
        "status": "in_progress",
        "customColumn": null,
        "total": 4
      },
      {
        "id": "custom:2c4e6a8b-0d1f-4a3c-8e5b-7d9f1a3c5e7b",
        "status": "in_progress",
        "customColumn": {
          "id": "2c4e6a8b-0d1f-4a3c-8e5b-7d9f1a3c5e7b",
          "name": "Filming",
          "color": "#17bebb"
        },
        "total": 2
      },
      {
        "id": "in_review",
        "status": "in_review",
        "customColumn": null,
        "total": 1
      },
      {
        "id": "ready",
        "status": "ready",
        "customColumn": null,
        "total": 3
      }
    ]
  }
}

List the posts of a drafts column

GET /organizations/{organizationId}/workspaces/{workspaceId}/drafts/posts
Beta Reads only drafts.posts.list
Scope
posts:read
Role permission
Any of: Create posts (post:create), Edit posts (post:update), Delete posts (post:delete)
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Lists the posts of one drafts board column (column: idea, in_progress, in_review, ready or custom:<id> from GET …/drafts/board), in board order, with the same optional filters as the board. Each post is light (caption cut to 280 characters, up to four thumbnails); read one in full with GET …/posts/:postId. Paginated with limit (1–100, default 25) and cursor.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
q optional query string at most 200 characters
formatId optional query one of
platform optional query one of
column required query string matches ^(idea|in_progress|in_review|ready|custom:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$
limit optional query integer from 1 to 100
cursor optional query string at most 512 characters
heldOnly optional query string true: only the posts waiting for a person's approval (pendingApproval set). One of true, false.

Responses

200 OK

object · DraftColumnPostsResponse

  • dataarray of objectrequired
    15fields in each item
    • idstringrequired
    • titlestringrequired
    • captionstringrequirednullable
    • 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.
    • statusstringrequired
      One of (may gain values): idea, in_progress, in_review, ready
    • customColumnIdstringrequirednullable
    • openThreadsCountnumberrequired
    • updatedAtstring (date-time)required
  • pageobjectrequired
    2fields
    • nextCursorstringrequirednullable
    • hasMorebooleanrequired

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.
403 MISSING_PERMISSION You don't have permission to do this.
404 COLUMN_NOT_FOUND This column 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.
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 ideas

curl
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/drafts/posts?column=idea&limit=25" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/drafts/posts?column=idea&limit=25", {
  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/drafts/posts?column=idea&limit=25",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": [
    {
      "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
      "title": "Spring drop teaser",
      "caption": "Something new lands Thursday.",
      "scheduledAt": null,
      "order": 0,
      "formats": [],
      "platforms": [
        {
          "platform": "linkedin",
          "state": "pending",
          "url": null,
          "error": null
        }
      ],
      "media": [],
      "mediaCount": 0,
      "status": "idea",
      "customColumnId": null,
      "openThreadsCount": 1,
      "updatedAt": "2026-11-19T10:12:00.000Z"
    }
  ],
  "page": {
    "nextCursor": "eyJvcmRlciI6MSwiaWQiOiI2ZjFjMmEzYiJ9",
    "hasMore": true
  }
}

Move a draft to a column

POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/move
Beta Changes data drafts.move
Scope
posts:write
Role permission
Edit posts (post: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.

Moves a draft (a post that is not scheduled or published) to a drafts board column, just before beforePostId (a post of that column) or at the end when null. Moving into, out of or within Ready also needs the schedule permission (403 MISSING_PERMISSION); In review needs the Team Collaboration add-on. Moving to Ready does not schedule anything.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postId required path string (uuid)

Request body JSON, required

object · MoveDraftPostBody

  • columnstringrequired
    matches ^(idea|in_progress|in_review|ready|custom:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$
  • beforePostIdstring (uuid)requirednullable

Responses

200 OK

object · MoveDraftPostResponse

  • dataobject · DraftPostrequired
    15fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequirednullable
    • 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.
    • statusstringrequired
      One of (may gain values): idea, in_progress, in_review, ready
    • customColumnIdstringrequirednullable
    • openThreadsCountnumberrequired
    • updatedAtstring (date-time)required

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 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 COLUMN_NOT_FOUND This column doesn't exist in this workspace.
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of it.
404 POST_NOT_FOUND This post doesn't exist or was deleted.
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

Start working on an idea

curl
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/move" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "column": "in_progress",
  "beforePostId": null
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/move", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "column": "in_progress",
    "beforePostId": null
  }),
});
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/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/move",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "column": "in_progress",
        "beforePostId": None,
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    "title": "Spring drop teaser",
    "caption": "Something new lands Thursday.",
    "scheduledAt": null,
    "order": 0,
    "formats": [],
    "platforms": [
      {
        "platform": "linkedin",
        "state": "pending",
        "url": null,
        "error": null
      }
    ],
    "media": [],
    "mediaCount": 0,
    "status": "in_progress",
    "customColumnId": null,
    "openThreadsCount": 1,
    "updatedAt": "2026-11-19T10:30:00.000Z"
  }
}