Start free
Docs · API overview

API reference

API reference

Read as Markdown

On this page
  1. Stability
  2. Conventions
  3. Authentication
  4. Organizations and workspaces
  5. Responses
  6. Pagination
  7. Idempotency
  8. Concurrency
  9. Rate limits
  10. Compatibility
  11. Areas

Base URL https://api.beplan.io/v1. 323 operations in 30 areas. The whole reference as an OpenAPI 3.1.1 document: openapi.json.

Stability

  • Within v1 the API only changes additively: new operations, new optional inputs, new response fields, and new values only in enums marked "may gain values". Ignore response fields you do not know.
  • A breaking change is a new operation. The old one answers with Deprecation and Sunset headers, gets a changelog entry and an email to the owners of apps that called it in the last 90 days, and keeps working for at least 12 months.
  • Operations marked Beta are exempt from these rules and may still change.

Conventions

The Beplan API: the same operations the Beplan app uses, reached with a token. JSON in, JSON out.

Authentication

Send Authorization: Bearer <token> on every request. Two kinds of token work: a personal token (beplan_pat_…, created in Beplan's developer settings, acting as you with the scopes you picked) and an OAuth access token an app obtained with the authorization-code flow (PKCE, S256). Each operation needs one scope (x-beplan-scope), a few also others (x-beplan-also-requires: all of them must be held); a token never does more than its user's role allows (x-beplan-permission). On 401, WWW-Authenticate: Bearer error="invalid_token"; on a missing scope, 403 INSUFFICIENT_SCOPE and WWW-Authenticate: Bearer error="insufficient_scope", scope="…".

Organizations and workspaces

Every path names its organization (and workspace) by id. GET /me lists the organizations and workspaces the token was given, with their state. Call it first.

Responses

Success: { "data": … }; lists: { "data": [ … ], "page": { "nextCursor", "hasMore" } }. Errors: { "error": { "code", "message", "details", "requestId" } } (ErrorEnvelope): branch on code, never on message. Every response carries x-request-id. Dates are ISO 8601 in UTC, ids are opaque strings or UUIDs.

Pagination

Lists take limit and an opaque cursor; pass page.nextCursor back while page.hasMore is true.

Idempotency

Any POST accepts Idempotency-Key (1–255 visible ASCII characters). The same key with the same body within 24 hours returns the stored response (Idempotent-Replayed: true); the same key with another body is 409 IDEMPOTENCY_KEY_REUSED; a request with that key still running is 409 CONFLICT. Operations whose answer carries signed upload URLs or a sign-in link (x-beplan-idempotency: single-flight) never store it: the key only keeps a second run from starting while the first runs; once it finished, a repeat runs again with fresh URLs.

Concurrency

Send the baseUpdatedAt you read to avoid overwriting someone else's change: a stale one is 409 POST_CHANGED_ELSEWHERE. A post open in the Beplan editor refuses content writes with 409 POST_OPEN_IN_EDITOR and Retry-After.

Rate limits

Per connection and per organization, per minute, by plan. Every response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds); a refusal is 429 RATE_LIMITED with Retry-After. Operations that leave Beplan (x-beplan-effect: external) or reach a social platform when called (x-beplan-reaches-platform: true) also share a smaller budget: 30 per minute per connection.

Compatibility

Within v1 the API only grows: new operations, new optional inputs, new response fields, new values in enums marked open (x-beplan-open-enums). Ignore response fields you do not know. Unknown fields in a request are ignored, not refused. Operations marked x-beplan-stability: beta may still change.

Areas

Post comments · 8 operations

Deals · 97 operations