Build with the versioned API

Discovery, OAuth scopes, resources, revisions and error handling.

Reviewed October 22, 2026

Use the maintained contract

Start with the live developer reference, OpenAPI 3.1 and instance capabilities. The JSON API lives at https://app.cpbr.link/api/v1. Use versioned endpoints for integrations; internal dashboard routes can change.

Authenticate with OAuth and PKCE

Clients use authorization code with S256 PKCE, explicit consent and the exact API resource audience. Validate state and issuer, protect tokens and request only required scopes. Clients must be registered by the operator; public dynamic registration is disabled. Never copy browser session cookies or ask users to paste passwords into your integration.

Match scopes to operations

Resources include account details, domains, links, pages, drafts/blocks/history, connections, simulation orders and supported payment reads/sandbox operations. Request the appropriate read, write, publish or delete scope. Scopes do not bypass ownership, plan limits, domain permissions or revision checks. Real payment creation, domain purchases and administration are not exposed.

Handle errors and retries

Follow the live schema for pagination, idempotency keys and expected link/page revisions. Treat 401 as authentication failure, 403 as scope or permission denial, 404 as unavailable resource, 409 as a state/revision conflict and 429 as rate limiting. Re-read state before retrying a mutation; never blindly repeat an uncertain operation.

const response = await fetch("https://app.cpbr.link/api/v1/capabilities");
if (!response.ok) throw new Error("Discovery failed");
const capabilities = await response.json();