Start free
Docs · Plan and billing

API reference

Plan and billing

Read as Markdown

On this page
  1. Get the subscription's state
  2. Get the organization's plan

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

GET /organizations/{organizationId}/plan/billing
Beta Reads only 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 · BillingSummaryrequired
    8fields
    • planTypestringrequired
      The plan in force now (the same as GET …/plan/summary). New plans may appear.
      One of (may gain values): free, starter, growth, pro, studio, creator
    • statusstringrequired
      free: no paid access (no subscription, or it ended / the trial expired without payment); trialing: in the free trial, until trialEndsAt; active: paid and renewing on nextBilledAt; cancelled: cancelled, paid access continues until endsAt.
      One of (may gain values): free, trialing, active, cancelled
    • billingIntervalstringrequirednullable
      How the plan is billed: monthly or annual; null without paid access, or when the payment provider could not be reached (try again later).
      One of: monthly, annual
    • trialEndsAtstring (date-time)requirednullable
      When the free trial ends (or ended), ISO 8601 UTC; null without a trial.
    • nextBilledAtstring (date-time)requirednullable
      When the subscription renews next, ISO 8601 UTC; null when it doesn't renew.
    • cancelledAtstring (date-time)requirednullable
      When the subscription was cancelled, ISO 8601 UTC; null when it wasn't.
    • endsAtstring (date-time)requirednullable
      When paid access ends (or ended), ISO 8601 UTC; null while it renews.
    • addOnsobject · BillingAddOnsrequired
      3fields
      • teamCollaborationintegerrequired
        at least 0
      • extraWorkspacesintegerrequired
        at least 0
      • extraStorageMbintegerrequired
        at 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
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/plan/billing" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
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();
Python
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

GET /organizations/{organizationId}/plan/summary
Beta Reads only 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 · OrganizationPlanSummaryrequired
    4fields
    • planTypestringrequired
      The plan in force now: free without a subscription, or once a subscription ended or a trial expired. creator is a legacy plan some organizations keep. New plans may appear.
      One of (may gain values): free, starter, growth, pro, studio, creator
    • featuresarray of stringrequired
      What 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) need teamCollaboration too.
    • limitsobject · OrganizationPlanLimitsrequired
      4fields
      • workspacesintegerrequirednullable
        Workspaces the organization can have, extra workspaces bought included; null means unlimited.
      • storageBytesintegerrequirednullable
        Media storage of the whole organization, in bytes (1 GB = 1024³ bytes), extra storage bought included; null means unlimited. GET …/usage gives what is used.
      • scheduledPostsPerMonthintegerrequirednullable
        Posts the organization can schedule per calendar month (UTC); null means unlimited. GET …/scheduled-post-quota gives how many count this month.
      • metricsRefreshMinutesintegerrequired
        How often published posts' metrics are refreshed, in minutes; 0 means no metrics.
    • teamCollaborationbooleanrequired
      Whether the Team Collaboration add-on is active: paper and post reviews, approvals and teams need it (402 PLAN_UPGRADE_REQUIRED otherwise).

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
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/plan/summary" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
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();
Python
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
  }
}