# Drafts 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 the drafts board's columns

`GET /organizations/{organizationId}/workspaces/{workspaceId}/drafts/board` · operationId `drafts.board.get`

- Scope: `posts:read`
- Role permission: Any of: Create posts (`post:create`), Edit posts (`post:update`), Delete posts (`post:delete`)
- Effect (`read`): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `q` | query | string | no | at most 200 characters |
| `formatId` | query | one of | no |  |
| `platform` | query | one of | no |  |

**200 OK**

- `data` (object, required)
  - `columns` (array of object, required)
    - `id` (string, required): 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})$`.
    - `status` (string, required): one of `idea`, `in_progress`, `in_review`, `ready` (may gain values).
    - `customColumn` (object, required, nullable)
      - `id` (string, required)
      - `name` (string, required)
      - `color` (string, required)
    - `total` (number, required)

**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 | `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 board**

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

Answers 200:

```json
{
  "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` · operationId `drafts.posts.list`

- Scope: `posts:read`
- Role permission: Any of: Create posts (`post:create`), Edit posts (`post:update`), Delete posts (`post:delete`)
- Effect (`read`): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `q` | query | string | no | at most 200 characters |
| `formatId` | query | one of | no |  |
| `platform` | query | one of | no |  |
| `column` | query | string | yes | 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` | query | integer | no | from 1 to 100 |
| `cursor` | query | string | no | at most 512 characters |
| `heldOnly` | query | string (true, false) | no | `true`: only the posts waiting for a person's approval (`pendingApproval` set). |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required, nullable)
  - `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`.
  - `status` (string, required): one of `idea`, `in_progress`, `in_review`, `ready` (may gain values).
  - `customColumnId` (string, required, nullable)
  - `openThreadsCount` (number, required)
  - `updatedAt` (string (date-time), required)
- `page` (object, required)
  - `nextCursor` (string, required, nullable)
  - `hasMore` (boolean, 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. |
| 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. |

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 ideas**

```bash
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_…"
```

Answers 200:

```json
{
  "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` · operationId `drafts.move`

- Scope: `posts:write`
- Role permission: Edit posts (`post: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.

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

**Request body** (JSON, required)

- `column` (string, required): 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})$`.
- `beforePostId` (string (uuid), required, nullable)

**200 OK**

- `data` (object, required, DraftPost)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required, nullable)
  - `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`.
  - `status` (string, required): one of `idea`, `in_progress`, `in_review`, `ready` (may gain values).
  - `customColumnId` (string, required, nullable)
  - `openThreadsCount` (number, required)
  - `updatedAt` (string (date-time), 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. |
| 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. |

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: Start working on an idea**

```bash
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
}'
```

Answers 200:

```json
{
  "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"
  }
}
```


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