API reference
Plan and billing
Base URL https://api.beplan.io/v1. Authentication, envelopes, pagination, idempotency and rate limits:
conventions. OpenAPI document: openapi.json.
All 2 Plan and billing operations
Get the subscription's state
/organizations/{organizationId}/plan/billing billing.get - Scope
- billing:read
- Role permission
- Manage billing (
billing:update) - Effect
- Changes nothing.
- Stability
- Beta. May still change before it is marked stable. Since 2026-11-20.
Returns where the organization's subscription stands: the plan in force, status (free, trialing, active, cancelled), the billing interval, the trial, renewal, cancellation and end dates (ISO 8601 UTC), and the add-ons held: teamCollaboration (0 or 1), extraWorkspaces (a count) and extraStorageMb (megabytes, by 100,000 MB units), all 0 once paid access ended. Only members who manage billing can read it (in practice the owner); others get 403 MISSING_PERMISSION.
No price, invoice or payment-provider identifier is returned, and nothing here can be changed through the API: plan changes, add-ons and cancellation happen in Beplan. The billing interval is read from the payment provider and is null when it could not be reached. What the plan allows: organizations.plan.get.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
Responses
200 OK
object · BillingSummaryResponse
dataobject · BillingSummaryrequired8fields
planTypestringrequiredThe plan in force now (the same asGET …/plan/summary). New plans may appear.One of (may gain values):free,starter,growth,pro,studio,creatorstatusstringrequiredfree: no paid access (no subscription, or it ended / the trial expired without payment);trialing: in the free trial, untiltrialEndsAt;active: paid and renewing onnextBilledAt;cancelled: cancelled, paid access continues untilendsAt.One of (may gain values):free,trialing,active,cancelledbillingIntervalstringrequirednullableHow the plan is billed:monthlyorannual;nullwithout paid access, or when the payment provider could not be reached (try again later).One of:monthly,annualtrialEndsAtstring (date-time)requirednullableWhen the free trial ends (or ended), ISO 8601 UTC;nullwithout a trial.nextBilledAtstring (date-time)requirednullableWhen the subscription renews next, ISO 8601 UTC;nullwhen it doesn't renew.cancelledAtstring (date-time)requirednullableWhen the subscription was cancelled, ISO 8601 UTC;nullwhen it wasn't.endsAtstring (date-time)requirednullableWhen paid access ends (or ended), ISO 8601 UTC;nullwhile it renews.addOnsobject · BillingAddOnsrequired3fields
teamCollaborationintegerrequiredat least 0extraWorkspacesintegerrequiredat least 0extraStorageMbintegerrequiredat least 0
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. |
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 monthly Growth subscription
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/plan/billing" \
-H "Authorization: Bearer beplan_pat_…" const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/plan/billing", {
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/plan/billing",
headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"] Response 200
{
"data": {
"planType": "growth",
"status": "active",
"billingInterval": "monthly",
"trialEndsAt": "2026-10-14T09:12:00.000Z",
"nextBilledAt": "2026-12-14T09:12:00.000Z",
"cancelledAt": null,
"endsAt": null,
"addOns": {
"teamCollaboration": 1,
"extraWorkspaces": 1,
"extraStorageMb": 0
}
}
} Get the organization's plan
/organizations/{organizationId}/plan/summary organizations.plan.get - Scope
- organization:read
- Role permission
- Any member who can see it
- Effect
- Changes nothing.
- Stability
- Beta. May still change before it is marked stable. Since 2026-11-20.
Returns the plan the organization is on now and what it allows: the plan type, its feature ids, its limits (workspaces, storage, scheduled posts per month, how often post metrics refresh) with the add-ons bought included, and whether the Team Collaboration add-on is active. free means no paid access (never subscribed, subscription ended or trial expired). Any member can read it.
Use it to know in advance what will answer 402 PLAN_UPGRADE_REQUIRED. What is used against the limits: organizations.usage.get and organizations.scheduledPostQuota.get. Trial and renewal dates: billing.get (billing:read). Some features are also being rolled out organization by organization; that rollout is not listed here, and an operation of a feature not yet open answers 402 PLAN_UPGRADE_REQUIRED too.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organizationId required | path | string | 1–128 characters |
Responses
200 OK
object · OrganizationPlanSummaryResponse
dataobject · OrganizationPlanSummaryrequired4fields
planTypestringrequiredThe plan in force now:freewithout a subscription, or once a subscription ended or a trial expired.creatoris a legacy plan some organizations keep. New plans may appear.One of (may gain values):free,starter,growth,pro,studio,creatorfeaturesarray of stringrequiredWhat the plan includes, as feature ids (insights,smart_insights,quick_fill,review_and_approvals…). An open list: ids are added as Beplan grows and an id can be retired; ignore the ones you don't know. Features that also need the Team Collaboration add-on (reviews, approvals) needteamCollaborationtoo.limitsobject · OrganizationPlanLimitsrequired4fields
workspacesintegerrequirednullableWorkspaces the organization can have, extra workspaces bought included;nullmeans unlimited.storageBytesintegerrequirednullableMedia storage of the whole organization, in bytes (1 GB = 1024³ bytes), extra storage bought included;nullmeans unlimited.GET …/usagegives what is used.scheduledPostsPerMonthintegerrequirednullablePosts the organization can schedule per calendar month (UTC);nullmeans unlimited.GET …/scheduled-post-quotagives how many count this month.metricsRefreshMinutesintegerrequiredHow often published posts' metrics are refreshed, in minutes;0means no metrics.
teamCollaborationbooleanrequiredWhether the Team Collaboration add-on is active: paper and post reviews, approvals and teams need it (402 PLAN_UPGRADE_REQUIREDotherwise).
Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.
Error codes
| Status | Code | Message |
|---|---|---|
| 404 | ORGANIZATION_NOT_FOUND | This organization doesn't exist or you're not a member of it. |
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 Growth plan with Team Collaboration
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/plan/summary" \
-H "Authorization: Bearer beplan_pat_…" const response = await fetch("https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/plan/summary", {
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/plan/summary",
headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"] Response 200
{
"data": {
"planType": "growth",
"features": [
"insights",
"smart_insights",
"quick_fill",
"review_and_approvals",
"inbox"
],
"limits": {
"workspaces": 3,
"storageBytes": 214748364800,
"scheduledPostsPerMonth": null,
"metricsRefreshMinutes": 60
},
"teamCollaboration": true
}
}