# Workspaces 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 workspaces

`GET /organizations/{organizationId}/workspaces` · operationId `workspaces.list`

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

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required): The workspace's id (a UUID), the `:workspaceId` of workspace paths.
  - `name` (string, required)
  - `avatarUrl` (string, required, nullable): Signed URL of the workspace's picture, valid one hour; `null` without one.
  - `timezone` (string, required, nullable): IANA time zone (`Europe/Paris`) its calendar's wall times are in; `null` when never set (UTC).
  - `defaultAccountIds` (array of string, optional): Social account ids a new post starts with (the default platforms); may name accounts disconnected since.

**Errors**

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

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": [
    {
      "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
      "name": "Northwind",
      "avatarUrl": null,
      "timezone": "Europe/Paris",
      "defaultAccountIds": []
    }
  ]
}
```


## Create a workspace

`POST /organizations/{organizationId}/workspaces` · operationId `workspaces.create`

- Scope: `workspaces:manage`
- Role permission: Create workspaces (`workspace:create`)
- Effect (`write`): Changes data in Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

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

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |

**Request body** (JSON, required)

- `name` (string, required): 3–255 characters.
- `timezone` (string, required): IANA time zone, e.g. `Europe/Paris`. 1–64 characters.

**201 Created**

- `data` (object, required, WorkspaceSummary)
  - `id` (string, required): The workspace's id (a UUID), the `:workspaceId` of workspace paths.
  - `name` (string, required)
  - `avatarUrl` (string, required, nullable): Signed URL of the workspace's picture, valid one hour; `null` without one.
  - `timezone` (string, required, nullable): IANA time zone (`Europe/Paris`) its calendar's wall times are in; `null` when never set (UTC).
  - `defaultAccountIds` (array of string, optional): Social account ids a new post starts with (the default platforms); may name accounts disconnected since.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `WORKSPACE_LIMIT_REACHED` | Your plan's workspaces are used up. Upgrade or add workspaces to create another one. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |

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), `INTEGRATION_SELECTION_TOO_NARROW` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A workspace in New York time**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Northwind US",
  "timezone": "America/New_York"
}'
```

Answers 201:

```json
{
  "data": {
    "id": "8a1e4f0c-2b7d-4c95-b3e6-0f9d2c7a5b18",
    "name": "Northwind US",
    "avatarUrl": null,
    "timezone": "America/New_York",
    "defaultAccountIds": []
  }
}
```


## List workspaces with their usage

`GET /organizations/{organizationId}/workspaces/manage` · operationId `workspaces.managed.list`

- Scope: `organization:read`
- Role permission: Any of: Create workspaces (`workspace:create`), Manage workspace settings (`workspace:update`), Delete workspaces (`workspace:delete`)
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

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

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

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |

**200 OK**

- `data` (object, required)
  - `workspaces` (array of object, required)
    - `id` (string, required): The workspace's id (a UUID).
    - `name` (string, required)
    - `logoUrl` (string, required, nullable): Signed, short-lived URL of the logo image; `null` without one.
    - `timezone` (string, required, nullable): IANA time zone; `null` when never set (treated as UTC).
    - `createdAt` (string, required): When the workspace was created, ISO 8601 in UTC.
    - `teamCount` (number, required): Teams that see it: the ones it's assigned to plus the ones that see every workspace.
    - `storageBytes` (number, required): Bytes its media and uploaded Paper files take.
    - `posts` (object, required): Post counts: all posts, posts waiting in review, and published posts created in the last 30 days.
      - `total` (number, required)
      - `inReview` (number, required)
      - `postedLast30Days` (number, required)
  - `usage` (number, required): Workspaces the organization has, counted against its plan (all of them).
  - `limit` (number, required, nullable): Workspaces the plan allows, add-ons included; `null` = unlimited.

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

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

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/manage" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "workspaces": [
      {
        "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
        "name": "Northwind",
        "logoUrl": null,
        "timezone": "Europe/Paris",
        "createdAt": "2026-03-02T09:14:00.000Z",
        "teamCount": 1,
        "storageBytes": 734003200,
        "posts": {
          "total": 182,
          "inReview": 3,
          "postedLast30Days": 21
        }
      }
    ],
    "usage": 1,
    "limit": 3
  }
}
```


## Delete a workspace

`POST /organizations/{organizationId}/workspaces/{workspaceId}/delete` · operationId `workspaces.delete`

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

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

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `confirmName` (string, required): The workspace's exact name (surrounding spaces ignored), to confirm the deletion. at most 305 characters.

**204 No content**

No content.

**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. |
| 409 | `LAST_WORKSPACE` | An organization needs at least one workspace. Create another one first. |
| 422 | `CONFIRMATION_MISMATCH` | The name typed doesn't match. Type it exactly to confirm. |

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), `INTEGRATION_SELECTION_TOO_NARROW` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Confirmed by name**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/delete" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "confirmName": "Northwind"
}'
```

Answers 204 with no content.


## List a workspace's formats

`GET /organizations/{organizationId}/workspaces/{workspaceId}/formats` · operationId `workspaces.formats.list`

- Scope: `organization: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 formats (its content types, such as "Reel" or "Tutorial"), by name, with their color. Posts and posting slots name formats by these ids.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required)
  - `name` (string, required)
  - `color` (string, required)

**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: Two formats**

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

Answers 200:

```json
{
  "data": [
    {
      "id": "c2b8e1d4-7f3a-4e6b-9c0d-5a1f8e2b7c93",
      "name": "Reel",
      "color": "#e4572e"
    },
    {
      "id": "f0a7c3e9-1d5b-4b8a-8e2f-6c9d0b4a1e57",
      "name": "Tutorial",
      "color": "#17bebb"
    }
  ]
}
```


## Name the workspace after an account

`POST /organizations/{organizationId}/workspaces/{workspaceId}/identity-from-social-account` · operationId `workspaces.identity.adopt`

- Scope: `workspaces:write`
- Role permission: Manage workspace settings (`workspace:update`)
- Effect (`write`): Changes data in Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

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

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `socialAccountId` (string (uuid), required)

**200 OK**

- `data` (object, required, WorkspaceSettings)
  - `id` (string, required): The workspace's id (a UUID).
  - `name` (string, required)
  - `logoUrl` (string, required, nullable): Signed, short-lived URL of the logo image (read the settings again for a fresh one); `null` without one.
  - `hasUploadedLogo` (boolean, required): An uploaded logo is set (it can be removed).
  - `timezone` (string, required, nullable): IANA time zone (`Europe/Paris`) of the calendar and posting slots; `null` when never set (treated as UTC).

**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. |
| 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), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Take the Instagram account's name**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/identity-from-social-account" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "socialAccountId": "5b9e2d7a-0c4f-4a18-9e3b-7d6c1f8a2e05"
}'
```

Answers 200:

```json
{
  "data": {
    "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
    "name": "northwind.studio",
    "logoUrl": null,
    "hasUploadedLogo": false,
    "timezone": "Europe/Paris"
  }
}
```


## Set the logo

`PUT /organizations/{organizationId}/workspaces/{workspaceId}/logo` · operationId `workspaces.logo.set`

- Scope: `workspaces:write`
- Role permission: Manage workspace settings (`workspace:update`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

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

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `uploadId` (string, required): 1–200 characters.

**200 OK**

- `data` (object, required, WorkspaceSettings)
  - `id` (string, required): The workspace's id (a UUID).
  - `name` (string, required)
  - `logoUrl` (string, required, nullable): Signed, short-lived URL of the logo image (read the settings again for a fresh one); `null` without one.
  - `hasUploadedLogo` (boolean, required): An uploaded logo is set (it can be removed).
  - `timezone` (string, required, nullable): IANA time zone (`Europe/Paris`) of the calendar and posting slots; `null` when never set (treated as UTC).

**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 | `AVATAR_UPLOAD_NOT_FOUND` | This picture didn't finish uploading or expired. Upload it again. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 422 | `AVATAR_UPLOAD_INVALID` | This picture can't be used. Upload a JPEG, PNG or WebP image under 5 MB. |
| 502 | `UPSTREAM_FAILED` | A service we depend on didn't respond. Please try again. |

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: Confirm an upload**

```bash
curl -X PUT "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/logo" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "uploadId": "6d2f9b1e-4a7c-4e3d-b8f0-1c5a9e7d2b46"
}'
```

Answers 200:

```json
{
  "data": {
    "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
    "name": "Northwind",
    "logoUrl": "https://storage.beplan.io/organization-media/…?X-Amz-Signature=…",
    "hasUploadedLogo": true,
    "timezone": "Europe/Paris"
  }
}
```


## Remove the logo

`DELETE /organizations/{organizationId}/workspaces/{workspaceId}/logo` · operationId `workspaces.logo.remove`

- Scope: `workspaces:write`
- Role permission: Manage workspace settings (`workspace:update`)
- Effect (`destructive`): Deletes data or cannot be undone.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

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

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, WorkspaceSettings)
  - `id` (string, required): The workspace's id (a UUID).
  - `name` (string, required)
  - `logoUrl` (string, required, nullable): Signed, short-lived URL of the logo image (read the settings again for a fresh one); `null` without one.
  - `hasUploadedLogo` (boolean, required): An uploaded logo is set (it can be removed).
  - `timezone` (string, required, nullable): IANA time zone (`Europe/Paris`) of the calendar and posting slots; `null` when never set (treated as UTC).

**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 | `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: No logo any more**

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

Answers 200:

```json
{
  "data": {
    "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
    "name": "Northwind",
    "logoUrl": null,
    "hasUploadedLogo": false,
    "timezone": "Europe/Paris"
  }
}
```


## Start a logo upload

`POST /organizations/{organizationId}/workspaces/{workspaceId}/logo/uploads` · operationId `workspaces.logoUploads.create`

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

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

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `mimeType` (string, required): one of `image/webp`, `image/jpeg`, `image/png`.
- `size` (integer, required): The file's size in bytes. above 0 to 5242880.

**201 Created**

- `data` (object, required, AvatarUpload)
  - `uploadId` (string, required): The upload to confirm once the file is uploaded.
  - `url` (string, required): Signed storage URL, valid 10 minutes: send the file there in one `PUT` with the declared `Content-Type` and no `Authorization` header.

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

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: A 120 KiB WebP**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/logo/uploads" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "mimeType": "image/webp",
  "size": 122880
}'
```

Answers 201:

```json
{
  "data": {
    "uploadId": "6d2f9b1e-4a7c-4e3d-b8f0-1c5a9e7d2b46",
    "url": "https://storage.beplan.io/organization-media/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/logo-6d2f9b1e-4a7c-4e3d-b8f0-1c5a9e7d2b46?X-Amz-Signature=…"
  }
}
```


## Get a workspace's settings

`GET /organizations/{organizationId}/workspaces/{workspaceId}/settings` · operationId `workspaces.settings.get`

- Scope: `organization: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.

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

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, WorkspaceSettings)
  - `id` (string, required): The workspace's id (a UUID).
  - `name` (string, required)
  - `logoUrl` (string, required, nullable): Signed, short-lived URL of the logo image (read the settings again for a fresh one); `null` without one.
  - `hasUploadedLogo` (boolean, required): An uploaded logo is set (it can be removed).
  - `timezone` (string, required, nullable): IANA time zone (`Europe/Paris`) of the calendar and posting slots; `null` when never set (treated as UTC).

**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: A workspace in Paris time**

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

Answers 200:

```json
{
  "data": {
    "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
    "name": "Northwind",
    "logoUrl": null,
    "hasUploadedLogo": false,
    "timezone": "Europe/Paris"
  }
}
```


## Update a workspace's settings

`PATCH /organizations/{organizationId}/workspaces/{workspaceId}/settings` · operationId `workspaces.settings.update`

- Scope: `workspaces:write`
- Role permission: Manage workspace settings (`workspace:update`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

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

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `name` (string, optional): 3–255 characters.
- `timezone` (string, optional): IANA time zone, e.g. `America/New_York`. 1–64 characters.

**200 OK**

- `data` (object, required, WorkspaceSettings)
  - `id` (string, required): The workspace's id (a UUID).
  - `name` (string, required)
  - `logoUrl` (string, required, nullable): Signed, short-lived URL of the logo image (read the settings again for a fresh one); `null` without one.
  - `hasUploadedLogo` (boolean, required): An uploaded logo is set (it can be removed).
  - `timezone` (string, required, nullable): IANA time zone (`Europe/Paris`) of the calendar and posting slots; `null` when never set (treated as UTC).

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

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: Move to London time**

```bash
curl -X PATCH "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/settings" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "timezone": "Europe/London"
}'
```

Answers 200:

```json
{
  "data": {
    "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
    "name": "Northwind",
    "logoUrl": null,
    "hasUploadedLogo": false,
    "timezone": "Europe/London"
  }
}
```


---
HTML version: https://beplan.io/docs/api/workspaces/
