Start free
Docs · Social accounts

API reference

Social accounts

Read as Markdown

On this page
  1. List connected accounts
  2. Get a link to connect an account
  3. Disconnect an account
  4. List a Discord server's channels
  5. Get the Discord bot's name and avatar
  6. Set the Discord bot's name and avatar
  7. List a Discord server's custom emoji
  8. List a Discord server's roles
  9. List a Pinterest account's boards
  10. Sync an account now
  11. Pick the page or channel to post as
  12. List pages or channels to post as
  13. Get what a TikTok creator can post
  14. List YouTube categories

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

All 14 Social accounts operations

List connected accounts

GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts
Beta Reads only socialAccounts.list
Scope
accounts: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 connected social accounts (one per platform at most) with their health: status (disconnected means a person must reconnect it, and posts to it fail meanwhile), missing permissions, and whether a page or channel must still be picked (needsSetup, setupStep). Posts name accounts by these ids. Tokens never leave Beplan.

Parameters

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

Responses

200 OK

object · ListSocialAccountsResponse

  • dataarray of objectrequired
    15fields in each item
    • idstringrequired
      The account's id in Beplan (a UUID): what posts and the other account routes take.
    • platformstring · SocialPlatformrequired
      One of (may gain values): x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
    • usernamestringrequired
      Name shown for it: handle, page, organization or channel name.
    • displayNamestringoptionalnullable
    • avatarUrlstringrequirednullable
      Profile picture URL given by the platform (it may expire); null without one.
    • statusstringrequired
      connected: works. syncing: a sync is running. reconnecting: Beplan is retrying its token. disconnected: a person must reconnect it (POST …/social-accounts/connect); posts to it fail meanwhile.
      One of (may gain values): connected, syncing, reconnecting, disconnected
    • missingPermissionsbooleanrequired
      The platform grant lacks permissions Beplan needs: reconnecting asks for them again.
    • needsSetupbooleanrequired
      A page, organization or channel must still be picked before it can post (setupStep says which).
    • setupStepstringrequirednullable
      What to pick (GET …/targets, then PUT …/target); null when nothing is left to pick.
      One of (may gain values): select_facebook_page, select_linkedin_page, select_youtube_channel
    • linkedinKindstringrequirednullable
      LinkedIn only: posts as the member (personal) or a page (page); null for other platforms.
      One of: personal, page
    • lastErrorCodestringrequirednullable
      Why the last token refresh failed, null when it didn't. New codes may appear.
      One of (may gain values): access_revoked, token_expired, missing_permissions, rate_limited, provider_error
    • connectedAtstring (date-time)required
      When it was connected, ISO 8601 in UTC.
    • syncedAtstring (date-time)requirednullable
      Last successful sync of its name and picture (UTC), null when unknown.
    • profileUrlstringoptionalnullable
    • xSubscribedbooleanoptional

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

An Instagram account

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts", {
  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/social-accounts",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": [
    {
      "id": "5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05",
      "platform": "instagram",
      "username": "northwind.studio",
      "displayName": null,
      "avatarUrl": null,
      "status": "connected",
      "missingPermissions": false,
      "needsSetup": false,
      "setupStep": null,
      "linkedinKind": null,
      "lastErrorCode": null,
      "connectedAt": "2026-03-02T09:20:00.000Z",
      "syncedAt": "2026-11-19T04:00:00.000Z",
      "profileUrl": "https://www.instagram.com/northwind.studio",
      "xSubscribed": false
    }
  ]
}

Get a link to connect an account

POST /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/connect
Beta Acts outside Beplan socialAccounts.connect
Scope
accounts:write
Role permission
Connect accounts (account:create)
Effect
Leaves Beplan: publishes, sends a message or an email, or spends paid quota. Counts against the smaller budget of operations that leave 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.

Starts connecting (or reconnecting) the workspace's account of a platform and returns authorizeUrl, the platform's sign-in page, valid 10 minutes. A person must open it in a browser where they are signed in to Beplan as the same user the token belongs to: they approve on the platform, which sends them back to the Beplan app, where the connection finishes. The API can't finish it alone. Show or send the link to that person, then poll GET …/social-accounts until the account appears or turns connected. Bluesky needs blueskyHandle; LinkedIn takes linkedinKind (personal by default). 503 SOCIAL_PLATFORM_UNAVAILABLE when the platform isn't available.

Parameters

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

Request body JSON, required

object · ConnectSocialAccountBody

  • platformstring · SocialPlatformrequired
    One of: x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
  • returnTostringoptional
    Which Beplan app page the browser lands on afterwards: settings (default) or onboarding.
    One of: settings, onboarding
  • linkedinKindstringoptional
    LinkedIn only: connect the member (personal, default) or a page.
    One of: personal, page
  • blueskyHandlestringoptional
    Bluesky only (required there): the handle (name.bsky.social) or DID to sign in with.
    1–253 characters

Responses

200 OK

object · ConnectSocialAccountResponse

  • dataobjectrequired
    1field
    • authorizeUrlstringrequired
      The platform's sign-in page, valid 10 minutes. A person must open it in a browser where they are signed in to Beplan as the same user; the platform then returns to the Beplan app, which finishes the connection.

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

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.
422 BLUESKY_HANDLE_NOT_FOUND We couldn't find this Bluesky handle. Check it and try again.
502 UPSTREAM_FAILED A service we depend on didn't respond. Please try again.
503 SOCIAL_PLATFORM_UNAVAILABLE This platform can't be connected right now. Try again later.
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

Connect an X account

curl
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/connect" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "platform": "x"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/connect", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "platform": "x"
  }),
});
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/social-accounts/connect",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "platform": "x",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "authorizeUrl": "https://x.com/i/oauth2/authorize?response_type=code&client_id=…&state=sc_…"
  }
}

Disconnect an account

DELETE /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}
Beta Deletes socialAccounts.disconnect
Scope
accounts:write
Role permission
Disconnect accounts (account:delete)
Effect
Deletes data or cannot be undone.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Disconnects the account for good: it is removed from the workspace now and from its default platforms, its queued work is cancelled, and its post history and analytics are deleted in the background. Connecting the same account again later starts from scratch. Answers 204 with no body.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
accountId 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 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.
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

Disconnect an account

curl
curl -X DELETE "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05", {
  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/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()

Answers 204 with no content.

List a Discord server's channels

GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/discord-channels
Beta Reads only Calls a platform socialAccounts.discordChannels.list
Scope
accounts:read
Role permission
Any of: Create posts (post:create), Edit posts (post:update)
Effect
Changes nothing. Calls a social platform when invoked, so it counts against the smaller budget of operations that leave Beplan.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Lists the channels of the Discord account's server a message can go to (text, announcement, thread), in the server's order, asked from Discord now, with the permissions Beplan's bot lacks in each (viewChannel, sendMessages or manageWebhooks missing: it can't post there at all). A Discord post names its channel by one of these ids. For members who can create or edit posts. Account ids come from GET …/social-accounts.

Parameters

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

Responses

200 OK

object · DiscordChannelsResponse

  • dataarray of objectrequired
    4fields in each item
    • idstringrequired
      Discord's channel id: the channel a Discord post's options name.
    • namestringrequired
    • kindstringrequired
      One of (may gain values): text, announcement, thread
    • missingPermissionsarray of stringoptional
      Permissions Beplan's bot lacks in this channel (empty: none). Without viewChannel, sendMessages or manageWebhooks it can't post there at all. Absent when Discord didn't say.
      One of (may gain values): viewChannel, sendMessages, manageWebhooks, readMessageHistory, attachFiles, embedLinks, createPublicThreads, mentionEveryone, pinMessages, sendPolls

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

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 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.
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 channel the bot can post to

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-channels" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-channels", {
  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/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-channels",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": [
    {
      "id": "1180204761402126408",
      "name": "announcements",
      "kind": "announcement",
      "missingPermissions": []
    }
  ]
}

Get the Discord bot's name and avatar

GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/discord-customization
Beta Reads only socialAccounts.discordCustomization.get
Scope
accounts:read
Role permission
Connect accounts (account:create)
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

For a Discord account: the custom name and avatar Beplan's bot signs its posts with in the server (null: Discord's default), and the server's name. Needs a plan with Discord customization (402 PLAN_UPGRADE_REQUIRED otherwise). Account ids come from GET …/social-accounts.

Parameters

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

Responses

200 OK

object · DiscordCustomizationResponse

  • dataobjectrequired
    2fields
    • customizationobject · DiscordCustomizationrequired
      2fields
      • usernamestringrequirednullable
        The bot's custom name in the server; null for Discord's default.
      • avatarUrlstringrequirednullable
        URL of the bot's custom avatar image; null for Discord's default.
    • serverNamestringrequirednullable

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

Error codes

Status Code Message
402 PLAN_UPGRADE_REQUIRED Your current plan doesn't include this feature.
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.
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

Discord's defaults

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-customization" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-customization", {
  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/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-customization",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "customization": {
      "username": null,
      "avatarUrl": null
    },
    "serverName": "Northwind fans"
  }
}

Set the Discord bot's name and avatar

PUT /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/discord-customization
Beta Changes data socialAccounts.discordCustomization.update
Scope
accounts:write
Role permission
Connect accounts (account:create)
Effect
Changes data in Beplan.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Replaces the name (1 to 80 characters) and avatar (an http(s) image URL) Beplan's bot signs its next posts with in the account's Discord server; null puts Discord's default back. Needs a plan with Discord customization (402 PLAN_UPGRADE_REQUIRED otherwise). Answers with the customization after the change.

Parameters

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

Request body JSON, required

object · UpdateDiscordCustomizationBody

  • usernamestringrequirednullable
    1–80 characters
  • avatarUrlstring (uri)requirednullable
    at most 2048 characters

Responses

200 OK

object · DiscordCustomizationResponse

  • dataobjectrequired
    2fields
    • customizationobject · DiscordCustomizationrequired
      2fields
      • usernamestringrequirednullable
        The bot's custom name in the server; null for Discord's default.
      • avatarUrlstringrequirednullable
        URL of the bot's custom avatar image; null for Discord's default.
    • serverNamestringrequirednullable

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

Error codes

Status Code Message
400 VALIDATION_FAILED Some of the information sent is invalid.
402 PLAN_UPGRADE_REQUIRED Your current plan doesn't include this feature.
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.
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

A named bot with Discord's avatar

curl
curl -X PUT "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-customization" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "username": "Northwind bot",
  "avatarUrl": null
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-customization", {
  method: "PUT",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "username": "Northwind bot",
    "avatarUrl": null
  }),
});
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/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-customization",
    headers={"Authorization": "Bearer beplan_pat_…"},
    json={
        "username": "Northwind bot",
        "avatarUrl": None,
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "customization": {
      "username": "Northwind bot",
      "avatarUrl": null
    },
    "serverName": "Northwind fans"
  }
}

List a Discord server's custom emoji

GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/discord-emojis
Beta Reads only Calls a platform socialAccounts.discordEmojis.list
Scope
accounts:read
Role permission
Any of: Create posts (post:create), Edit posts (post:update)
Effect
Changes nothing. Calls a social platform when invoked, so it counts against the smaller budget of operations that leave Beplan.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Lists the custom emoji of the Discord account's server that Beplan's bot can post, by name, with Discord's image of each, asked from Discord now. Use one in a message as <:name:id> (<a:name:id> when animated). For members who can create or edit posts. Account ids come from GET …/social-accounts.

Parameters

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

Responses

200 OK

object · DiscordEmojisResponse

  • dataarray of objectrequired
    4fields in each item
    • idstringrequired
    • namestringrequired
    • animatedbooleanrequired
    • imageUrlstringrequired

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

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 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.
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 emoji

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-emojis" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-emojis", {
  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/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-emojis",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": [
    {
      "id": "1180204761402126611",
      "name": "northwind",
      "animated": false,
      "imageUrl": "https://cdn.discordapp.com/emojis/1180204761402126611.webp?size=48"
    }
  ]
}

List a Discord server's roles

GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/discord-roles
Beta Reads only Calls a platform socialAccounts.discordRoles.list
Scope
accounts:read
Role permission
Any of: Create posts (post:create), Edit posts (post:update)
Effect
Changes nothing. Calls a social platform when invoked, so it counts against the smaller budget of operations that leave Beplan.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Lists the roles of the Discord account's server a message can mention, highest first, asked from Discord now. For members who can create or edit posts. Account ids come from GET …/social-accounts.

Parameters

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

Responses

200 OK

object · DiscordRolesResponse

  • dataarray of objectrequired
    3fields in each item
    • idstringrequired
      Discord's role id, to mention it (<@&id>).
    • namestringrequired
    • colorstringrequirednullable
      The role's color as #rrggbb, null without one.

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

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 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.
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 role

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-roles" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-roles", {
  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/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/discord-roles",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": [
    {
      "id": "1180204761402126500",
      "name": "Fans",
      "color": "#ff0000"
    }
  ]
}

List a Pinterest account's boards

GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/pinterest-boards
Beta Reads only Calls a platform socialAccounts.pinterestBoards.list
Scope
accounts:read
Role permission
Any of: Create posts (post:create), Edit posts (post:update)
Effect
Changes nothing. Calls a social platform when invoked, so it counts against the smaller budget of operations that leave Beplan.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Lists the boards a Pinterest account can pin to, by name, asked from Pinterest now (never stored). A Pinterest post names its board by one of these ids. For members who can create or edit posts. Account ids come from GET …/social-accounts.

Parameters

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

Responses

200 OK

object · PinterestBoardsResponse

  • dataarray of objectrequired
    3fields in each item
    • idstringrequired
      Pinterest's board id: the board a Pinterest post's options name.
    • namestringrequired
    • isSecretbooleanrequired
      A secret board (only its owner and collaborators see it).

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

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 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.
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 boards

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/pinterest-boards" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/pinterest-boards", {
  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/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/pinterest-boards",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": [
    {
      "id": "917045486532127391",
      "name": "Launches",
      "isSecret": false
    },
    {
      "id": "917045486532127402",
      "name": "Moodboard",
      "isSecret": true
    }
  ]
}

Sync an account now

POST /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/sync
Beta Changes data Calls a platform socialAccounts.sync
Scope
accounts:write
Role permission
Connect accounts (account:create)
Effect
Changes data in Beplan. Calls a social platform when invoked, so it counts against the smaller budget of operations that leave 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.

Refreshes the account's name and picture from its platform now instead of at its next daily sync. Answers at once with the account (status: syncing); poll GET …/social-accounts until it reads connected (or disconnected when the platform refused). Asking again while a sync is queued queues nothing more. 409 SOCIAL_ACCOUNT_RECONNECT_REQUIRED for a disconnected account: it must be reconnected instead.

Parameters

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

Responses

200 OK

object · SyncSocialAccountResponse

  • dataobject · SocialAccountrequired
    15fields
    • idstringrequired
      The account's id in Beplan (a UUID): what posts and the other account routes take.
    • platformstring · SocialPlatformrequired
      One of (may gain values): x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
    • usernamestringrequired
      Name shown for it: handle, page, organization or channel name.
    • displayNamestringoptionalnullable
    • avatarUrlstringrequirednullable
      Profile picture URL given by the platform (it may expire); null without one.
    • statusstringrequired
      connected: works. syncing: a sync is running. reconnecting: Beplan is retrying its token. disconnected: a person must reconnect it (POST …/social-accounts/connect); posts to it fail meanwhile.
      One of (may gain values): connected, syncing, reconnecting, disconnected
    • missingPermissionsbooleanrequired
      The platform grant lacks permissions Beplan needs: reconnecting asks for them again.
    • needsSetupbooleanrequired
      A page, organization or channel must still be picked before it can post (setupStep says which).
    • setupStepstringrequirednullable
      What to pick (GET …/targets, then PUT …/target); null when nothing is left to pick.
      One of (may gain values): select_facebook_page, select_linkedin_page, select_youtube_channel
    • linkedinKindstringrequirednullable
      LinkedIn only: posts as the member (personal) or a page (page); null for other platforms.
      One of: personal, page
    • lastErrorCodestringrequirednullable
      Why the last token refresh failed, null when it didn't. New codes may appear.
      One of (may gain values): access_revoked, token_expired, missing_permissions, rate_limited, provider_error
    • connectedAtstring (date-time)required
      When it was connected, ISO 8601 in UTC.
    • syncedAtstring (date-time)requirednullable
      Last successful sync of its name and picture (UTC), null when unknown.
    • profileUrlstringoptionalnullable
    • xSubscribedbooleanoptional

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 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 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.
409 SOCIAL_ACCOUNT_RECONNECT_REQUIRED This account is disconnected. Reconnect it, then try again.
14 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.
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

Sync an account

curl
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/sync" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/sync", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
  },
});
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/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/sync",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "id": "5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05",
    "platform": "instagram",
    "username": "northwind.studio",
    "displayName": null,
    "avatarUrl": null,
    "status": "syncing",
    "missingPermissions": false,
    "needsSetup": false,
    "setupStep": null,
    "linkedinKind": null,
    "lastErrorCode": null,
    "connectedAt": "2026-03-02T09:20:00.000Z",
    "syncedAt": "2026-11-19T04:00:00.000Z",
    "profileUrl": "https://www.instagram.com/northwind.studio",
    "xSubscribed": false
  }
}

Pick the page or channel to post as

PUT /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/target
Beta Changes data Calls a platform socialAccounts.target.select
Scope
accounts:write
Role permission
Connect accounts (account:create)
Effect
Changes data in Beplan. Calls a social platform when invoked, so it counts against the smaller budget of operations that leave Beplan.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Points a Facebook, LinkedIn page or YouTube account at one of its targets (GET …/targets): the account then posts as that page, organization or channel, and takes its name and picture. 422 SOCIAL_ACCOUNT_TARGET_NOT_FOUND when the platform doesn't list that target for the account. Answers with the account after the change.

Parameters

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

Request body JSON, required

object · SelectSocialAccountTargetBody

  • targetIdstringrequired
    A target's id from GET …/targets.
    1–128 characters

Responses

200 OK

object · SocialAccountResponse

  • dataobject · SocialAccountrequired
    15fields
    • idstringrequired
      The account's id in Beplan (a UUID): what posts and the other account routes take.
    • platformstring · SocialPlatformrequired
      One of (may gain values): x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
    • usernamestringrequired
      Name shown for it: handle, page, organization or channel name.
    • displayNamestringoptionalnullable
    • avatarUrlstringrequirednullable
      Profile picture URL given by the platform (it may expire); null without one.
    • statusstringrequired
      connected: works. syncing: a sync is running. reconnecting: Beplan is retrying its token. disconnected: a person must reconnect it (POST …/social-accounts/connect); posts to it fail meanwhile.
      One of (may gain values): connected, syncing, reconnecting, disconnected
    • missingPermissionsbooleanrequired
      The platform grant lacks permissions Beplan needs: reconnecting asks for them again.
    • needsSetupbooleanrequired
      A page, organization or channel must still be picked before it can post (setupStep says which).
    • setupStepstringrequirednullable
      What to pick (GET …/targets, then PUT …/target); null when nothing is left to pick.
      One of (may gain values): select_facebook_page, select_linkedin_page, select_youtube_channel
    • linkedinKindstringrequirednullable
      LinkedIn only: posts as the member (personal) or a page (page); null for other platforms.
      One of: personal, page
    • lastErrorCodestringrequirednullable
      Why the last token refresh failed, null when it didn't. New codes may appear.
      One of (may gain values): access_revoked, token_expired, missing_permissions, rate_limited, provider_error
    • connectedAtstring (date-time)required
      When it was connected, ISO 8601 in UTC.
    • syncedAtstring (date-time)requirednullable
      Last successful sync of its name and picture (UTC), null when unknown.
    • profileUrlstringoptionalnullable
    • xSubscribedbooleanoptional

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 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.
422 SOCIAL_ACCOUNT_SETUP_NOT_AVAILABLE This account has nothing to set up.
422 SOCIAL_ACCOUNT_TARGET_NOT_FOUND This page or channel isn't available on the connected account anymore.
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

Post as a Facebook page

curl
curl -X PUT "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/target" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "targetId": "104829375610284"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/target", {
  method: "PUT",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "targetId": "104829375610284"
  }),
});
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/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/target",
    headers={"Authorization": "Bearer beplan_pat_…"},
    json={
        "targetId": "104829375610284",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "id": "5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05",
    "platform": "facebook",
    "username": "Northwind Studio",
    "displayName": null,
    "avatarUrl": null,
    "status": "connected",
    "missingPermissions": false,
    "needsSetup": false,
    "setupStep": null,
    "linkedinKind": null,
    "lastErrorCode": null,
    "connectedAt": "2026-03-02T09:20:00.000Z",
    "syncedAt": "2026-11-19T04:00:00.000Z",
    "profileUrl": null,
    "xSubscribed": false
  }
}

List pages or channels to post as

GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/targets
Beta Reads only Calls a platform socialAccounts.targets.list
Scope
accounts:write
Role permission
Connect accounts (account:create)
Effect
Changes nothing. Calls a social platform when invoked, so it counts against the smaller budget of operations that leave Beplan.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

For a Facebook, LinkedIn page or YouTube account: the pages, organizations or channels it can post as, asked from the platform now. Pick one with PUT …/target when the account has needsSetup. 422 SOCIAL_ACCOUNT_SETUP_NOT_AVAILABLE for a platform that posts as the profile itself. Account ids come from GET …/social-accounts.

Parameters

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

Responses

200 OK

object · SocialAccountTargetsResponse

  • dataobjectrequired
    2fields
    • stepstringrequired
      One of (may gain values): select_facebook_page, select_linkedin_page, select_youtube_channel
    • targetsarray of objectrequired
      3fields in each item
      • idstringrequired
        The platform's id of the page, organization or channel.
      • namestringrequired
      • avatarUrlstringrequirednullable
        Picture URL given by the platform (it may expire); null without one.

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

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 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.
422 SOCIAL_ACCOUNT_SETUP_NOT_AVAILABLE This account has nothing to set up.
502 UPSTREAM_FAILED A service we depend on didn't respond. Please try again.
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 Facebook account's pages

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/targets" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/targets", {
  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/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/targets",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "step": "select_facebook_page",
    "targets": [
      {
        "id": "104829375610284",
        "name": "Northwind Studio",
        "avatarUrl": null
      }
    ]
  }
}

Get what a TikTok creator can post

GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/tiktok-creator-info
Beta Reads only Calls a platform socialAccounts.tiktokCreatorInfo.get
Scope
accounts:read
Role permission
Any of: Create posts (post:create), Edit posts (post:update)
Effect
Changes nothing. Calls a social platform when invoked, so it counts against the smaller budget of operations that leave Beplan.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Asks TikTok, now, what this TikTok account may post: the privacy levels it can pick (for any post, and for videos), interactions it turned off (comments, duets, stitches) and its longest video in seconds. TikTok requires a post to follow it: read it before creating or scheduling a TikTok post, and show the person whose account the post goes to (nickname, username). For members who can create or edit posts. Account ids come from GET …/social-accounts.

Parameters

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

Responses

200 OK

object · TiktokCreatorInfoResponse

  • dataobject · TiktokCreatorInforequired
    10fields
    • nicknamestringrequired
    • usernamestringrequired
    • avatarUrlstringrequirednullable
    • privacyLevelsarray of stringrequired
      One of (may gain values): PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY
    • videoPrivacyLevelsarray of stringrequired
      One of (may gain values): PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY
    • commentDisabledbooleanrequired
    • duetDisabledbooleanrequired
    • stitchDisabledbooleanrequired
    • maxVideoDurationSecondsnumberrequirednullable
    • businessApibooleanrequired
      default false

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

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 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.
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 public creator

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/tiktok-creator-info" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/tiktok-creator-info", {
  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/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/tiktok-creator-info",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "nickname": "Northwind",
    "username": "northwind.studio",
    "avatarUrl": null,
    "privacyLevels": [
      "PUBLIC_TO_EVERYONE",
      "MUTUAL_FOLLOW_FRIENDS",
      "SELF_ONLY"
    ],
    "videoPrivacyLevels": [
      "PUBLIC_TO_EVERYONE",
      "MUTUAL_FOLLOW_FRIENDS",
      "SELF_ONLY"
    ],
    "commentDisabled": false,
    "duetDisabled": false,
    "stitchDisabled": false,
    "maxVideoDurationSeconds": 600,
    "businessApi": false
  }
}

List YouTube categories

GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/youtube-categories
Beta Reads only Calls a platform socialAccounts.youtubeCategories.list
Scope
accounts:read
Role permission
Any of: Create posts (post:create), Edit posts (post:update)
Effect
Changes nothing. Calls a social platform when invoked, so it counts against the smaller budget of operations that leave Beplan.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Lists the video categories a YouTube account can use, for its channel's region (the US list when the channel has none), by title, asked from YouTube now. A YouTube post names its category by one of these ids. For members who can create or edit posts. Account ids come from GET …/social-accounts.

Parameters

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

Responses

200 OK

object · YoutubeCategoriesResponse

  • dataarray of objectrequired
    2fields in each item
    • idstringrequired
      YouTube's category id: the one a YouTube post's options name.
      matches ^\d{1,4}$
    • titlestringrequired
      The category's title, in the channel's region language.

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

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 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.
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 categories

curl
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/youtube-categories" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/youtube-categories", {
  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/social-accounts/5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05/youtube-categories",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": [
    {
      "id": "22",
      "title": "People & Blogs"
    },
    {
      "id": "28",
      "title": "Science & Technology"
    }
  ]
}