API reference
Presets
Base URL https://api.beplan.io/v1. Authentication, envelopes, pagination, idempotency and rate limits:
conventions. OpenAPI document: openapi.json.
All 6 Presets operations
- GET List post presets
- POST Create a post preset
- GET Get a post preset
- PATCH Update a post preset
- DELETE Delete a post preset
- POST Duplicate a post preset
List post presets
/organizations/{organizationId}/workspaces/{workspaceId}/presets presets.list - Scope
- organization:read
- Role permission
- Any of: Create posts (
post:create), 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 post presets, newest first. A preset is a saved starting point for a post: formats, a shared caption and hashtags, and per platform the post type, an own caption, options and thread posts. The list is light (a caption preview and a post count per platform); read one with GET …/presets/:presetId to apply it. Needs a role that creates posts or manages the workspace. Not paginated.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) |
Responses
200 OK
object · ListPresetsResponse
dataarray of objectrequired6fields in each item
idstringrequiredThe preset's id (a UUID).namestringrequiredformatsarray of objectrequiredIts formats that still exist in the workspace.3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
captionPreviewstringrequirednullableThe preset's shared caption, cut to its first 280 characters;nullwhen it sets none.platformsarray of objectrequiredOne entry per platform it configures, with how many posts it applies there (a thread has several).2fields in each item
platformstringrequiredpostCountnumberrequired
createdAtstring (date-time)requiredWhen it was saved, ISO 8601 UTC.
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 preset
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/presets" \
-H "Authorization: Bearer beplan_pat_…" const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/presets", {
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/presets",
headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"] Response 200
{
"data": [
{
"id": "5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38",
"name": "Weekly recipe",
"formats": [
{
"id": "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
"name": "reel",
"color": "#e4572e"
}
],
"captionPreview": "New recipe every Friday. Save it for the weekend!",
"platforms": [
{
"platform": "instagram",
"postCount": 1
},
{
"platform": "x",
"postCount": 2
}
],
"createdAt": "2026-11-18T09:30:00.000Z"
}
]
} Create a post preset
/organizations/{organizationId}/workspaces/{workspaceId}/presets presets.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.
Saves a preset: a name plus the post content it sets. formatIds, caption, hashtags and platforms are all required ([] / null for none). Each platform appears at most once; its additionalParams take the same keys as a post's and are checked the same way (400 VALIDATION_FAILED otherwise). Formats must belong to the workspace (404 FORMAT_NOT_FOUND). Needs the role permission to manage the workspace. Answers 201 with the preset as the list shows it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) |
Request body JSON, required
object · CreatePresetBody
namestringrequired1–255 charactersformatIdsarray of string (uuid)requiredFormats of this workspace (GET …/formats); replaces the list.[]: none.at most 50 itemscaptionstringrequirednullableThe shared caption;nullor blank: none.at most 63206 charactershashtagsstringrequirednullableHashtags, space-separated as a post stores them (#launch #news);nullor blank: none.at most 5000 charactersplatformsarray of objectrequiredWhat it sets per platform, at most one entry per platform.[]: none.at most 20 items5fields in each item
platformstring · SocialPlatformrequiredOne of:x,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,blueskytypestringrequirednullableOne of:post,storycustomCaptionstringrequirednullableat most 63206 charactersadditionalParamsmap of anyrequiredThe platform's options the preset sets, keyed<platform>_<option>: the same keys and values as a post's per-accountadditionalParams(tiktok_privacyLevel,youtube_privacyStatus,instagram_trialReels,x_replySettings…). Only keys of this entry's platform are accepted, each checked like a post's (else400 VALIDATION_FAILED);{}sets none.threadarray of objectoptionalThe posts after the first (X, Bluesky, Threads), in order: replaces the preset's; left out: kept.at most 24 items1field in each item
captionstringrequiredat most 63206 characters
Responses
201 Created
object · SavePresetResponse
dataobject · PresetSummaryrequired6fields
idstringrequiredThe preset's id (a UUID).namestringrequiredformatsarray of objectrequiredIts formats that still exist in the workspace.3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
captionPreviewstringrequirednullableThe preset's shared caption, cut to its first 280 characters;nullwhen it sets none.platformsarray of objectrequiredOne entry per platform it configures, with how many posts it applies there (a thread has several).2fields in each item
platformstringrequiredpostCountnumberrequired
createdAtstring (date-time)requiredWhen it was saved, ISO 8601 UTC.
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. |
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
Instagram post and an X thread
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/presets" \
-H "Authorization: Bearer beplan_pat_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Weekly recipe",
"formatIds": [],
"caption": "New recipe every Friday. Save it for the weekend!",
"hashtags": "#recipe #friday",
"platforms": [
{
"platform": "instagram",
"type": "post",
"customCaption": null,
"additionalParams": {
"instagram_shareToFeed": true
}
},
{
"platform": "x",
"type": null,
"customCaption": "New recipe is up",
"additionalParams": {},
"thread": [
{
"caption": "Full steps below"
}
]
}
]
}' const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/presets", {
method: "POST",
headers: {
Authorization: "Bearer beplan_pat_…",
"Idempotency-Key": crypto.randomUUID(),
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "Weekly recipe",
"formatIds": [],
"caption": "New recipe every Friday. Save it for the weekend!",
"hashtags": "#recipe #friday",
"platforms": [
{
"platform": "instagram",
"type": "post",
"customCaption": null,
"additionalParams": {
"instagram_shareToFeed": true
}
},
{
"platform": "x",
"type": null,
"customCaption": "New recipe is up",
"additionalParams": {},
"thread": [
{
"caption": "Full steps below"
}
]
}
]
}),
});
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/presets",
headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Weekly recipe",
"formatIds": [],
"caption": "New recipe every Friday. Save it for the weekend!",
"hashtags": "#recipe #friday",
"platforms": [
{
"platform": "instagram",
"type": "post",
"customCaption": None,
"additionalParams": {
"instagram_shareToFeed": True,
},
},
{
"platform": "x",
"type": None,
"customCaption": "New recipe is up",
"additionalParams": {},
"thread": [
{
"caption": "Full steps below",
},
],
},
],
},
)
response.raise_for_status()
data = response.json()["data"] Response 201
{
"data": {
"id": "5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38",
"name": "Weekly recipe",
"formats": [],
"captionPreview": "New recipe every Friday. Save it for the weekend!",
"platforms": [
{
"platform": "instagram",
"postCount": 1
},
{
"platform": "x",
"postCount": 2
}
],
"createdAt": "2026-11-18T09:30:00.000Z"
}
} Get a post preset
/organizations/{organizationId}/workspaces/{workspaceId}/presets/{presetId} presets.get - Scope
- organization:read
- Role permission
- Any of: Create posts (
post:create), Manage workspace settings (workspace:update) - Effect
- Changes nothing.
- Stability
- Beta. May still change before it is marked stable. Since 2026-11-20.
Returns everything a preset sets, in the shape a post takes it: formatIds, caption, hashtags, and per platform type, customCaption, additionalParams and thread. To apply it, copy these values into the post you create or edit (posts.create / posts.update), on every account of that platform; nothing is linked, so later changes to the preset don't touch the post. Formats deleted since are left out.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) | |
presetId required | path | string (uuid) |
Responses
200 OK
object · GetPresetResponse
dataobject · PresetDetailrequired6fields
idstringrequirednamestringrequiredformatIdsarray of stringrequiredIts formats that still exist in the workspace (GET …/formats).captionstringrequirednullableThe shared caption it sets;null: none.hashtagsstringrequirednullableThe hashtags it sets, space-separated (#launch #news);null: none.platformsarray of objectrequiredWhat it sets on each platform's accounts, one entry per platform.5fields in each item
platformstringrequiredtypestringrequirednullableThe first post's type on this platform (postorstory);nullleaves the account's default.One of:post,storycustomCaptionstringrequirednullableOwn caption of the first post;nulltakes the shared one.additionalParamsmap of anyrequiredThe platform's options the preset sets, keyed<platform>_<option>: the same keys and values as a post's per-accountadditionalParams(tiktok_privacyLevel,youtube_privacyStatus,instagram_trialReels,x_replySettings…). Only keys of this entry's platform are accepted, each checked like a post's (else400 VALIDATION_FAILED);{}sets none.threadarray of objectrequiredThe posts after the first (X, Bluesky, Threads), in order; empty for a single post.1field in each item
captionstringrequired
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 | PRESET_NOT_FOUND | This preset doesn't exist in this workspace. |
| 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 preset for Instagram and an X thread
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/presets/5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38" \
-H "Authorization: Bearer beplan_pat_…" const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/presets/5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38", {
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/presets/5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38",
headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"] Response 200
{
"data": {
"id": "5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38",
"name": "Weekly recipe",
"formatIds": [
"c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93"
],
"caption": "New recipe every Friday. Save it for the weekend!",
"hashtags": "#recipe #friday",
"platforms": [
{
"platform": "instagram",
"type": "post",
"customCaption": null,
"additionalParams": {
"instagram_shareToFeed": true
},
"thread": []
},
{
"platform": "x",
"type": null,
"customCaption": "New recipe is up",
"additionalParams": {},
"thread": [
{
"caption": "Full steps below"
}
]
}
]
}
} Update a post preset
/organizations/{organizationId}/workspaces/{workspaceId}/presets/{presetId} presets.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.
Replaces a preset's content. formatIds, caption and hashtags are required and replace the old values; name is optional. Each platform in platforms replaces that platform's first post (its thread too when sent); platforms left out are kept, and removedPlatforms drops platforms. Read the preset first (GET …/presets/:presetId) and send it back changed. Answers with the preset as the list shows it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) | |
presetId required | path | string (uuid) |
Request body JSON, required
object · UpdatePresetBody
namestringoptional1–255 charactersformatIdsarray of string (uuid)requiredFormats of this workspace (GET …/formats); replaces the list.[]: none.at most 50 itemscaptionstringrequirednullableThe shared caption;nullor blank: none.at most 63206 charactershashtagsstringrequirednullableHashtags, space-separated as a post stores them (#launch #news);nullor blank: none.at most 5000 charactersplatformsarray of objectrequiredWhat it sets per platform, at most one entry per platform.[]: none.at most 20 items5fields in each item
platformstring · SocialPlatformrequiredOne of:x,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,blueskytypestringrequirednullableOne of:post,storycustomCaptionstringrequirednullableat most 63206 charactersadditionalParamsmap of anyrequiredThe platform's options the preset sets, keyed<platform>_<option>: the same keys and values as a post's per-accountadditionalParams(tiktok_privacyLevel,youtube_privacyStatus,instagram_trialReels,x_replySettings…). Only keys of this entry's platform are accepted, each checked like a post's (else400 VALIDATION_FAILED);{}sets none.threadarray of objectoptionalThe posts after the first (X, Bluesky, Threads), in order: replaces the preset's; left out: kept.at most 24 items1field in each item
captionstringrequiredat most 63206 characters
removedPlatformsarray of stringoptionalPlatforms the preset stops configuring, applied afterplatforms.One of:x,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,blueskyat most 20 items
Responses
200 OK
object · SavePresetResponse
dataobject · PresetSummaryrequired6fields
idstringrequiredThe preset's id (a UUID).namestringrequiredformatsarray of objectrequiredIts formats that still exist in the workspace.3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
captionPreviewstringrequirednullableThe preset's shared caption, cut to its first 280 characters;nullwhen it sets none.platformsarray of objectrequiredOne entry per platform it configures, with how many posts it applies there (a thread has several).2fields in each item
platformstringrequiredpostCountnumberrequired
createdAtstring (date-time)requiredWhen it was saved, ISO 8601 UTC.
Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 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 | PRESET_NOT_FOUND | This preset doesn't exist in this workspace. |
| 404 | WORKSPACE_NOT_FOUND | This workspace doesn't exist or you don't have access to it. |
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 caption, X dropped
curl -X PATCH "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/presets/5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38" \
-H "Authorization: Bearer beplan_pat_…" \
-H "Content-Type: application/json" \
-d '{
"formatIds": [],
"caption": "A new recipe every Friday.",
"hashtags": "#recipe",
"platforms": [],
"removedPlatforms": [
"x"
]
}' const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/presets/5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38", {
method: "PATCH",
headers: {
Authorization: "Bearer beplan_pat_…",
"Content-Type": "application/json",
},
body: JSON.stringify({
"formatIds": [],
"caption": "A new recipe every Friday.",
"hashtags": "#recipe",
"platforms": [],
"removedPlatforms": [
"x"
]
}),
});
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/presets/5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38",
headers={"Authorization": "Bearer beplan_pat_…"},
json={
"formatIds": [],
"caption": "A new recipe every Friday.",
"hashtags": "#recipe",
"platforms": [],
"removedPlatforms": [
"x",
],
},
)
response.raise_for_status()
data = response.json()["data"] Response 200
{
"data": {
"id": "5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38",
"name": "Weekly recipe",
"formats": [],
"captionPreview": "A new recipe every Friday.",
"platforms": [
{
"platform": "instagram",
"postCount": 1
}
],
"createdAt": "2026-11-18T09:30:00.000Z"
}
} Delete a post preset
/organizations/{organizationId}/workspaces/{workspaceId}/presets/{presetId} presets.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 preset for good. Posts made from it keep their content (a preset is copied, not linked). Answers 204 with no body.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) | |
presetId 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 | ORGANIZATION_NOT_FOUND | This organization doesn't exist or you're not a member of it. |
| 404 | PRESET_NOT_FOUND | This preset doesn't exist in this workspace. |
| 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/presets/5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38" \
-H "Authorization: Bearer beplan_pat_…" const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/presets/5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38", {
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/presets/5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38",
headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status() Answers 204 with no content.
Duplicate a post preset
/organizations/{organizationId}/workspaces/{workspaceId}/presets/{presetId}/duplicate presets.duplicate - 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.
Copies a preset (formats, caption, hashtags and every platform's posts) under a new name, for a variant that starts from an existing one. Answers 201 with the copy as the list shows it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) | |
presetId required | path | string (uuid) |
Request body JSON, required
object · DuplicatePresetBody
namestringrequired1–255 characters
Responses
201 Created
object · SavePresetResponse
dataobject · PresetSummaryrequired6fields
idstringrequiredThe preset's id (a UUID).namestringrequiredformatsarray of objectrequiredIts formats that still exist in the workspace.3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
captionPreviewstringrequirednullableThe preset's shared caption, cut to its first 280 characters;nullwhen it sets none.platformsarray of objectrequiredOne entry per platform it configures, with how many posts it applies there (a thread has several).2fields in each item
platformstringrequiredpostCountnumberrequired
createdAtstring (date-time)requiredWhen it was saved, ISO 8601 UTC.
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 | PRESET_NOT_FOUND | This preset doesn't exist in this workspace. |
| 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
A copy for the holidays
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/presets/5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38/duplicate" \
-H "Authorization: Bearer beplan_pat_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Holiday recipe"
}' const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/presets/5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38/duplicate", {
method: "POST",
headers: {
Authorization: "Bearer beplan_pat_…",
"Idempotency-Key": crypto.randomUUID(),
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "Holiday recipe"
}),
});
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/presets/5c1e9a7d-3b2f-4d8e-a6c0-9f4b2e7d1a38/duplicate",
headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Holiday recipe",
},
)
response.raise_for_status()
data = response.json()["data"] Response 201
{
"data": {
"id": "0b7e4c2a-9d1f-4e3b-8a6c-5f2d9e1b7c40",
"name": "Holiday recipe",
"formats": [
{
"id": "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
"name": "reel",
"color": "#e4572e"
}
],
"captionPreview": "New recipe every Friday. Save it for the weekend!",
"platforms": [
{
"platform": "instagram",
"postCount": 1
},
{
"platform": "x",
"postCount": 2
}
],
"createdAt": "2026-11-18T09:30:00.000Z"
}
}