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

## Create a format

`POST /organizations/{organizationId}/workspaces/{workspaceId}/formats` · operationId `formats.create`

- Scope: `workspaces:write`
- Role permission: Manage workspace settings (`workspace: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-20.

Adds a format (a content type posts, posting slots and media are tagged with). The name is stored lower-case and must be unique in the workspace whatever its case (`409 FORMAT_ALREADY_EXISTS`). Answers `201` with the format.

**Parameters**

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

**Request body** (JSON, required)

- `name` (string, required): The format's name, 1–50 characters, stored lower-case; unique in the workspace whatever its case. 1–50 characters.
- `color` (string, required): The format's color, `#RRGGBB` (`#e4572e`). matches `^#[0-9a-fA-F]{6}$`.
- `description` (string, optional): When to use it ("Vertical video, 9:16"), at most 200 characters; empty or left out: none. at most 200 characters.

**201 Created**

- `data` (object, required)
  - `id` (string, required)
  - `name` (string, required)
  - `color` (string, required)
  - `description` (string, optional, nullable)

**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. |
| 409 | `FORMAT_ALREADY_EXISTS` | This workspace already has a format with this name. |

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: A Reel format**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Reel",
  "color": "#e4572e",
  "description": "Vertical video, 9:16, under 90 seconds"
}'
```

Answers 201:

```json
{
  "data": {
    "id": "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
    "name": "reel",
    "color": "#e4572e",
    "description": "Vertical video, 9:16, under 90 seconds"
  }
}
```


## List formats with their details

`GET /organizations/{organizationId}/workspaces/{workspaceId}/formats/settings` · operationId `formats.settings.list`

- Scope: `organization:read`
- Role permission: Manage workspace settings (`workspace:update`)
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Lists the workspace's formats (its content types: "reel", "tutorial"…) by name, with what the settings show: the description saying when to use each, and how many posts are tagged with it. Needs the role permission to manage the workspace; any member can read the plain list with `GET …/formats`.

**Parameters**

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

**200 OK**

- `data` (array of object, required)
  - `id` (string, required)
  - `name` (string, required)
  - `color` (string, required)
  - `description` (string, required, nullable): When to use it; `null` when not described.
  - `postCount` (number, required): Posts tagged with it (deleted posts excluded).

**Errors**

| 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 | `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: One format**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/settings" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": [
    {
      "id": "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
      "name": "reel",
      "color": "#e4572e",
      "description": "Vertical video, 9:16, under 90 seconds",
      "postCount": 42
    }
  ]
}
```


## Update a format

`PATCH /organizations/{organizationId}/workspaces/{workspaceId}/formats/{formatId}` · operationId `formats.update`

- Scope: `workspaces:write`
- Role permission: Manage workspace settings (`workspace:update`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Renames, recolors or describes a format; send only what changes. Everything tagged with it keeps the tag. `409 FORMAT_ALREADY_EXISTS` when another format has the new name. Answers with the format.

**Parameters**

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

**Request body** (JSON, required)

- `name` (string, optional): The format's name, 1–50 characters, stored lower-case; unique in the workspace whatever its case. 1–50 characters.
- `color` (string, optional): The format's color, `#RRGGBB` (`#e4572e`). matches `^#[0-9a-fA-F]{6}$`.
- `description` (string, optional, nullable): New description, at most 200 characters; `null` or an empty string clears it. at most 200 characters.

**200 OK**

- `data` (object, required)
  - `id` (string, required)
  - `name` (string, required)
  - `color` (string, required)
  - `description` (string, optional, nullable)

**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 | `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 | `FORMAT_ALREADY_EXISTS` | This workspace already has a format with this name. |

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), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: New color and description**

```bash
curl -X PATCH "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "color": "#17bebb",
  "description": "Vertical video, 9:16"
}'
```

Answers 200:

```json
{
  "data": {
    "id": "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
    "name": "reel",
    "color": "#17bebb",
    "description": "Vertical video, 9:16"
  }
}
```


## Delete a format

`DELETE /organizations/{organizationId}/workspaces/{workspaceId}/formats/{formatId}` · operationId `formats.delete`

- Scope: `workspaces:write`
- Role permission: Manage workspace settings (`workspace:update`)
- Effect (`destructive`): Deletes data or cannot be undone.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Deletes a format for good and removes its tag everywhere: posts, media, posting slots (a slot left with no format then follows its "no format" rule) and presets. Posts themselves are not deleted. See `formats.usage.get` for what it touches. Answers `204` with no body.

**Parameters**

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

**204 No content**

No content.

**Errors**

| Status | Code | Message |
|---|---|---|
| 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. |

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: Delete one**

```bash
curl -X DELETE "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 204 with no content.


## Count what uses a format

`GET /organizations/{organizationId}/workspaces/{workspaceId}/formats/{formatId}/usage` · operationId `formats.usage.get`

- Scope: `organization:read`
- Role permission: Manage workspace settings (`workspace:update`)
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Counts the posting slots, presets, media and posts tagged with a format: what deleting it would touch. Call it before `formats.delete` to warn the person.

**Parameters**

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

**200 OK**

- `data` (object, required, FormatUsage)
  - `postingSlots` (number, required): Posting slots tagged with it (a slot left with no format then follows its "no format" rule).
  - `presets` (number, required): Presets that set it.
  - `media` (number, required): Media library items tagged with it.
  - `posts` (number, required): Posts tagged with it (deleted posts excluded).

**Errors**

| Status | Code | Message |
|---|---|---|
| 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. |

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: A busy format**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93/usage" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "postingSlots": 2,
    "presets": 1,
    "media": 17,
    "posts": 42
  }
}
```


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