API reference
Formats
Base URL https://api.beplan.io/v1. Authentication, envelopes, pagination, idempotency and rate limits:
conventions. OpenAPI document: openapi.json.
All 5 Formats operations
- POST Create a format
- GET List formats with their details
- PATCH Update a format
- DELETE Delete a format
- GET Count what uses a format
Create a format
/organizations/{organizationId}/workspaces/{workspaceId}/formats formats.create - Scope
- workspaces:write
- Role permission
- Manage workspace settings (
workspace:update) - Effect
- Changes data in Beplan.
- Idempotency
- Send an
Idempotency-Keyto 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 | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) |
Request body JSON, required
object · CreateFormatBody
namestringrequiredThe format's name, 1–50 characters, stored lower-case; unique in the workspace whatever its case.1–50 characterscolorstringrequiredThe format's color,#RRGGBB(#e4572e).matches^#[0-9a-fA-F]{6}$descriptionstringoptionalWhen to use it ("Vertical video, 9:16"), at most 200 characters; empty or left out: none.at most 200 characters
Responses
201 Created
object · FormatResponse
dataobjectrequired4fields
idstringrequirednamestringrequiredcolorstringrequireddescriptionstringoptionalnullable
Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 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. |
| 409 | FORMAT_ALREADY_EXISTS | This workspace already has a format with this name. |
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
A Reel format
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"
}' const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats", {
method: "POST",
headers: {
Authorization: "Bearer beplan_pat_…",
"Idempotency-Key": crypto.randomUUID(),
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "Reel",
"color": "#e4572e",
"description": "Vertical video, 9:16, under 90 seconds"
}),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json(); import uuid
import requests
response = requests.post(
"https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats",
headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Reel",
"color": "#e4572e",
"description": "Vertical video, 9:16, under 90 seconds",
},
)
response.raise_for_status()
data = response.json()["data"] Response 201
{
"data": {
"id": "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
"name": "reel",
"color": "#e4572e",
"description": "Vertical video, 9:16, under 90 seconds"
}
} List formats with their details
/organizations/{organizationId}/workspaces/{workspaceId}/formats/settings formats.settings.list - Scope
- organization:read
- Role permission
- Manage workspace settings (
workspace:update) - Effect
- 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 | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) |
Responses
200 OK
object · ManagedFormatsResponse
dataarray of objectrequired5fields in each item
idstringrequirednamestringrequiredcolorstringrequireddescriptionstringrequirednullableWhen to use it;nullwhen not described.postCountnumberrequiredPosts tagged with it (deleted posts excluded).
Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.
Error codes
| 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. |
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
One format
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/settings" \
-H "Authorization: Bearer beplan_pat_…" const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/settings", {
method: "GET",
headers: {
Authorization: "Bearer beplan_pat_…",
},
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json(); import requests
response = requests.get(
"https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/settings",
headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"] Response 200
{
"data": [
{
"id": "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
"name": "reel",
"color": "#e4572e",
"description": "Vertical video, 9:16, under 90 seconds",
"postCount": 42
}
]
} Update a format
/organizations/{organizationId}/workspaces/{workspaceId}/formats/{formatId} formats.update - Scope
- workspaces:write
- Role permission
- Manage workspace settings (
workspace:update) - Effect
- 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 | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) | |
formatId required | path | string (uuid) |
Request body JSON, required
object · UpdateFormatBody
namestringoptionalThe format's name, 1–50 characters, stored lower-case; unique in the workspace whatever its case.1–50 characterscolorstringoptionalThe format's color,#RRGGBB(#e4572e).matches^#[0-9a-fA-F]{6}$descriptionstringoptionalnullableNew description, at most 200 characters;nullor an empty string clears it.at most 200 characters
Responses
200 OK
object · FormatResponse
dataobjectrequired4fields
idstringrequirednamestringrequiredcolorstringrequireddescriptionstringoptionalnullable
Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 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 | 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. |
11 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. |
| 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
New color and description
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"
}' const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93", {
method: "PATCH",
headers: {
Authorization: "Bearer beplan_pat_…",
"Content-Type": "application/json",
},
body: JSON.stringify({
"color": "#17bebb",
"description": "Vertical video, 9:16"
}),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json(); import requests
response = requests.patch(
"https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
headers={"Authorization": "Bearer beplan_pat_…"},
json={
"color": "#17bebb",
"description": "Vertical video, 9:16",
},
)
response.raise_for_status()
data = response.json()["data"] Response 200
{
"data": {
"id": "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
"name": "reel",
"color": "#17bebb",
"description": "Vertical video, 9:16"
}
} Delete a format
/organizations/{organizationId}/workspaces/{workspaceId}/formats/{formatId} formats.delete - Scope
- workspaces:write
- Role permission
- Manage workspace settings (
workspace:update) - Effect
- 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 | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) | |
formatId required | path | string (uuid) |
Responses
204 No content
No content.
Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.
Error codes
| 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. |
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
Delete one
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_…" const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93", {
method: "DELETE",
headers: {
Authorization: "Bearer beplan_pat_…",
},
});
if (!response.ok) throw new Error((await response.json()).error.code); import requests
response = requests.delete(
"https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status() Answers 204 with no content.
Count what uses a format
/organizations/{organizationId}/workspaces/{workspaceId}/formats/{formatId}/usage formats.usage.get - Scope
- organization:read
- Role permission
- Manage workspace settings (
workspace:update) - Effect
- 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 | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) | |
formatId required | path | string (uuid) |
Responses
200 OK
object · FormatUsageResponse
dataobject · FormatUsagerequired4fields
postingSlotsnumberrequiredPosting slots tagged with it (a slot left with no format then follows its "no format" rule).presetsnumberrequiredPresets that set it.medianumberrequiredMedia library items tagged with it.postsnumberrequiredPosts tagged with it (deleted posts excluded).
Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.
Error codes
| 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. |
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
A busy format
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_…" const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93/usage", {
method: "GET",
headers: {
Authorization: "Bearer beplan_pat_…",
},
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json(); import requests
response = requests.get(
"https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats/c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93/usage",
headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"] Response 200
{
"data": {
"postingSlots": 2,
"presets": 1,
"media": 17,
"posts": 42
}
}