# Social accounts API reference

Base URL `https://api.beplan.io/v1`. Every operation is listed with its scope, permission, inputs, answers, errors and an example. Conventions: https://beplan.io/docs/api.md. OpenAPI document: https://beplan.io/docs/api/openapi.json.

## List connected accounts

`GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts` · operationId `socialAccounts.list`

- Scope: `accounts:read`
- Role permission: Any member who can see it
- Effect (`read`): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required): The account's id in Beplan (a UUID): what posts and the other account routes take.
  - `platform` (string, required, SocialPlatform): one of `x`, `instagram`, `facebook`, `tiktok`, `linkedin`, `threads`, `pinterest`, `youtube`, `discord`, `bluesky` (may gain values).
  - `username` (string, required): Name shown for it: handle, page, organization or channel name.
  - `displayName` (string, optional, nullable)
  - `avatarUrl` (string, required, nullable): Profile picture URL given by the platform (it may expire); `null` without one.
  - `status` (string, required): `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 `connected`, `syncing`, `reconnecting`, `disconnected` (may gain values).
  - `missingPermissions` (boolean, required): The platform grant lacks permissions Beplan needs: reconnecting asks for them again.
  - `needsSetup` (boolean, required): A page, organization or channel must still be picked before it can post (`setupStep` says which).
  - `setupStep` (string, required, nullable): What to pick (`GET …/targets`, then `PUT …/target`); `null` when nothing is left to pick. one of `select_facebook_page`, `select_linkedin_page`, `select_youtube_channel` (may gain values).
  - `linkedinKind` (string, required, nullable): LinkedIn only: posts as the member (`personal`) or a page (`page`); `null` for other platforms. one of `personal`, `page`.
  - `lastErrorCode` (string, required, nullable): Why the last token refresh failed, `null` when it didn't. New codes may appear. one of `access_revoked`, `token_expired`, `missing_permissions`, `rate_limited`, `provider_error` (may gain values).
  - `connectedAt` (string (date-time), required): When it was connected, ISO 8601 in UTC.
  - `syncedAt` (string (date-time), required, nullable): Last successful sync of its name and picture (UTC), `null` when unknown.
  - `profileUrl` (string, optional, nullable)
  - `xSubscribed` (boolean, optional)

**Errors**

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

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: An Instagram account**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/social-accounts" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "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` · operationId `socialAccounts.connect`

- Scope: `accounts:write`
- Role permission: Connect accounts (`account:create`)
- Effect (`external`): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `platform` (string, required, SocialPlatform): one of `x`, `instagram`, `facebook`, `tiktok`, `linkedin`, `threads`, `pinterest`, `youtube`, `discord`, `bluesky`.
- `returnTo` (string, optional): Which Beplan app page the browser lands on afterwards: `settings` (default) or `onboarding`. one of `settings`, `onboarding`.
- `linkedinKind` (string, optional): LinkedIn only: connect the member (`personal`, default) or a page. one of `personal`, `page`.
- `blueskyHandle` (string, optional): Bluesky only (required there): the handle (`name.bsky.social`) or DID to sign in with. 1–253 characters.

**200 OK**

- `data` (object, required)
  - `authorizeUrl` (string, required): 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**

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

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Connect an X account**

```bash
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"
}'
```

Answers 200:

```json
{
  "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}` · operationId `socialAccounts.disconnect`

- Scope: `accounts:write`
- Role permission: Disconnect accounts (`account:delete`)
- Effect (`destructive`): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `accountId` | path | string (uuid) | yes |  |

**204 No content**

No content.

**Errors**

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

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Disconnect an account**

```bash
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_…"
```

Answers 204 with no content.


## List a Discord server's channels

`GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/discord-channels` · operationId `socialAccounts.discordChannels.list`

- Scope: `accounts:read`
- Role permission: Any of: Create posts (`post:create`), Edit posts (`post:update`)
- Effect (`read`, calls a platform): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `accountId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required): Discord's channel id: the channel a Discord post's options name.
  - `name` (string, required)
  - `kind` (string, required): one of `text`, `announcement`, `thread` (may gain values).
  - `missingPermissions` (array of string, optional): 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 `viewChannel`, `sendMessages`, `manageWebhooks`, `readMessageHistory`, `attachFiles`, `embedLinks`, `createPublicThreads`, `mentionEveryone`, `pinMessages`, `sendPolls` (may gain values).

**Errors**

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

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: One channel the bot can post to**

```bash
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_…"
```

Answers 200:

```json
{
  "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` · operationId `socialAccounts.discordCustomization.get`

- Scope: `accounts:read`
- Role permission: Connect accounts (`account:create`)
- Effect (`read`): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `accountId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required)
  - `customization` (object, required, DiscordCustomization)
    - `username` (string, required, nullable): The bot's custom name in the server; `null` for Discord's default.
    - `avatarUrl` (string, required, nullable): URL of the bot's custom avatar image; `null` for Discord's default.
  - `serverName` (string, required, nullable)

**Errors**

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

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Discord's defaults**

```bash
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_…"
```

Answers 200:

```json
{
  "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` · operationId `socialAccounts.discordCustomization.update`

- Scope: `accounts:write`
- Role permission: Connect accounts (`account:create`)
- Effect (`write`): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `accountId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `username` (string, required, nullable): 1–80 characters.
- `avatarUrl` (string (uri), required, nullable): at most 2048 characters.

**200 OK**

- `data` (object, required)
  - `customization` (object, required, DiscordCustomization)
    - `username` (string, required, nullable): The bot's custom name in the server; `null` for Discord's default.
    - `avatarUrl` (string, required, nullable): URL of the bot's custom avatar image; `null` for Discord's default.
  - `serverName` (string, required, nullable)

**Errors**

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

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A named bot with Discord's avatar**

```bash
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
}'
```

Answers 200:

```json
{
  "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` · operationId `socialAccounts.discordEmojis.list`

- Scope: `accounts:read`
- Role permission: Any of: Create posts (`post:create`), Edit posts (`post:update`)
- Effect (`read`, calls a platform): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `accountId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required)
  - `name` (string, required)
  - `animated` (boolean, required)
  - `imageUrl` (string, required)

**Errors**

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

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: One emoji**

```bash
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_…"
```

Answers 200:

```json
{
  "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` · operationId `socialAccounts.discordRoles.list`

- Scope: `accounts:read`
- Role permission: Any of: Create posts (`post:create`), Edit posts (`post:update`)
- Effect (`read`, calls a platform): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `accountId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required): Discord's role id, to mention it (`<@&id>`).
  - `name` (string, required)
  - `color` (string, required, nullable): The role's color as `#rrggbb`, `null` without one.

**Errors**

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

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: One role**

```bash
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_…"
```

Answers 200:

```json
{
  "data": [
    {
      "id": "1180204761402126500",
      "name": "Fans",
      "color": "#ff0000"
    }
  ]
}
```


## List a Pinterest account's boards

`GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts/{accountId}/pinterest-boards` · operationId `socialAccounts.pinterestBoards.list`

- Scope: `accounts:read`
- Role permission: Any of: Create posts (`post:create`), Edit posts (`post:update`)
- Effect (`read`, calls a platform): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `accountId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required): Pinterest's board id: the board a Pinterest post's options name.
  - `name` (string, required)
  - `isSecret` (boolean, required): A secret board (only its owner and collaborators see it).

**Errors**

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

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Two boards**

```bash
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_…"
```

Answers 200:

```json
{
  "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` · operationId `socialAccounts.sync`

- Scope: `accounts:write`
- Role permission: Connect accounts (`account:create`)
- Effect (`write`, calls a platform): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `accountId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, SocialAccount)
  - `id` (string, required): The account's id in Beplan (a UUID): what posts and the other account routes take.
  - `platform` (string, required, SocialPlatform): one of `x`, `instagram`, `facebook`, `tiktok`, `linkedin`, `threads`, `pinterest`, `youtube`, `discord`, `bluesky` (may gain values).
  - `username` (string, required): Name shown for it: handle, page, organization or channel name.
  - `displayName` (string, optional, nullable)
  - `avatarUrl` (string, required, nullable): Profile picture URL given by the platform (it may expire); `null` without one.
  - `status` (string, required): `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 `connected`, `syncing`, `reconnecting`, `disconnected` (may gain values).
  - `missingPermissions` (boolean, required): The platform grant lacks permissions Beplan needs: reconnecting asks for them again.
  - `needsSetup` (boolean, required): A page, organization or channel must still be picked before it can post (`setupStep` says which).
  - `setupStep` (string, required, nullable): What to pick (`GET …/targets`, then `PUT …/target`); `null` when nothing is left to pick. one of `select_facebook_page`, `select_linkedin_page`, `select_youtube_channel` (may gain values).
  - `linkedinKind` (string, required, nullable): LinkedIn only: posts as the member (`personal`) or a page (`page`); `null` for other platforms. one of `personal`, `page`.
  - `lastErrorCode` (string, required, nullable): Why the last token refresh failed, `null` when it didn't. New codes may appear. one of `access_revoked`, `token_expired`, `missing_permissions`, `rate_limited`, `provider_error` (may gain values).
  - `connectedAt` (string (date-time), required): When it was connected, ISO 8601 in UTC.
  - `syncedAt` (string (date-time), required, nullable): Last successful sync of its name and picture (UTC), `null` when unknown.
  - `profileUrl` (string, optional, nullable)
  - `xSubscribed` (boolean, optional)

**Errors**

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

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Sync an account**

```bash
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)"
```

Answers 200:

```json
{
  "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` · operationId `socialAccounts.target.select`

- Scope: `accounts:write`
- Role permission: Connect accounts (`account:create`)
- Effect (`write`, calls a platform): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `accountId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `targetId` (string, required): A target's `id` from `GET …/targets`. 1–128 characters.

**200 OK**

- `data` (object, required, SocialAccount)
  - `id` (string, required): The account's id in Beplan (a UUID): what posts and the other account routes take.
  - `platform` (string, required, SocialPlatform): one of `x`, `instagram`, `facebook`, `tiktok`, `linkedin`, `threads`, `pinterest`, `youtube`, `discord`, `bluesky` (may gain values).
  - `username` (string, required): Name shown for it: handle, page, organization or channel name.
  - `displayName` (string, optional, nullable)
  - `avatarUrl` (string, required, nullable): Profile picture URL given by the platform (it may expire); `null` without one.
  - `status` (string, required): `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 `connected`, `syncing`, `reconnecting`, `disconnected` (may gain values).
  - `missingPermissions` (boolean, required): The platform grant lacks permissions Beplan needs: reconnecting asks for them again.
  - `needsSetup` (boolean, required): A page, organization or channel must still be picked before it can post (`setupStep` says which).
  - `setupStep` (string, required, nullable): What to pick (`GET …/targets`, then `PUT …/target`); `null` when nothing is left to pick. one of `select_facebook_page`, `select_linkedin_page`, `select_youtube_channel` (may gain values).
  - `linkedinKind` (string, required, nullable): LinkedIn only: posts as the member (`personal`) or a page (`page`); `null` for other platforms. one of `personal`, `page`.
  - `lastErrorCode` (string, required, nullable): Why the last token refresh failed, `null` when it didn't. New codes may appear. one of `access_revoked`, `token_expired`, `missing_permissions`, `rate_limited`, `provider_error` (may gain values).
  - `connectedAt` (string (date-time), required): When it was connected, ISO 8601 in UTC.
  - `syncedAt` (string (date-time), required, nullable): Last successful sync of its name and picture (UTC), `null` when unknown.
  - `profileUrl` (string, optional, nullable)
  - `xSubscribed` (boolean, optional)

**Errors**

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

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Post as a Facebook page**

```bash
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"
}'
```

Answers 200:

```json
{
  "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` · operationId `socialAccounts.targets.list`

- Scope: `accounts:write`
- Role permission: Connect accounts (`account:create`)
- Effect (`read`, calls a platform): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `accountId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required)
  - `step` (string, required): one of `select_facebook_page`, `select_linkedin_page`, `select_youtube_channel` (may gain values).
  - `targets` (array of object, required)
    - `id` (string, required): The platform's id of the page, organization or channel.
    - `name` (string, required)
    - `avatarUrl` (string, required, nullable): Picture URL given by the platform (it may expire); `null` without one.

**Errors**

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

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A Facebook account's pages**

```bash
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_…"
```

Answers 200:

```json
{
  "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` · operationId `socialAccounts.tiktokCreatorInfo.get`

- Scope: `accounts:read`
- Role permission: Any of: Create posts (`post:create`), Edit posts (`post:update`)
- Effect (`read`, calls a platform): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `accountId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, TiktokCreatorInfo)
  - `nickname` (string, required)
  - `username` (string, required)
  - `avatarUrl` (string, required, nullable)
  - `privacyLevels` (array of string, required): one of `PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY` (may gain values).
  - `videoPrivacyLevels` (array of string, required): one of `PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY` (may gain values).
  - `commentDisabled` (boolean, required)
  - `duetDisabled` (boolean, required)
  - `stitchDisabled` (boolean, required)
  - `maxVideoDurationSeconds` (number, required, nullable)
  - `businessApi` (boolean, required): default false.

**Errors**

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

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A public creator**

```bash
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_…"
```

Answers 200:

```json
{
  "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` · operationId `socialAccounts.youtubeCategories.list`

- Scope: `accounts:read`
- Role permission: Any of: Create posts (`post:create`), Edit posts (`post:update`)
- Effect (`read`, calls a platform): 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 | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `accountId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required): YouTube's category id: the one a YouTube post's options name. matches `^\d{1,4}$`.
  - `title` (string, required): The category's title, in the channel's region language.

**Errors**

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

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Two categories**

```bash
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_…"
```

Answers 200:

```json
{
  "data": [
    {
      "id": "22",
      "title": "People & Blogs"
    },
    {
      "id": "28",
      "title": "Science & Technology"
    }
  ]
}
```


---
HTML version: https://beplan.io/docs/api/social-accounts/
