Start free
Docs · Presets

API reference

Presets

Read as Markdown

On this page
  1. List post presets
  2. Create a post preset
  3. Get a post preset
  4. Update a post preset
  5. Delete a post preset
  6. Duplicate a post preset

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

All 6 Presets operations

List post presets

GET /organizations/{organizationId}/workspaces/{workspaceId}/presets
Beta Reads only 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 objectrequired
    6fields in each item
    • idstringrequired
      The preset's id (a UUID).
    • namestringrequired
    • formatsarray of objectrequired
      Its formats that still exist in the workspace.
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • captionPreviewstringrequirednullable
      The preset's shared caption, cut to its first 280 characters; null when it sets none.
    • platformsarray of objectrequired
      One entry per platform it configures, with how many posts it applies there (a thread has several).
      2fields in each item
      • platformstringrequired
      • postCountnumberrequired
    • createdAtstring (date-time)required
      When 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
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/presets" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
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();
Python
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

POST /organizations/{organizationId}/workspaces/{workspaceId}/presets
Beta Changes data presets.create
Scope
workspaces:write
Role permission
Manage workspace settings (workspace: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-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

  • namestringrequired
    1–255 characters
  • formatIdsarray of string (uuid)required
    Formats of this workspace (GET …/formats); replaces the list. []: none.
    at most 50 items
  • captionstringrequirednullable
    The shared caption; null or blank: none.
    at most 63206 characters
  • hashtagsstringrequirednullable
    Hashtags, space-separated as a post stores them (#launch #news); null or blank: none.
    at most 5000 characters
  • platformsarray of objectrequired
    What it sets per platform, at most one entry per platform. []: none.
    at most 20 items
    5fields in each item
    • platformstring · SocialPlatformrequired
      One of: x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
    • typestringrequirednullable
      One of: post, story
    • customCaptionstringrequirednullable
      at most 63206 characters
    • additionalParamsmap of anyrequired
      The platform's options the preset sets, keyed <platform>_<option>: the same keys and values as a post's per-account additionalParams (tiktok_privacyLevel, youtube_privacyStatus, instagram_trialReels, x_replySettings…). Only keys of this entry's platform are accepted, each checked like a post's (else 400 VALIDATION_FAILED); {} sets none.
    • threadarray of objectoptional
      The posts after the first (X, Bluesky, Threads), in order: replaces the preset's; left out: kept.
      at most 24 items
      1field in each item
      • captionstringrequired
        at most 63206 characters

Responses

201 Created

object · SavePresetResponse

  • dataobject · PresetSummaryrequired
    6fields
    • idstringrequired
      The preset's id (a UUID).
    • namestringrequired
    • formatsarray of objectrequired
      Its formats that still exist in the workspace.
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • captionPreviewstringrequirednullable
      The preset's shared caption, cut to its first 280 characters; null when it sets none.
    • platformsarray of objectrequired
      One entry per platform it configures, with how many posts it applies there (a thread has several).
      2fields in each item
      • platformstringrequired
      • postCountnumberrequired
    • createdAtstring (date-time)required
      When 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
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"
        }
      ]
    }
  ]
}'
TypeScript
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();
Python
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

GET /organizations/{organizationId}/workspaces/{workspaceId}/presets/{presetId}
Beta Reads only 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 · PresetDetailrequired
    6fields
    • idstringrequired
    • namestringrequired
    • formatIdsarray of stringrequired
      Its formats that still exist in the workspace (GET …/formats).
    • captionstringrequirednullable
      The shared caption it sets; null: none.
    • hashtagsstringrequirednullable
      The hashtags it sets, space-separated (#launch #news); null: none.
    • platformsarray of objectrequired
      What it sets on each platform's accounts, one entry per platform.
      5fields in each item
      • platformstringrequired
      • typestringrequirednullable
        The first post's type on this platform (post or story); null leaves the account's default.
        One of: post, story
      • customCaptionstringrequirednullable
        Own caption of the first post; null takes the shared one.
      • additionalParamsmap of anyrequired
        The platform's options the preset sets, keyed <platform>_<option>: the same keys and values as a post's per-account additionalParams (tiktok_privacyLevel, youtube_privacyStatus, instagram_trialReels, x_replySettings…). Only keys of this entry's platform are accepted, each checked like a post's (else 400 VALIDATION_FAILED); {} sets none.
      • threadarray of objectrequired
        The 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
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_…"
TypeScript
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();
Python
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

PATCH /organizations/{organizationId}/workspaces/{workspaceId}/presets/{presetId}
Beta Changes data 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

  • namestringoptional
    1–255 characters
  • formatIdsarray of string (uuid)required
    Formats of this workspace (GET …/formats); replaces the list. []: none.
    at most 50 items
  • captionstringrequirednullable
    The shared caption; null or blank: none.
    at most 63206 characters
  • hashtagsstringrequirednullable
    Hashtags, space-separated as a post stores them (#launch #news); null or blank: none.
    at most 5000 characters
  • platformsarray of objectrequired
    What it sets per platform, at most one entry per platform. []: none.
    at most 20 items
    5fields in each item
    • platformstring · SocialPlatformrequired
      One of: x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
    • typestringrequirednullable
      One of: post, story
    • customCaptionstringrequirednullable
      at most 63206 characters
    • additionalParamsmap of anyrequired
      The platform's options the preset sets, keyed <platform>_<option>: the same keys and values as a post's per-account additionalParams (tiktok_privacyLevel, youtube_privacyStatus, instagram_trialReels, x_replySettings…). Only keys of this entry's platform are accepted, each checked like a post's (else 400 VALIDATION_FAILED); {} sets none.
    • threadarray of objectoptional
      The posts after the first (X, Bluesky, Threads), in order: replaces the preset's; left out: kept.
      at most 24 items
      1field in each item
      • captionstringrequired
        at most 63206 characters
  • removedPlatformsarray of stringoptional
    Platforms the preset stops configuring, applied after platforms.
    One of: x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
    at most 20 items

Responses

200 OK

object · SavePresetResponse

  • dataobject · PresetSummaryrequired
    6fields
    • idstringrequired
      The preset's id (a UUID).
    • namestringrequired
    • formatsarray of objectrequired
      Its formats that still exist in the workspace.
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • captionPreviewstringrequirednullable
      The preset's shared caption, cut to its first 280 characters; null when it sets none.
    • platformsarray of objectrequired
      One entry per platform it configures, with how many posts it applies there (a thread has several).
      2fields in each item
      • platformstringrequired
      • postCountnumberrequired
    • createdAtstring (date-time)required
      When 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
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"
  ]
}'
TypeScript
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();
Python
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

DELETE /organizations/{organizationId}/workspaces/{workspaceId}/presets/{presetId}
Beta Deletes 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
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_…"
TypeScript
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);
Python
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

POST /organizations/{organizationId}/workspaces/{workspaceId}/presets/{presetId}/duplicate
Beta Changes data presets.duplicate
Scope
workspaces:write
Role permission
Manage workspace settings (workspace: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-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

  • namestringrequired
    1–255 characters

Responses

201 Created

object · SavePresetResponse

  • dataobject · PresetSummaryrequired
    6fields
    • idstringrequired
      The preset's id (a UUID).
    • namestringrequired
    • formatsarray of objectrequired
      Its formats that still exist in the workspace.
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • captionPreviewstringrequirednullable
      The preset's shared caption, cut to its first 280 characters; null when it sets none.
    • platformsarray of objectrequired
      One entry per platform it configures, with how many posts it applies there (a thread has several).
      2fields in each item
      • platformstringrequired
      • postCountnumberrequired
    • createdAtstring (date-time)required
      When 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
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"
}'
TypeScript
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();
Python
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"
  }
}