API reference
Social accounts
On this page
- List connected accounts
- Get a link to connect an account
- Disconnect an account
- List a Discord server's channels
- Get the Discord bot's name and avatar
- Set the Discord bot's name and avatar
- List a Discord server's custom emoji
- List a Discord server's roles
- List a Pinterest account's boards
- Sync an account now
- Pick the page or channel to post as
- List pages or channels to post as
- Get what a TikTok creator can post
- 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
- GET List connected accounts
…/workspaces/{workspaceId}/social-accounts - POST Get a link to connect an account
…/workspaces/{workspaceId}/social-accounts/connect - DELETE Disconnect an account
…/workspaces/{workspaceId}/social-accounts/{accountId} - GET List a Discord server's channels
…/workspaces/{workspaceId}/social-accounts/{accountId}/discord-channels - GET Get the Discord bot's name and avatar
…/workspaces/{workspaceId}/social-accounts/{accountId}/discord-customization - PUT Set the Discord bot's name and avatar
…/workspaces/{workspaceId}/social-accounts/{accountId}/discord-customization - GET List a Discord server's custom emoji
…/workspaces/{workspaceId}/social-accounts/{accountId}/discord-emojis - GET List a Discord server's roles
…/workspaces/{workspaceId}/social-accounts/{accountId}/discord-roles - GET List a Pinterest account's boards
…/workspaces/{workspaceId}/social-accounts/{accountId}/pinterest-boards - POST Sync an account now
…/workspaces/{workspaceId}/social-accounts/{accountId}/sync - PUT Pick the page or channel to post as
…/workspaces/{workspaceId}/social-accounts/{accountId}/target - GET List pages or channels to post as
…/workspaces/{workspaceId}/social-accounts/{accountId}/targets - GET Get what a TikTok creator can post
…/workspaces/{workspaceId}/social-accounts/{accountId}/tiktok-creator-info - GET List YouTube categories
…/workspaces/{workspaceId}/social-accounts/{accountId}/youtube-categories
Get a link to connect an account
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/connect 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-Keyonly 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 · SocialPlatformrequiredOne of:x,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,blueskyreturnTostringoptionalWhich Beplan app page the browser lands on afterwards:settings(default) oronboarding.One of:settings,onboardinglinkedinKindstringoptionalLinkedIn only: connect the member (personal, default) or a page.One of:personal,pageblueskyHandlestringoptionalBluesky only (required there): the handle (name.bsky.social) or DID to sign in with.1–253 characters
Responses
200 OK
object · ConnectSocialAccountResponse
dataobjectrequired1field
authorizeUrlstringrequiredThe 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 -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"
}' 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId} 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 -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_…" 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); 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
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/discord-channels 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 objectrequired4fields in each item
idstringrequiredDiscord's channel id: the channel a Discord post's options name.namestringrequiredkindstringrequiredOne of (may gain values):text,announcement,threadmissingPermissionsarray of stringoptionalPermissions Beplan's bot lacks in this channel (empty: none). WithoutviewChannel,sendMessagesormanageWebhooksit 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 -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_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/discord-customization 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
dataobjectrequired2fields
customizationobject · DiscordCustomizationrequired2fields
usernamestringrequirednullableThe bot's custom name in the server;nullfor Discord's default.avatarUrlstringrequirednullableURL of the bot's custom avatar image;nullfor 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 -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_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/discord-customization 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
usernamestringrequirednullable1–80 charactersavatarUrlstring (uri)requirednullableat most 2048 characters
Responses
200 OK
object · DiscordCustomizationResponse
dataobjectrequired2fields
customizationobject · DiscordCustomizationrequired2fields
usernamestringrequirednullableThe bot's custom name in the server;nullfor Discord's default.avatarUrlstringrequirednullableURL of the bot's custom avatar image;nullfor 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 -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
}' 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/discord-emojis 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 objectrequired4fields in each item
idstringrequirednamestringrequiredanimatedbooleanrequiredimageUrlstringrequired
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 -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_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/discord-roles 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 objectrequired3fields in each item
idstringrequiredDiscord's role id, to mention it (<@&id>).namestringrequiredcolorstringrequirednullableThe role's color as#rrggbb,nullwithout 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 -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_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/pinterest-boards 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 objectrequired3fields in each item
idstringrequiredPinterest's board id: the board a Pinterest post's options name.namestringrequiredisSecretbooleanrequiredA 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 -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_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/sync 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-Keyto retry safely: the same key with the same body within 24 hours returns the stored response. - Stability
- Beta. May still change before it is marked stable. Since 2026-11-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 · SocialAccountrequired15fields
idstringrequiredThe account's id in Beplan (a UUID): what posts and the other account routes take.platformstring · SocialPlatformrequiredOne of (may gain values):x,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,blueskyusernamestringrequiredName shown for it: handle, page, organization or channel name.displayNamestringoptionalnullableavatarUrlstringrequirednullableProfile picture URL given by the platform (it may expire);nullwithout one.statusstringrequiredconnected: 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,disconnectedmissingPermissionsbooleanrequiredThe platform grant lacks permissions Beplan needs: reconnecting asks for them again.needsSetupbooleanrequiredA page, organization or channel must still be picked before it can post (setupStepsays which).setupStepstringrequirednullableWhat to pick (GET …/targets, thenPUT …/target);nullwhen nothing is left to pick.One of (may gain values):select_facebook_page,select_linkedin_page,select_youtube_channellinkedinKindstringrequirednullableLinkedIn only: posts as the member (personal) or a page (page);nullfor other platforms.One of:personal,pagelastErrorCodestringrequirednullableWhy the last token refresh failed,nullwhen it didn't. New codes may appear.One of (may gain values):access_revoked,token_expired,missing_permissions,rate_limited,provider_errorconnectedAtstring (date-time)requiredWhen it was connected, ISO 8601 in UTC.syncedAtstring (date-time)requirednullableLast successful sync of its name and picture (UTC),nullwhen unknown.profileUrlstringoptionalnullablexSubscribedbooleanoptional
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 -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)" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/target 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
targetIdstringrequiredA target'sidfromGET …/targets.1–128 characters
Responses
200 OK
object · SocialAccountResponse
dataobject · SocialAccountrequired15fields
idstringrequiredThe account's id in Beplan (a UUID): what posts and the other account routes take.platformstring · SocialPlatformrequiredOne of (may gain values):x,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,blueskyusernamestringrequiredName shown for it: handle, page, organization or channel name.displayNamestringoptionalnullableavatarUrlstringrequirednullableProfile picture URL given by the platform (it may expire);nullwithout one.statusstringrequiredconnected: 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,disconnectedmissingPermissionsbooleanrequiredThe platform grant lacks permissions Beplan needs: reconnecting asks for them again.needsSetupbooleanrequiredA page, organization or channel must still be picked before it can post (setupStepsays which).setupStepstringrequirednullableWhat to pick (GET …/targets, thenPUT …/target);nullwhen nothing is left to pick.One of (may gain values):select_facebook_page,select_linkedin_page,select_youtube_channellinkedinKindstringrequirednullableLinkedIn only: posts as the member (personal) or a page (page);nullfor other platforms.One of:personal,pagelastErrorCodestringrequirednullableWhy the last token refresh failed,nullwhen it didn't. New codes may appear.One of (may gain values):access_revoked,token_expired,missing_permissions,rate_limited,provider_errorconnectedAtstring (date-time)requiredWhen it was connected, ISO 8601 in UTC.syncedAtstring (date-time)requirednullableLast successful sync of its name and picture (UTC),nullwhen unknown.profileUrlstringoptionalnullablexSubscribedbooleanoptional
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 -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"
}' 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/targets 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
dataobjectrequired2fields
stepstringrequiredOne of (may gain values):select_facebook_page,select_linkedin_page,select_youtube_channeltargetsarray of objectrequired3fields in each item
idstringrequiredThe platform's id of the page, organization or channel.namestringrequiredavatarUrlstringrequirednullablePicture URL given by the platform (it may expire);nullwithout 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 -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_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/tiktok-creator-info 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 · TiktokCreatorInforequired10fields
nicknamestringrequiredusernamestringrequiredavatarUrlstringrequirednullableprivacyLevelsarray of stringrequiredOne of (may gain values):PUBLIC_TO_EVERYONE,MUTUAL_FOLLOW_FRIENDS,FOLLOWER_OF_CREATOR,SELF_ONLYvideoPrivacyLevelsarray of stringrequiredOne of (may gain values):PUBLIC_TO_EVERYONE,MUTUAL_FOLLOW_FRIENDS,FOLLOWER_OF_CREATOR,SELF_ONLYcommentDisabledbooleanrequiredduetDisabledbooleanrequiredstitchDisabledbooleanrequiredmaxVideoDurationSecondsnumberrequirednullablebusinessApibooleanrequireddefault 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 -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_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/youtube-categories 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 objectrequired2fields in each item
idstringrequiredYouTube's category id: the one a YouTube post's options name.matches^\d{1,4}$titlestringrequiredThe 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 -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_…" 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(); 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"
}
]
}
List connected accounts
/organizations/{organizationId}/workspaces/{workspaceId}/social-accountssocialAccounts.listLists the workspace's connected social accounts (one per platform at most) with their health:
status(disconnectedmeans 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
organizationIdrequiredworkspaceIdrequiredResponses
200 OK
object ·
ListSocialAccountsResponsedataarray of objectrequired15fields in each item
idstringrequiredplatformstring · SocialPlatformrequiredx,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,blueskyusernamestringrequireddisplayNamestringoptionalnullableavatarUrlstringrequirednullablenullwithout one.statusstringrequiredconnected: 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.connected,syncing,reconnecting,disconnectedmissingPermissionsbooleanrequiredneedsSetupbooleanrequiredsetupStepsays which).setupStepstringrequirednullableGET …/targets, thenPUT …/target);nullwhen nothing is left to pick.select_facebook_page,select_linkedin_page,select_youtube_channellinkedinKindstringrequirednullablepersonal) or a page (page);nullfor other platforms.personal,pagelastErrorCodestringrequirednullablenullwhen it didn't. New codes may appear.access_revoked,token_expired,missing_permissions,rate_limited,provider_errorconnectedAtstring (date-time)requiredsyncedAtstring (date-time)requirednullablenullwhen unknown.profileUrlstringoptionalnullablexSubscribedbooleanoptionalErrors answer
{ error: { code, message, details, requestId } }with status 400, 401, 403, 404, 429, 500.Error codes
ORGANIZATION_NOT_FOUNDWORKSPACE_NOT_FOUND10 more that every operation can answer (tokens, scopes, limits)
VALIDATION_FAILEDAPP_SUSPENDEDTOKEN_EXPIREDTOKEN_REVOKEDUNAUTHENTICATEDINSUFFICIENT_SCOPEINTEGRATION_BLOCKED_BY_ORGANIZATIONINTEGRATION_PENDING_APPROVALRATE_LIMITEDINTERNAL_ERRORExample
An Instagram account
Response 200