API reference
AI
Base URL https://api.beplan.io/v1. Authentication, envelopes, pagination, idempotency and rate limits:
conventions. OpenAPI document: openapi.json.
All 2 AI operations
Get a workspace's AI settings
/organizations/{organizationId}/workspaces/{workspaceId}/settings/ai aiSettings.get - Scope
- organization:read
- Role permission
- Manage workspace settings (
workspace:update) - Effect
- Changes nothing.
- Stability
- Beta. May still change before it is marked stable. Since 2026-11-20.
Returns what Beplan's AI knows about the workspace when it writes: the brand, the audience, the tone and the rules, as free text (empty strings when not set). An assistant writing posts for this workspace should follow them too. Needs the role permission to manage the workspace.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) |
Responses
200 OK
object · AiSettingsResponse
dataobject · AiSettingsrequired4fields
brandstringrequiredWho the workspace is: brand, topics, what it offers. Empty when not set.audiencestringrequiredWho it writes for. Empty when not set.tonestringrequiredHow it sounds ("warm, direct, a little playful"). Empty when not set.rulesstringrequiredDos and don'ts every AI suggestion follows. Empty when not set.
Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.
Error codes
| Status | Code | Message |
|---|---|---|
| 403 | MISSING_PERMISSION | You don't have permission to do this. |
| 404 | ORGANIZATION_NOT_FOUND | This organization doesn't exist or you're not a member of it. |
| 404 | WORKSPACE_NOT_FOUND | This workspace doesn't exist or you don't have access to it. |
10 more that every operation can answer (tokens, scopes, limits)
| 400 | VALIDATION_FAILED | Some of the information sent is invalid. |
| 401 | APP_SUSPENDED | This app has been suspended by Beplan and can't access your account. |
| 401 | TOKEN_EXPIRED | This token has expired. Create a new one or sign in again. |
| 401 | TOKEN_REVOKED | This token was revoked. Connect again to get a new one. |
| 401 | UNAUTHENTICATED | Your session has expired. Please sign in again. |
| 403 | INSUFFICIENT_SCOPE | This token doesn't have the access this needs. Connect again and allow it. |
| 403 | INTEGRATION_BLOCKED_BY_ORGANIZATION | This organization doesn't allow this integration. Ask an admin of the organization. |
| 403 | INTEGRATION_PENDING_APPROVAL | An admin of this organization needs to approve this connection first. |
| 429 | RATE_LIMITED | Too many requests. Wait a moment and try again. |
| 500 | INTERNAL_ERROR | Something went wrong on our side. Please try again. |
Example
A coffee roaster
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/settings/ai" \
-H "Authorization: Bearer beplan_pat_…" const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/settings/ai", {
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/settings/ai",
headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"] Response 200
{
"data": {
"brand": "Northwind Coffee: a small roastery in Lyon, single-origin beans and home brewing guides.",
"audience": "Home baristas, 25–40, curious but not experts.",
"tone": "Warm, direct, a little playful. No jargon.",
"rules": "Never promise health benefits. Prices in euros."
}
} Update a workspace's AI settings
/organizations/{organizationId}/workspaces/{workspaceId}/settings/ai aiSettings.update - Scope
- workspaces:write
- Role permission
- Manage workspace settings (
workspace:update) - Effect
- Changes data in Beplan.
- Stability
- Beta. May still change before it is marked stable. Since 2026-11-20.
Changes the AI settings sent (brand up to 2,000 characters, audience 2,000, tone 1,000, rules 4,000; trimmed). An empty string clears a setting; a field left out is unchanged. Every AI feature of the workspace (the editor's assistant, autofill) uses them from the next request. Answers with all four settings.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
workspaceId required | path | string (uuid) |
Request body JSON, required
object · UpdateAiSettingsBody
brandstringoptionalNew text, at most 2000 characters, trimmed; an empty string clears it, left out: unchanged.at most 2000 charactersaudiencestringoptionalNew text, at most 2000 characters, trimmed; an empty string clears it, left out: unchanged.at most 2000 characterstonestringoptionalNew text, at most 1000 characters, trimmed; an empty string clears it, left out: unchanged.at most 1000 charactersrulesstringoptionalNew text, at most 4000 characters, trimmed; an empty string clears it, left out: unchanged.at most 4000 characters
Responses
200 OK
object · AiSettingsResponse
dataobject · AiSettingsrequired4fields
brandstringrequiredWho the workspace is: brand, topics, what it offers. Empty when not set.audiencestringrequiredWho it writes for. Empty when not set.tonestringrequiredHow it sounds ("warm, direct, a little playful"). Empty when not set.rulesstringrequiredDos and don'ts every AI suggestion follows. Empty when not set.
Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 413, 415, 429, 500.
Error codes
| Status | Code | Message |
|---|---|---|
| 400 | VALIDATION_FAILED | Some of the information sent is invalid. |
| 403 | MISSING_PERMISSION | You don't have permission to do this. |
| 404 | ORGANIZATION_NOT_FOUND | This organization doesn't exist or you're not a member of it. |
| 404 | WORKSPACE_NOT_FOUND | This workspace doesn't exist or you don't have access to it. |
11 more that every operation can answer (tokens, scopes, limits)
| 401 | APP_SUSPENDED | This app has been suspended by Beplan and can't access your account. |
| 401 | TOKEN_EXPIRED | This token has expired. Create a new one or sign in again. |
| 401 | TOKEN_REVOKED | This token was revoked. Connect again to get a new one. |
| 401 | UNAUTHENTICATED | Your session has expired. Please sign in again. |
| 403 | INSUFFICIENT_SCOPE | This token doesn't have the access this needs. Connect again and allow it. |
| 403 | INTEGRATION_BLOCKED_BY_ORGANIZATION | This organization doesn't allow this integration. Ask an admin of the organization. |
| 403 | INTEGRATION_PENDING_APPROVAL | An admin of this organization needs to approve this connection first. |
| 413 | PAYLOAD_TOO_LARGE | This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key. |
| 415 | UNSUPPORTED_MEDIA_TYPE | This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`. |
| 429 | RATE_LIMITED | Too many requests. Wait a moment and try again. |
| 500 | INTERNAL_ERROR | Something went wrong on our side. Please try again. |
Example
A new tone
curl -X PATCH "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/settings/ai" \
-H "Authorization: Bearer beplan_pat_…" \
-H "Content-Type: application/json" \
-d '{
"tone": "Calm and precise."
}' const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/settings/ai", {
method: "PATCH",
headers: {
Authorization: "Bearer beplan_pat_…",
"Content-Type": "application/json",
},
body: JSON.stringify({
"tone": "Calm and precise."
}),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json(); import requests
response = requests.patch(
"https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/settings/ai",
headers={"Authorization": "Bearer beplan_pat_…"},
json={
"tone": "Calm and precise.",
},
)
response.raise_for_status()
data = response.json()["data"] Response 200
{
"data": {
"brand": "Northwind Coffee: a small roastery in Lyon, single-origin beans and home brewing guides.",
"audience": "Home baristas, 25–40, curious but not experts.",
"tone": "Calm and precise.",
"rules": "Never promise health benefits. Prices in euros."
}
}