Public API
The versioned Pagebread API for your own systems, authenticated with API keys, at api.pagebread.com/v1. Currently in private beta.
The public API is how your own servers talk to Pagebread: a CRM that keeps applicants in step, an HR system that starts onboarding when someone is hired. It is separate from the console API that the Pagebread console itself uses, and it is the one meant for integrations: it is versioned, it is authenticated with API keys rather than a person's sign-in, and its errors have stable codes.
Private beta
The public API is open to workspaces in its private beta. If your workspace is in it, owners and admins see Developers under Settings. To ask to join, contact Pagebread support.
Base URL
https://api.pagebread.com/v1Every request needs an API key in the Authorization header. There is one endpoint so far, GET /v1/me, which tells you which key and workspace you are calling as. Use it to check a new key works.
curl https://api.pagebread.com/v1/me \
-H "Authorization: Bearer $PAGEBREAD_API_KEY"const res = await fetch('https://api.pagebread.com/v1/me', {
headers: { Authorization: `Bearer ${process.env.PAGEBREAD_API_KEY}` },
})
console.log(await res.json()){
"object": "api_key_context",
"workspace": { "id": "ws_01JFQ8Z3T9K2M4N6P8R0S2V4W6", "name": "Acme Lending" },
"key": {
"id": "key_01JFQ8Z3T9K2M4N6P8R0S2V4W7",
"name": "local dev",
"mode": "test",
"scopes": ["submissions:read", "flows:read"],
"effective_scopes": ["submissions:read", "flows:read"],
"pinned_version": "2027-02-01",
"expires_at": null
},
"rate_limits": { "key_rpm": 120, "key_burst": 20, "workspace_rpm": 300 }
}The numbers in rate_limits here are an example: your plan and the key's mode set the real ones, and null means no limit of that kind.
effective_scopes is what the key can do right now: its scopes, limited by the role of the member responsible for it. See API keys.
Conventions
- Objects are plain JSON. Each has an
objectfield naming its type, and ids carry a prefix that says what they are:ws_for a workspace,key_for an API key,req_for a request. - Errors are
application/problem+jsonwith acodeyou can branch on. See Errors. - Versions: the
Pagebread-Versionheader picks the response shapes. See Versions. - Request ids: every response carries
Request-Id: req_…. Quote it when you contact support. If you send your ownX-Request-Id, it is recorded with the request beside ours; it never replaces ours. - Caching: every response carries
Cache-Control: no-store.
Keys are for servers
API keys must never be used from a web page or a mobile app, where anyone can read them. The public API sends no CORS headers, so a browser cannot read its responses, and a request that carries a browser's Origin header is refused with 400 browser_request_refused. If that happens, treat the key as exposed and roll it.
Limits
Each key has a per-minute and a per-second limit, and each workspace a per-minute limit across all its keys. Every response carries RateLimit-Policy and RateLimit headers. A request over a limit is answered 429 rate_limited with Retry-After; see Errors. Requests that are refused (no key, a revoked key, a workspace that can't use the API) also count against a limit per client address, so retrying them in a loop soon gets 429 too.
The request log
Every call made with one of your keys appears under Settings → Developers → Request log: time, method, route, status, error code, latency, version and request id. Values and bodies are never recorded. A request that failed before its key was recognised is not listed.