Start free
Docs · Workspaces

API reference

Workspaces

Read as Markdown

On this page
  1. List workspaces
  2. Create a workspace
  3. List workspaces with their usage
  4. Delete a workspace
  5. List a workspace's formats
  6. Name the workspace after an account
  7. Set the logo
  8. Remove the logo
  9. Start a logo upload
  10. Get a workspace's settings
  11. Update a workspace's settings

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

All 11 Workspaces operations

List workspaces

GET /organizations/{organizationId}/workspaces
Beta Reads only workspaces.list
Scope
organization:read
Role permission
Any member who can see it
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Lists the organization's workspaces the token can reach: the ones the user's teams let them see, and, when the token was given only some workspaces of this organization, only those. Each has its id, name, time zone (wall times of its calendar are in that zone) and a short-lived avatar URL. Most operations take a workspace id from here.

Parameters

Name In Type Description
organizationId required path string 1–128 characters

Responses

200 OK

object · ListWorkspacesResponse

  • dataarray of objectrequired
    5fields in each item
    • idstringrequired
      The workspace's id (a UUID), the :workspaceId of workspace paths.
    • namestringrequired
    • avatarUrlstringrequirednullable
      Signed URL of the workspace's picture, valid one hour; null without one.
    • timezonestringrequirednullable
      IANA time zone (Europe/Paris) its calendar's wall times are in; null when never set (UTC).
    • defaultAccountIdsarray of stringoptional
      Social account ids a new post starts with (the default platforms); may name accounts disconnected since.

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.

Error codes

Status Code Message
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of 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 workspace

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces", {
  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",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": [
    {
      "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
      "name": "Northwind",
      "avatarUrl": null,
      "timezone": "Europe/Paris",
      "defaultAccountIds": []
    }
  ]
}

Create a workspace

POST /organizations/{organizationId}/workspaces
Beta Changes data workspaces.create
Scope
workspaces:manage
Role permission
Create workspaces (workspace:create)
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-19.

Creates a workspace in the organization with a name (3 to 255 characters, trimmed) and an IANA time zone, and answers 201 with it. Refused with 402 WORKSPACE_LIMIT_REACHED (details.limit) once the plan's workspaces are used up (GET …/workspaces/manage shows usage and limit). Needs a token given every workspace of the organization (403 INTEGRATION_SELECTION_TOO_NARROW otherwise). Connect its social accounts next (POST …/social-accounts/connect).

Parameters

Name In Type Description
organizationId required path string 1–128 characters

Request body JSON, required

object · CreateWorkspaceBody

  • namestringrequired
    3–255 characters
  • timezonestringrequired
    IANA time zone, e.g. Europe/Paris.
    1–64 characters

Responses

201 Created

object · CreateWorkspaceResponse

  • dataobject · WorkspaceSummaryrequired
    5fields
    • idstringrequired
      The workspace's id (a UUID), the :workspaceId of workspace paths.
    • namestringrequired
    • avatarUrlstringrequirednullable
      Signed URL of the workspace's picture, valid one hour; null without one.
    • timezonestringrequirednullable
      IANA time zone (Europe/Paris) its calendar's wall times are in; null when never set (UTC).
    • defaultAccountIdsarray of stringoptional
      Social account ids a new post starts with (the default platforms); may name accounts disconnected since.

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 402, 403, 404, 409, 413, 415, 429, 500.

Error codes

Status Code Message
400 VALIDATION_FAILED Some of the information sent is invalid.
402 WORKSPACE_LIMIT_REACHED Your plan's workspaces are used up. Upgrade or add workspaces to create another one.
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.
14 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.
403 INTEGRATION_SELECTION_TOO_NARROW This needs access to every workspace of the organization. Connect again and pick all workspaces.
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 workspace in New York time

curl
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Northwind US",
  "timezone": "America/New_York"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "Northwind US",
    "timezone": "America/New_York"
  }),
});
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",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "name": "Northwind US",
        "timezone": "America/New_York",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 201
{
  "data": {
    "id": "8a1e4f0c-2b7d-4c95-b3e6-0f9d2c7a5b18",
    "name": "Northwind US",
    "avatarUrl": null,
    "timezone": "America/New_York",
    "defaultAccountIds": []
  }
}

List workspaces with their usage

GET /organizations/{organizationId}/workspaces/manage
Beta Reads only workspaces.managed.list
Scope
organization:read
Role permission
Any of: Create workspaces (workspace:create), Manage workspace settings (workspace:update), Delete workspaces (workspace:delete)
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Lists the workspaces the token can reach with what each holds (storage in bytes, post counts, how many teams see it), plus how many workspaces the organization has (usage, all of them) against what the plan allows (limit, null = unlimited). For members who can create, edit or delete workspaces; GET …/workspaces is the plain list any member can read.

usage counts every workspace of the organization, also those the token was not given (the plan's allowance), so it can be larger than the list; workspaces holds only the ones the token can reach.

Parameters

Name In Type Description
organizationId required path string 1–128 characters

Responses

200 OK

object · ListManagedWorkspacesResponse

  • dataobjectrequired
    3fields
    • workspacesarray of objectrequired
      8fields in each item
      • idstringrequired
        The workspace's id (a UUID).
      • namestringrequired
      • logoUrlstringrequirednullable
        Signed, short-lived URL of the logo image; null without one.
      • timezonestringrequirednullable
        IANA time zone; null when never set (treated as UTC).
      • createdAtstringrequired
        When the workspace was created, ISO 8601 in UTC.
      • teamCountnumberrequired
        Teams that see it: the ones it's assigned to plus the ones that see every workspace.
      • storageBytesnumberrequired
        Bytes its media and uploaded Paper files take.
      • postsobjectrequired
        Post counts: all posts, posts waiting in review, and published posts created in the last 30 days.
        3fields
        • totalnumberrequired
        • inReviewnumberrequired
        • postedLast30Daysnumberrequired
    • usagenumberrequired
      Workspaces the organization has, counted against its plan (all of them).
    • limitnumberrequirednullable
      Workspaces the plan allows, add-ons included; null = unlimited.

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.
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 workspace on a three-workspace plan

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/manage" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/manage", {
  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/manage",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "workspaces": [
      {
        "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
        "name": "Northwind",
        "logoUrl": null,
        "timezone": "Europe/Paris",
        "createdAt": "2026-03-02T09:14:00.000Z",
        "teamCount": 1,
        "storageBytes": 734003200,
        "posts": {
          "total": 182,
          "inReview": 3,
          "postedLast30Days": 21
        }
      }
    ],
    "usage": 1,
    "limit": 3
  }
}

Delete a workspace

POST /organizations/{organizationId}/workspaces/{workspaceId}/delete
Beta Deletes workspaces.delete
Scope
workspaces:manage
Role permission
Delete workspaces (workspace:delete)
Effect
Deletes data or cannot be undone.
Idempotency
Send an Idempotency-Key to retry safely: the same key with the same body within 24 hours returns the stored response.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Deletes the workspace and everything in it, for good: posts, connected accounts, media, formats, posting slots and settings, and cancels its queued publications. confirmName must be the workspace's exact name (422 CONFIRMATION_MISMATCH otherwise). The organization's last workspace can't be deleted (409 LAST_WORKSPACE). Needs a token given every workspace of the organization. Answers 204 with no body.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Request body JSON, required

object · DeleteWorkspaceBody

  • confirmNamestringrequired
    The workspace's exact name (surrounding spaces ignored), to confirm the deletion.
    at most 305 characters

Responses

204 No content

No content.

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 422, 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 LAST_WORKSPACE An organization needs at least one workspace. Create another one first.
422 CONFIRMATION_MISMATCH The name typed doesn't match. Type it exactly to confirm.
14 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.
403 INTEGRATION_SELECTION_TOO_NARROW This needs access to every workspace of the organization. Connect again and pick all workspaces.
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

Confirmed by name

curl
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/delete" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "confirmName": "Northwind"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/delete", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "confirmName": "Northwind"
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/delete",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "confirmName": "Northwind",
    },
)
response.raise_for_status()

Answers 204 with no content.

List a workspace's formats

GET /organizations/{organizationId}/workspaces/{workspaceId}/formats
Beta Reads only workspaces.formats.list
Scope
organization:read
Role permission
Any member who can see it
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Lists the workspace's formats (its content types, such as "Reel" or "Tutorial"), by name, with their color. Posts and posting slots name formats by these ids.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Responses

200 OK

object · WorkspaceFormatsResponse

  • dataarray of objectrequired
    3fields in each item
    • idstringrequired
    • namestringrequired
    • colorstringrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.

Error codes

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

Two formats

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/formats", {
  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/formats",
    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"
    },
    {
      "id": "f0a7c3e9-1d5b-4b8a-8e2f-6c9d0b4a1e57",
      "name": "Tutorial",
      "color": "#17bebb"
    }
  ]
}

Name the workspace after an account

POST /organizations/{organizationId}/workspaces/{workspaceId}/identity-from-social-account
Beta Changes data workspaces.identity.adopt
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-19.

Gives the workspace the name of one of its connected social accounts (when it makes a valid workspace name) and, when the workspace has no logo yet, that account's profile picture. An existing logo is never replaced; the picture is best effort (the name still changes when it can't be used). Account ids come from GET …/social-accounts. Answers with the settings after the change.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Request body JSON, required

object · AdoptSocialAccountIdentityBody

  • socialAccountIdstring (uuid)required

Responses

200 OK

object · WorkspaceSettingsResponse

  • dataobject · WorkspaceSettingsrequired
    5fields
    • idstringrequired
      The workspace's id (a UUID).
    • namestringrequired
    • logoUrlstringrequirednullable
      Signed, short-lived URL of the logo image (read the settings again for a fresh one); null without one.
    • hasUploadedLogobooleanrequired
      An uploaded logo is set (it can be removed).
    • timezonestringrequirednullable
      IANA time zone (Europe/Paris) of the calendar and posting slots; null when never set (treated as UTC).

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 429, 500, 502.

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 SOCIAL_ACCOUNT_NOT_FOUND This account isn't connected to this workspace anymore.
404 WORKSPACE_NOT_FOUND This workspace doesn't exist or you don't have access to it.
502 UPSTREAM_FAILED A service we depend on didn't respond. Please try again.
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

Take the Instagram account's name

curl
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/identity-from-social-account" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "socialAccountId": "5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/identity-from-social-account", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "socialAccountId": "5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05"
  }),
});
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/identity-from-social-account",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "socialAccountId": "5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
    "name": "northwind.studio",
    "logoUrl": null,
    "hasUploadedLogo": false,
    "timezone": "Europe/Paris"
  }
}

Set the logo

PUT /organizations/{organizationId}/workspaces/{workspaceId}/logo
Beta Changes data workspaces.logo.set
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-19.

Makes an uploaded image the workspace's logo (after POST …/logo/uploads and the PUT of the file). The file is checked in storage: 404 AVATAR_UPLOAD_NOT_FOUND when nothing was uploaded under that id for this workspace, 422 AVATAR_UPLOAD_INVALID when it is empty, too large or not an accepted image. The previous uploaded logo is deleted. Answers with the settings after the change.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Request body JSON, required

object · SetWorkspaceLogoBody

  • uploadIdstringrequired
    1–200 characters

Responses

200 OK

object · WorkspaceSettingsResponse

  • dataobject · WorkspaceSettingsrequired
    5fields
    • idstringrequired
      The workspace's id (a UUID).
    • namestringrequired
    • logoUrlstringrequirednullable
      Signed, short-lived URL of the logo image (read the settings again for a fresh one); null without one.
    • hasUploadedLogobooleanrequired
      An uploaded logo is set (it can be removed).
    • timezonestringrequirednullable
      IANA time zone (Europe/Paris) of the calendar and posting slots; null when never set (treated as UTC).

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 413, 415, 422, 429, 500, 502.

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 AVATAR_UPLOAD_NOT_FOUND This picture didn't finish uploading or expired. Upload it again.
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.
422 AVATAR_UPLOAD_INVALID This picture can't be used. Upload a JPEG, PNG or WebP image under 5 MB.
502 UPSTREAM_FAILED A service we depend on didn't respond. Please try again.
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

Confirm an upload

curl
curl -X PUT "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/logo" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "uploadId": "6d2f9b1e-4a7c-4e3d-b8f0-1c5a9e7d2b46"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/logo", {
  method: "PUT",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "uploadId": "6d2f9b1e-4a7c-4e3d-b8f0-1c5a9e7d2b46"
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.put(
    "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/logo",
    headers={"Authorization": "Bearer beplan_pat_…"},
    json={
        "uploadId": "6d2f9b1e-4a7c-4e3d-b8f0-1c5a9e7d2b46",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
    "name": "Northwind",
    "logoUrl": "https://storage.beplan.io/organization-media/…?X-Amz-Signature=…",
    "hasUploadedLogo": true,
    "timezone": "Europe/Paris"
  }
}

Remove the logo

DELETE /organizations/{organizationId}/workspaces/{workspaceId}/logo
Beta Deletes workspaces.logo.remove
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-19.

Removes the workspace's logo (an uploaded file is deleted). Doing it again changes nothing. Answers with the settings after the change.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Responses

200 OK

object · WorkspaceSettingsResponse

  • dataobject · WorkspaceSettingsrequired
    5fields
    • idstringrequired
      The workspace's id (a UUID).
    • namestringrequired
    • logoUrlstringrequirednullable
      Signed, short-lived URL of the logo image (read the settings again for a fresh one); null without one.
    • hasUploadedLogobooleanrequired
      An uploaded logo is set (it can be removed).
    • timezonestringrequirednullable
      IANA time zone (Europe/Paris) of the calendar and posting slots; null when never set (treated as 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

No logo any more

curl
curl -X DELETE "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/logo" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/logo", {
  method: "DELETE",
  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.delete(
    "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/logo",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
    "name": "Northwind",
    "logoUrl": null,
    "hasUploadedLogo": false,
    "timezone": "Europe/Paris"
  }
}

Start a logo upload

POST /organizations/{organizationId}/workspaces/{workspaceId}/logo/uploads
Beta Changes data workspaces.logoUploads.create
Scope
workspaces:write
Role permission
Manage workspace settings (workspace:update)
Effect
Changes data in Beplan.
Idempotency
Single-flight: an Idempotency-Key only stops a second run while the first is running. Its answer carries signed links and is never stored, so a repeat afterwards runs again with fresh links.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

First step of changing the workspace's logo: declare the image (WebP, JPEG or PNG, at most 5 MiB; a square image looks best) and get a signed storage URL, valid 10 minutes. PUT the file there in one request with the same Content-Type and no Authorization header, then confirm with PUT …/logo and the uploadId. Nothing changes until then. Answers 201.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Request body JSON, required

object · CreateWorkspaceLogoUploadBody

  • mimeTypestringrequired
    One of: image/webp, image/jpeg, image/png
  • sizeintegerrequired
    The file's size in bytes.
    above 0 to 5242880

Responses

201 Created

object · WorkspaceLogoUploadResponse

  • dataobject · AvatarUploadrequired
    2fields
    • uploadIdstringrequired
      The upload to confirm once the file is uploaded.
    • urlstringrequired
      Signed storage URL, valid 10 minutes: send the file there in one PUT with the declared Content-Type and no Authorization header.

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.
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 120 KiB WebP

curl
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/logo/uploads" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "mimeType": "image/webp",
  "size": 122880
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/logo/uploads", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "mimeType": "image/webp",
    "size": 122880
  }),
});
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/logo/uploads",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "mimeType": "image/webp",
        "size": 122880,
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 201
{
  "data": {
    "uploadId": "6d2f9b1e-4a7c-4e3d-b8f0-1c5a9e7d2b46",
    "url": "https://storage.beplan.io/organization-media/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/logo-6d2f9b1e-4a7c-4e3d-b8f0-1c5a9e7d2b46?X-Amz-Signature=…"
  }
}

Get a workspace's settings

GET /organizations/{organizationId}/workspaces/{workspaceId}/settings
Beta Reads only workspaces.settings.get
Scope
organization:read
Role permission
Any member who can see it
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Returns the workspace's general settings: name, logo (a short-lived URL, and whether an uploaded logo is set) and IANA time zone, in which the calendar and posting slots read their wall times. Any member who sees the workspace can read them.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Responses

200 OK

object · WorkspaceSettingsResponse

  • dataobject · WorkspaceSettingsrequired
    5fields
    • idstringrequired
      The workspace's id (a UUID).
    • namestringrequired
    • logoUrlstringrequirednullable
      Signed, short-lived URL of the logo image (read the settings again for a fresh one); null without one.
    • hasUploadedLogobooleanrequired
      An uploaded logo is set (it can be removed).
    • timezonestringrequirednullable
      IANA time zone (Europe/Paris) of the calendar and posting slots; null when never set (treated as UTC).

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.

Error codes

Status Code Message
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 workspace in Paris time

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/settings" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/settings", {
  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/settings",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
    "name": "Northwind",
    "logoUrl": null,
    "hasUploadedLogo": false,
    "timezone": "Europe/Paris"
  }
}

Update a workspace's settings

PATCH /organizations/{organizationId}/workspaces/{workspaceId}/settings
Beta Changes data workspaces.settings.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-19.

Renames the workspace (3 to 255 characters, trimmed) and/or changes its IANA time zone; only the fields sent change. Changing the time zone moves what wall times mean for its calendar and posting slots; already scheduled posts keep their exact moment. Answers with the settings after the change.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Request body JSON, required

object · UpdateWorkspaceSettingsBody

  • namestringoptional
    3–255 characters
  • timezonestringoptional
    IANA time zone, e.g. America/New_York.
    1–64 characters

Responses

200 OK

object · WorkspaceSettingsResponse

  • dataobject · WorkspaceSettingsrequired
    5fields
    • idstringrequired
      The workspace's id (a UUID).
    • namestringrequired
    • logoUrlstringrequirednullable
      Signed, short-lived URL of the logo image (read the settings again for a fresh one); null without one.
    • hasUploadedLogobooleanrequired
      An uploaded logo is set (it can be removed).
    • timezonestringrequirednullable
      IANA time zone (Europe/Paris) of the calendar and posting slots; null when never set (treated as 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 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.
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

Move to London time

curl
curl -X PATCH "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/settings" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "timezone": "Europe/London"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/settings", {
  method: "PATCH",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "timezone": "Europe/London"
  }),
});
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/settings",
    headers={"Authorization": "Bearer beplan_pat_…"},
    json={
        "timezone": "Europe/London",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
    "name": "Northwind",
    "logoUrl": null,
    "hasUploadedLogo": false,
    "timezone": "Europe/London"
  }
}