Authentication
API key authentication, scopes, and rate limits.
All service-to-service requests to PlatformXe are authenticated using API keys. There are no session cookies or OAuth flows for API access.
Getting an API key
Register for a free developer account to get your API key:
curl -X POST https://platformxe.com/api/v1/register \
-H "Content-Type: application/json" \
-d '{
"name": "My Company",
"email": "dev@example.com",
"password": "your-secure-password"
}'
{
"success": true,
"data": {
"organizationId": "org_abc123",
"apiKey": "pxk_dev_abc123..."
}
}
The raw API key is only shown once in the registration response. Store it securely — it cannot be retrieved later.
You can also sign up through the PlatformXe portal to manage your keys via the web dashboard. Free accounts start on the Starter plan with generous usage limits for development and testing.
The tenant name becomes the developer tenant's slug (<name>-dev). Some names are reserved and answer 409 CONFLICT
(Developer tenant '<slug>' is not available): any name starting caldera or fed-; errandone, xadmin,
platformxe, platformx, calderasuite, calderaxe; the Caldera apps' names and their -dev, -test,
-staging and -prod variants (lettings, concierge, chats, pgdbadmin, errandone); and PlatformXe's
internal service names (for example workflow-engine, queue-retry, dev-alert, passwordless-auth). The list
grew on 2026-11-17; a name that registered before then keeps its tenant.
The key from POST /api/v1/register, and the "Default API Key" a portal sign-up creates, carry messaging:send, storage:upload, storage:read, storage:delete and permissions:check (since 2026-11-20; from 2026-11-17 to 2026-11-20 the list was messaging:send, storage:upload and permissions:check, and storage:upload reached every storage route; before 2026-11-17, a portal sign-up key had no scopes). Create further keys with the scopes they need in the portal.
The names of Caldera's own applications (lettings, concierge, chats, pgdbadmin, errandone, names starting caldera, and their -dev, -test, -staging and -prod variants) cannot be an organisation slug at sign-up or the caller service of your organisation's keys.
Passing your API key
Include your key in either of these headers:
x-api-key: pxk_live_your_api_key_here
or
Authorization: Bearer pxk_live_your_api_key_here
Both are equivalent. Use whichever fits your HTTP client.
Key prefixes
| Prefix | Environment | Description |
|---|---|---|
pxk_live_ | Production | Real requests, billed usage |
pxk_test_ | Sandbox | No side effects, no billing |
pxk_dev_ | Developer sandbox | Issued by POST /api/v1/register; daily limits below |
Test keys hit the same API but skip external provider calls. Use them for integration testing without incurring costs. Since 2026-10-25 the production API refuses a pxk_test_ key (401); use it against a test environment.
Scopes
Each API key has one or more scopes that control what it can access:
| Scope | Access |
|---|---|
messaging:send | Email, SMS, WhatsApp dispatch, including sending a stored template (POST /api/v1/templates/{id}/send) |
storage:upload | File upload and every other storage write (register, create, update, reorder, overrides, settings, processor), and the QR codes stored by POST /api/v1/qr/batch. Also grants storage:read and storage:delete |
storage:read | File, document, folder, category and settings retrieval and listing; file streaming; media ingest status (every GET under /api/v1/storage/, and GET /api/v1/media/ingest/{id}) |
storage:delete | File, document and category deletion (every DELETE under /api/v1/storage/) |
webhooks:manage | Webhook CRUD |
templates:read | Template retrieval |
templates:write | Template creation, updates, deletion and render previews (POST /api/v1/templates/{id}/render); not needed to send a template |
pdf:rasterize | Rasterize a PDF page to a JPEG/PNG image |
pdf:generate | Render HTML or a stored template to a PDF (POST /api/v1/pdf/generate): a stored file with a time-limited link, or base64. Not a default of a self-registered or portal sign-up key: a key holds it when its scope list names it or holds *, or when it has no scope list (an older key with no scopes reaches every scope except the explicit-grant ones) |
billing:read | List and read your organisation's own invoices and their line items (GET /api/v1/billing/invoices, GET /api/v1/billing/invoices/{id}; read only: no other method under /api/v1/billing is open to any key). Also needed, beside exports:create, for an invoices export. Not a default of a self-registered or portal sign-up key: a key holds it when its scope list names it or holds *, or when it has no scope list |
license:read | Read your organisation's own Enterprise License (GET /api/v1/license): state, validity, edition and the plugins granted to it; never money. Read only: no other method under /api/v1/license is open to any key, and billing:read does not grant it. Not a default of a self-registered or portal sign-up key: a key holds it when its scope list names it or holds *, or when it has no scope list |
ai:complete | Product AI gateway — /api/v1/ai/* except knowledge and the tool list (complete, extract, messages, profile, usage) |
ai:knowledge | Knowledge retrieval — /api/v1/ai/knowledge/* (documents, search) |
tools:platform.read | The platform tools of the server-side tool loop (toolsets: ['platform.read'] on /api/v1/ai/messages and /api/v1/ai/complete) and their list (GET /api/v1/ai/tools). The tools read only your organisation's own webhook, event, messaging (metadata only), usage and issue records. Not a default of a self-registered or portal sign-up key: a key holds it when its scope list names it or holds *, or when it has no scope list; a platform key gets no platform tools |
mcp:connect | Attach a remote MCP client (an agent host) to your organisation's AI tools at https://mcp.platformxe.com/mcp. A key must name it (no scopes, an empty list and * never grant it), and only a key bound to an organisation may hold it. A key naming it is dedicated: it may carry only mcp:connect and tools:* scopes, and it is refused 403 MCP_KEY_NOT_DEDICATED everywhere except the MCP endpoint and GET /api/v1/ai/tools. Its own group in the key dialog. See Remote MCP |
vision:analyze | Image analysis — /api/v1/vision/* (analyze-room) |
ocr:run | Identity / document OCR — /api/v1/ocr/* (required since 2026-10-08) |
permissions:check | Permission checks, resolve, role/module reads |
permissions:manage | Role, override, policy CRUD, federation mutations |
permissions:audit | Audit log queries and export |
identity:resolve | Resolve one identifier across every linked ID (POST /api/v1/identity/resolve); a key of an organisation must name it (see below) |
events:manage | Event subscription CRUD |
events:read | Event subscription reads |
exports:create | Data export |
domains:manage | Sending domain management |
issues:read / issues:write | Issue reads / creates and updates (catalogued 2026-11-08) |
pdf:manage / qr:manage | The organisation's PDF / QR processor configuration (catalogued 2026-11-08) |
How a route's scope is matched (2026-11-08)
A collection and the paths below it need the same scope whether or not the path ends in /. Before 2026-11-08 the bare
collection paths /api/v1/webhooks, /event-log, /event-subscriptions, /domains, /templates and /exports were
matched only with a trailing slash, so a scoped key without the scope reached them (for example POST /api/v1/webhooks
without webhooks:manage); they now need their scope. A write to /api/v1/identity/processor needs identity:verify
(a read keeps identity:read).
Any valid key, whatever its scopes, except a dedicated MCP key (below), may call /api/v1/whoami, /api/v1/usage/summary, /api/v1/telemetry,
POST /api/v1/events (workflow event ingest: the event is the key's organisation's and caller service's, never one named in the body; an organisation key's event fires only that organisation's triggers; a platform key's, only its own caller service's triggers with no organisation), /api/v1/pdf/offer-letter, /api/v1/pdf/property-flyer and
/api/v1/qr. Any other /api/v1 path that no scope rule names is refused 403 FORBIDDEN for every key, including a
key with no scopes, so a new route is never open by accident.
A dedicated MCP key is the exception. A key that names mcp:connect is refused 403 MCP_KEY_NOT_DEDICATED on
every route except the MCP endpoint (POST /api/v1/mcp, or https://mcp.platformxe.com/mcp) and GET /api/v1/ai/tools,
the any-key routes above included, before its scopes are read. It sits in another company's vault or connector
settings, so if it leaks it can do nothing else. Use a separate key for every other call (see Remote MCP).
Follow the principle of least privilege. Create separate keys for separate services, each with only the scopes it needs.
Keys with no scopes
A key with an empty scope list skips scope checks on most routes, but not on these — a scopeless key is refused
403 FORBIDDEN (API key does not have scope: …) there, every time:
| Routes | Scope required | Since |
|---|---|---|
Workflow writes (POST / PUT / PATCH / DELETE under /api/v1/workflows, and /api/v1/workflows/evaluate) | workflows:write | PXE-129 |
/api/v1/permissions/overrides (every method) | permissions:manage | PRM.MRI.PXE3 |
POST / PUT / PATCH / DELETE on /api/v1/permissions/roles, /policies, /modules, /relationships, /federation | permissions:manage | PRM.MRI.PXE3 |
/api/v1/permissions/audit (decision logs, change logs, export) | permissions:audit | PRM.MRI.PXE3 |
permissions:check routes (check, check-batch, shadow-check, resolve, and GET on roles, policies, modules,
relationships and federation) are unaffected. If a service manages roles or overrides with a scopeless key, issue it
a key carrying permissions:manage (and permissions:audit if it reads the logs) before upgrading.
Unscoped access is being withdrawn route by route. Give every key the scopes it needs rather than relying on an empty scope list.
Keys under a reserved service name (2026-11-17)
A key that belongs to an organisation and carries a reserved service name (PlatformXe's internal names, or a
Caldera app's name such as lettings or chats on an organisation that is not that app) is refused
403 FORBIDDEN on every /api/v1 call. New keys cannot take such a name; this refuses any older key that did.
Rotate it under a name of your own.
Scopes a key must name (2026-11-17, identity:resolve 2026-11-18)
A key that belongs to an organisation reaches identity:lookup (raw registry lookup, and any identity route no rule
names) only when its scope list names identity:lookup, and identity:resolve (POST /api/v1/identity/resolve)
only when it names identity:resolve. No scopes, an empty list and the wildcard * do not grant them: such a key is
refused 403 FORBIDDEN (API key does not have scope: identity:lookup / identity:resolve) there. A key that lists
the scope keeps it. Every other scope works for those keys as before.
Rate limits
Rate limits are enforced per API key, per scope tier:
| Scope tier | Limit |
|---|---|
permissions:check (check, resolve, batch) | 5,000 requests/hr |
permissions:manage (CRUD mutations) | 500 requests/hr |
permissions:audit (logs, export) | 100 requests/hr |
pdf:rasterize | 200 requests/hr |
pdf:generate (POST /api/v1/pdf/generate) | 100 requests/hr |
POST /api/v1/qr/batch (route tier; scope storage:upload) | 120 requests/hr |
ai:complete (/api/v1/ai/*: complete, extract, messages, profile, usage) | 600 requests/hr |
ai:knowledge (/api/v1/ai/knowledge/*) | 1,200 requests/hr |
vision:analyze (/api/v1/vision/*) | 2,000 requests/hr |
| Default (all other routes) | 1,000 requests/hr |
When you exceed the limit, the API returns a 429 status with a RATE_LIMITED error code. The Retry-After header indicates how many seconds to wait.
{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Retry after 42 seconds."
}
}
Developer sandbox limits
A self-registered developer tenant (pxk_dev_ key from POST /api/v1/register) has a daily allowance per tenant, reset at 00:00 UTC:
| Scope | Writes per day |
|---|---|
messaging:send (any non-GET request under /api/v1/messaging/, and POST /api/v1/templates/{id}/send) | 100 |
storage:upload (every storage write under /api/v1/storage/ that is not a delete; also POST /api/v1/media/ingest and POST /api/v1/media/probe; one write per request, except POST /api/v1/qr/batch, which counts one write per item plus one for the zip, and a batch that does not fit is refused whole) | 50 |
Reads and storage deletes are not counted. Over the allowance the API returns 429 with code SANDBOX_QUOTA_EXCEEDED and Retry-After. The allowance belongs to your tenant: no other caller can use it up. Contact support for a production tenant.
Email from a self-registered tenant (since 2026-11-21). A tenant created by POST /api/v1/register has no sending domain and no portal members, so its email sends are refused (400 BAD_REQUEST): without a verified sending domain, email goes only to the organisation's own verified members. To send email, sign up in the portal instead, sign in once, and send to your own address; the free plan's 6 emails in any 24 hours apply.
Key rotation
You can rotate an API key in the portal without downtime:
- Navigate to Settings > API Keys.
- Click Rotate on the key you want to replace.
- A new key is generated immediately. The old key enters a grace period (24 hours by default) during which both keys are valid.
- Update your application to use the new key.
- After the grace period, the old key is automatically revoked.
During the grace period, both the old and new keys are accepted. This allows zero-downtime rotation across distributed services.