API reference
HTTP API reference for AppCore, generated from the canonical contract.
On this page
Generated from packages/contracts/openapi.json — contract version 1.1.0 (OpenAPI 3.1.0). The contract is canonical: where this reference and other prose disagree, the contract wins.
Important
Most apps should use the Flutter SDK rather than calling these endpoints directly. The SDK handles sessions, retries, idempotency keys and consent gating for you.
Sections
| Section | Operations | Served | What it covers |
|---|---|---|---|
| Control plane | 23 | 22 | Tenants, members, apps, environments, provisioning jobs, budgets and health. Operator console only. |
| Connections | 9 | 9 | Provider connections (credentials, public config, readiness tests) and the public client config. |
| Identity | 23 | 22 | Sign-in (Google, Apple, email OTP), sessions, account linking, users, consent, export and deletion. |
| Messaging | 13 | 13 | Device registration, notification preferences, inbox, templates and message intents. |
| Catalog | 7 | 7 | Products and plans: drafts, native store mappings and publishing. |
| Entitlements | 4 | 4 | Entitlement snapshots, manual grants and metered usage reservations. |
| Commerce | 14 | 14 | Purchase intents, store verification, restore, subscriptions and store notifications. |
| Finance | 4 | 4 | Invoices and finance documents. |
| Engagement | 13 | 13 | Segments, campaigns and remote config. |
| Analytics | 4 | 4 | Client/server event intake, reports and exports. |
| Schemas | — | — | All request/response shapes. |
Totals: 114 operations, 112 served, 2 specified only.
Warning
"Served" is derived from the runtime source, not from a test result. "Specified only" endpoints are part of the contract but not yet served; calling one returns 404 or 501 NOT_IMPLEMENTED. Endpoints that depend on a provider (store verification, push, email, WhatsApp, Google/Apple sign-in) return 503 FEATURE_UNAVAILABLE until you connect that provider and its readiness check passes.
Base URL and scope
Each app environment is served from its own host (for example https://<your-api-host>). Scope — tenant, app and environment — comes only from that host's deployment configuration. There is no tenant or app header to set, and any client-supplied tenant header is ignored. An ID that belongs to another scope returns the same 404 as an ID that does not exist.
Each environment runs as its own runtime Worker with its own database, reachable on the origin shown in the console's environment settings (a Cloudflare-assigned origin by default; custom hostnames are optional and appear only when configured).
Operator endpoints are served by the console API. /v1/control/* operations act on the control plane directly. App-scoped operator operations (catalog, templates, campaigns, refunds, reports…) are called through the console API gateway as /v1/scoped/{resource_set_id}/v1/...: the gateway checks your role grant for that environment, then forwards the request with a short-lived capability. Operators never call an app runtime host directly.
Authentication
| Channel | Used by | How it is sent |
|---|---|---|
consumerSession | Your app (end users) | Authorization: Bearer <session token> — an opaque session token (not necessarily a JWT). Native sign-in returns it in the set-auth-token response header. |
operatorSession | Operator console | appcore_admin_session HttpOnly cookie, with MFA/recent-auth policy and CSRF/origin checks. |
serviceCapability | Your servers / AppCore internals | Authorization: Bearer <capability> — short-lived, bound to scope, audience, operation and expiry. Never ship it in a mobile app. |
providerSignature | Apple, Google, Meta, PSPs | Provider-specific: Apple signed JWS payloads, Google Pub/Sub push with an OIDC token, Meta X-Hub-Signature-256 HMAC. There is no literal X-Provider-Signature header. |
Public (no auth): GET /health/live, POST /v1/auth/browser-exchange, POST /v1/auth/oauth/start, POST /v1/auth/otp/request, POST /v1/auth/otp/verify, POST /v1/auth/social, GET /v1/config/public, GET /webhooks/whatsapp/{connection_ref}.
Request rules
- JSON only. Request bodies are
application/json, validated against the contract; unknown fields are rejected where the schema says so. Bodies are bounded in bytes (413 PAYLOAD_TOO_LARGE). - Money is an integer count of minor units sent as a string (
"1999"= 19.99 in a 2-decimal currency) with an ISO 4217 currency. Never floats. - Time is UTC RFC 3339 (
2026-11-30T09:00:00Z). Scheduling also keeps an IANA timezone. Client clocks are treated as untrusted. - Lists are bounded and cursor-paginated: pass the
next_cursoryou received to get the next page. Cursors are bound to the scope, filter and sort that produced them and may expire. - Responses use the envelope
{ "request_id": "...", "data": ..., "next_cursor": ... }or a named schema. Keeprequest_idfor support.
Idempotency
Send an Idempotency-Key header (≤ 200 characters, e.g. a UUID) on every request that creates an effect — purchases, grants, messages, exports, publishes. AppCore stores the key with your scope, the authenticated principal, the operation and a digest of the request:
| You send | You get |
|---|---|
| Same key, same body (a retry) | The original result, not a second effect |
| Same key, different body | 409 IDEMPOTENCY_KEY_REUSED |
| Same key while the first request is still running | 409 IDEMPOTENCY_IN_PROGRESS — retry later with the same key |
Keys are retained longer than the relevant provider replay window. Store transaction IDs are unique permanently, so a purchase can never be granted twice even after an HTTP key expires.
The contract declares the header explicitly on: POST /v1/analytics/events, POST /v1/analytics/exports, POST /v1/analytics/reports/query, POST /v1/auth/contact-challenges, POST /v1/auth/contact-challenges/verify, POST /v1/auth/logout, POST /v1/auth/logout-all, POST /v1/auth/methods/link, DELETE /v1/auth/methods/{identity_id}, POST /v1/auth/social-link-proof, POST /v1/catalog/plans, POST /v1/catalog/plans/{plan_id}/publish, POST /v1/catalog/products, POST /v1/catalog/products/{product_id}/publish, POST /v1/commerce/purchase-intents, POST /v1/commerce/purchases/verify, POST /v1/commerce/purchases/{purchase_id}/refund, POST /v1/commerce/reconciliation, POST /v1/commerce/restore, POST /v1/connections, POST /v1/connections/{connection_id}/activate, POST /v1/connections/{connection_id}/disable, POST /v1/connections/{connection_id}/rotate, POST /v1/connections/{connection_id}/secrets, POST /v1/connections/{connection_id}/test, POST /v1/control/environments/{resource_id}/archive, POST /v1/control/environments/{resource_id}/export, POST /v1/control/environments/{resource_id}/migrate, POST /v1/control/environments/{resource_id}/promote, POST /v1/control/environments/{resource_id}/provision, POST /v1/control/environments/{resource_id}/restore, POST /v1/control/environments/{resource_id}/resume, POST /v1/control/environments/{resource_id}/suspend, POST /v1/control/memberships, POST /v1/control/memberships/{membership_id}/revoke, POST /v1/control/tenants, POST /v1/control/tenants/{tenant_id}/apps, POST /v1/engagement/campaigns, POST /v1/engagement/campaigns/{campaign_id}/approve, POST /v1/engagement/campaigns/{campaign_id}/cancel, POST /v1/engagement/campaigns/{campaign_id}/pause, POST /v1/engagement/campaigns/{campaign_id}/preview, POST /v1/engagement/campaigns/{campaign_id}/resume, POST /v1/engagement/campaigns/{campaign_id}/schedule, POST /v1/engagement/config, POST /v1/engagement/segments, POST /v1/engagement/segments/{segment_id}/preview, POST /v1/entitlements/grants, POST /v1/entitlements/reservations, POST /v1/entitlements/reservations/{reservation_id}, POST /v1/finance/documents/{document_id}/credit-note, POST /v1/finance/documents/{document_id}/download, PUT /v1/messaging/devices, DELETE /v1/messaging/devices/{installation_id}, POST /v1/messaging/dlq/{item_id}/replay, POST /v1/messaging/inbox/{item_id}/read, POST /v1/messaging/intents, PUT /v1/messaging/preferences, POST /v1/messaging/templates, POST /v1/messaging/templates/{template_id}/publish, DELETE /v1/privacy/account, POST /v1/privacy/consent, POST /v1/privacy/export, POST /v1/users/{user_id}/block, POST /v1/users/{user_id}/unblock. Treat it as required on any other effectful call too.
Concurrency and versions
Edits that could overwrite someone else's change take expected_version in the body (or If-Match). Send the version you last read, as a string. If the resource has moved on you get 409 STALE_VERSION (or CONCURRENT_UPDATE); reload and decide — a retry never silently overwrites. Version numbers may have gaps; published versions are immutable.
Versioning
- The HTTP surface is versioned in the path (
/v1/...). Withinv1, contract releases (currently 1.1.0) are additive only: new endpoints, new optional fields, new enum values, new event types. Your client must ignore unknown response fields and tolerate unknown enum values. - Breaking changes require a new path version and a published deprecation window; they are proposed and reviewed in
coordination/CONTRACT_CHANGES.mdbefore landing. - Events are versioned by name (
commerce.purchase.verified.v1); a breaking event change ships as.v2alongside.v1.
Errors
Errors are RFC 9457 problem details with content type application/problem+json (schema: Problem):
{
"type": "urn:appcore:problem:feature_unavailable",
"title": "This capability is not configured",
"status": 503,
"code": "FEATURE_UNAVAILABLE",
"request_id": "req_…"
}Branch on code (stable, UPPER_SNAKE_CASE), not on title or detail. Errors never contain tokens, destination addresses, secret values, provider payloads or SQL.
| HTTP | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Authentication required |
| 403 | Not permitted |
| 404 | Not found or not visible in your scope |
| 409 | Version, ownership or idempotency conflict |
| 413 | Payload too large |
| 422 | Unsupported or invalid domain state |
| 429 | Rate, quota or budget limit — honour retry_after_seconds |
| 501 | Not implemented yet |
| 503 | Capability unavailable (provider not configured or dependency down) |
Problem codes
Codes the runtime can return today, collected from the source (a code may be returned by several modules):
| Code | HTTP | Area | Meaning |
|---|---|---|---|
ADDON_CYCLE | 422 | entitlements | Add-on dependencies form a cycle. |
ADDON_RULE_CONFLICT | 422 | entitlements | A product cannot be both required and excluded. |
ADDON_SELF_REFERENCE | 422 | entitlements | A product cannot require or exclude itself. |
ADDON_UNKNOWN_PRODUCT | 422 | entitlements | |
ADDON_UNSUPPORTED_CHANNEL | 422 | entitlements | |
ADJUSTMENT_NOT_CONFIRMED | 409 | commerce | No provider-confirmed refund to credit. |
ADJUST_LIMIT_EXCEEDED | 422 | entitlements | |
ALREADY_APPROVED | 409 | engagement | Campaign version is already approved. |
ALREADY_CURRENT | 409 | engagement | Release is already current. |
ALREADY_PUBLISHED | 409 | messaging | This template version is already published. |
APPROVAL_ALREADY_USED | 409 | entitlements | approval_ref already produced a different grant. |
APPROVAL_REQUIRED | 409 | engagement | This campaign version is not approved. |
APP_INACTIVE | 503 | analytics | Analytics intake is paused for this app. |
APP_NOT_ACTIVE | 503 | messaging | This application is not accepting sign-ins. |
ARTIFACT_DIGEST_MISMATCH | 409 | control-api | Promoted artifact differs from source. |
ARTIFACT_MISSING | 503 | control-api | Runtime artifact is not available. |
AUDIENCE_CHANGED | 409 | engagement | Segment changed since preview; preview again. |
AUTH_NOT_CONFIGURED | 503 | identity | The sign-in method is not configured for this environment. |
BOOTSTRAP_REJECTED | 403 | control-api | Bootstrap token is invalid or already used. |
BUDGET_CONFLICT | 409 | control-api | Budget currency differs or limit is below current usage. |
BUDGET_EXCEEDED | 409 | engagement | Projected spend exceeds the per-campaign spend ceiling. |
CAMPAIGN_EXPIRED | 409 | engagement | Campaign send window has already ended. |
CAPABILITY_BODY | 403 | kernel | Request body does not match capability. |
CAPABILITY_INVALID | 401 | kernel | Capability is invalid or expired. |
CAPABILITY_NOT_CONFIGURED | 503 | control-api, kernel | A required provider capability is not configured. |
CAPABILITY_SCOPE | 403 | kernel | Capability is for a different scope. |
CAPABILITY_TARGET | 403 | kernel | Capability is for a different request. |
CAPABILITY_UNAVAILABLE | 422 | commerce | Partial refunds are not supported for this store. |
CAPTURE_EXCEEDS_RESERVATION | 422 | entitlements | actual_units exceeds the reserved units. |
CARRYOVER_UNSUPPORTED | 422 | entitlements | Allowance carryover is not supported yet; unused period units expire at the period end. |
CHECK_IS_AUTOMATED | 409 | connections | This check is verified automatically by the connection test and cannot be attested. |
CLOUDFLARE_API_ERROR | 502 | control-api | Cloudflare API call failed (7404). |
CLOUDFLARE_NOT_CONFIGURED | 503 | control-api | Cloudflare API credential is not configured. |
CLOUDFLARE_SECRET_WRITE_FAILED | 502 | connections | |
CONCURRENT_UPDATE | 409 | entitlements | Another writer changed the resource concurrently: reload and retry. |
CONFLICT | 409 | kernel | Generic state conflict. |
CONNECTION_ACTIVE | 409 | connections | Disable the connection before changing its configuration. |
CONNECTION_EXISTS | 409 | connections | A connection for this provider already exists in this environment. |
CONNECTION_INCOMPLETE | 409 | connections | Required fields or secrets are missing. |
CREDIT_NOTE_EXISTS | 409 | commerce | Existing credit notes already cover the confirmed refund. |
CREDIT_NOTE_NOT_APPLICABLE | 422 | commerce | Credit notes apply only to issued merchant invoices. |
DELEGATION_DENIED | 403 | control-api | You cannot grant permissions you do not hold. |
DESTINATION_UNSUPPORTED | 422 | identity | WhatsApp sign-in is not available for this number. |
DRAFT_EXISTS | 409 | entitlements | A draft already exists for this plan; edit it with expected_version. |
DRILL_BLOCKED_BY_JOB | 409 | control-api | Another job is in progress for this environment; the drill retries later. |
DRILL_IN_PROGRESS | 409 | control-api | A Time Travel drill is already in progress for this environment. |
DRILL_PRODUCTION_FORBIDDEN | 409 | control-api | Time Travel drills are not allowed on production; use an export restored to an isolated environment. |
DRILL_STATE_MISSING | 409 | control-api | Drill preflight state is missing. |
DUPLICATE_KEY | 422 | entitlements | |
ENVIRONMENT_ARCHIVED | 409 | control-api | Environment is archived. |
ENVIRONMENT_MISSING | 404 | control-api | Environment is not registered. |
ENVIRONMENT_NOT_SUPPORTED | 400 | connections | Connector is not supported in this environment. |
EVENT_DATA_MISSING | 500 | kernel | |
EVENT_DIGEST_MISMATCH | 409 | kernel | Event payload changed for the same event_id; quarantined. |
EVENT_INVALID | 500 | kernel | |
EVENT_PRODUCER_MISMATCH | 500 | kernel | |
EVIDENCE_REQUIRED | 409, 422 | connections, control-api | Enabling external checkout requires an approved evidence record. |
EXCHANGE_INVALID | 400 | identity | The sign-in code is invalid or has expired. |
EXPECTED_VERSION_REQUIRED | 409 | entitlements | Existing product requires expected_version. |
EXPORT_EXPIRED | 410 | analytics, identity | Export has expired. |
EXPORT_NOT_READY | 409 | analytics | Export is not ready. |
FEATURE_UNAVAILABLE | 503 | all | The capability is not configured for this app/environment (e.g. provider not connected). Never a mock success. |
FORBIDDEN | 403 | kernel | Authenticated but lacking the permission or ownership. |
GRANT_TOO_LONG | 422 | entitlements | |
HOSTNAME_DETACH_PENDING | 409 | control-api | This hostname is still being detached; retry shortly. |
HOSTNAME_EXISTS | 409 | control-api | This hostname is already attached to this environment. |
HOSTNAME_LIMIT | 409 | control-api | |
HOSTNAME_NOT_ALLOWED | 422 | control-api | This hostname is reserved by the platform. |
HOSTNAME_NOT_CREATED | 409 | control-api | Custom hostname has not been created yet. |
HOSTNAME_TAKEN | 409 | control-api | This hostname is already attached to another environment. |
IDEMPOTENCY_IN_PROGRESS | 409 | kernel | An identical request with this key is still running: retry later with the same key. |
IDEMPOTENCY_KEY_REUSED | 409 | entitlements, kernel, messaging | Same Idempotency-Key sent with a different request body. |
IDEMPOTENCY_RACE | 409 | kernel, messaging | Lost a race recording the key: retry with the same key. |
IDENTITY_CONFLICT | 409 | identity | This sign-in method belongs to another account. |
IDENTITY_RACE | 409 | identity | Retry the request. |
INBOX_INTEGRITY_QUARANTINE | 409 | commerce | Integrity-quarantined events cannot be replayed. |
INSUFFICIENT_UNITS | 409 | entitlements | Adjustment exceeds the spendable balance; balances never go negative. |
INTENT_EXPIRED | 409 | messaging | The message deadline has passed; it will not be sent late. |
INTERNAL | 500 | control-api, kernel | Unexpected server error; quote the request_id to support. |
INVALID_PUBLIC_CONFIG | 400 | connections | Public configuration is invalid. |
INVALID_PURPOSE | 400 | connections | |
INVALID_QUANTITY | 422 | entitlements | Invalid purchase quantity. |
INVALID_REQUEST | 400 | analytics, commerce, kernel | Body or parameters do not match the contract; see field_errors. |
INVALID_STATE | 409 | engagement | |
INVALID_UNITS | 422 | entitlements | Allowance units must be positive. |
INVALID_VALIDITY | 422 | entitlements | expires_at must be in the future. |
INVITATION_EXPIRED | 410 | control-api | Invitation has expired. |
INVITATION_NOT_PENDING | 409 | control-api | Invitation is not pending. |
JOB_NOT_AWAITING_RECONCILIATION | 409 | control-api | The drill is not waiting for reconciliation. |
KIND_IMMUTABLE | 409 | entitlements | Product kind cannot change after publication. |
LAST_METHOD | 409 | identity | The last sign-in method cannot be removed. |
LAST_TEST_FAILED | 409 | connections | The most recent test of this configuration failed. |
MANUAL_APPROVAL_PENDING | 409 | connections | Blocking setup tasks are not complete. |
MAPPING_CONFLICT | 409 | entitlements | Native product mapping conflicts with another product. |
MAPPING_NOT_READY | 422 | entitlements | Production publication requires non-draft store mappings. |
MARKETING_DISABLED | 409 | engagement | Marketing messages are disabled by the app policy profile. |
METHOD_NOT_LINKED | 422 | identity | Use a sign-in method already linked to this account. |
MFA_REQUIRED | 403 | control-api | Verify your second factor (TOTP) to perform this action. |
MIGRATION_CHECKSUM_CONFLICT | 409 | control-api | |
NOTHING_STAGED | 409 | connections | Stage and test a new secret version before rotating. |
NOTHING_TO_PROMOTE | 409 | control-api | Source environment has no deployed release. |
NOT_ACTIVE | 409 | connections | Only an active connection can be rotated. |
NOT_ELIGIBLE | 409 | messaging | The message is no longer eligible. |
NOT_FOUND | 404 | control-api, kernel | Missing or not visible in your scope — the two are indistinguishable by design. |
NOT_IMPLEMENTED | 501 | kernel | Endpoint is declared but not implemented yet. |
NOT_MANUAL_GRANT | 409 | entitlements | Only manual grants can be revoked here; provider truth is changed by commerce events. |
NOT_PUBLISHED | 409 | entitlements | Only published products can be retired. |
NOT_REPLAYABLE | 409 | messaging | Only dead-lettered messages can be replayed. |
NO_ACTIVE_STOP | 409 | control-api | There is no active emergency stop for this environment. |
NO_BENEFITS | 422 | entitlements | Product grants no entitlement keys and has no published plan. |
NO_PROMOTION_TARGET | 409 | control-api | There is no next environment to promote to. |
OAUTH_CODE_REJECTED | 401 | identity | The sign-in provider rejected the authorization. |
OAUTH_STATE_INVALID | 400 | identity | This sign-in attempt is invalid, expired or already used. |
ORIGIN_REJECTED | 403 | control-api | Request origin is not allowed. |
OTP_INVALID | 400 | identity | Wrong or expired one-time code. |
PARAMETERS_INVALID | 422 | messaging | Example values violate the template allowlist. |
PAYLOAD_TOO_LARGE | 413 | kernel | Body exceeds the endpoint byte limit. |
PLAN_IMMUTABLE | 409 | entitlements | Published plan versions are immutable; save a new draft. |
PLAN_RETIRED | 409 | entitlements | Retired plan versions cannot be published. |
PLAN_VERSION_UNKNOWN | 422 | entitlements | Recorded plan version does not exist for this product. |
POLICY_PUSH_FAILED | 502 | control-api | Runtime is unreachable. |
POLICY_REQUIRED | 409 | engagement | No control-plane policy profile is applied to this app. |
POLICY_VERSION_CONFLICT | 409 | engagement | Same policy version with different content. |
POSSESSION_PROOF_REQUIRED | 409 | identity | The user must sign in with another linked method after the case was opened. |
PRODUCTION_TEST_OUTSIDE_PRODUCTION | 409 | connections | Production checks run only in the production environment. |
PRODUCT_EXISTS | 409 | entitlements | Product already exists; send expected_version. |
PRODUCT_NOT_MAPPED | 404 | entitlements | No active catalog product is mapped to this store product. |
PRODUCT_NOT_PUBLISHED | 422 | entitlements | Purchased product has no published catalog version. |
PRODUCT_RETIRED | 409 | entitlements | Retired products cannot be edited. |
PROOF_INVALID | 400 | identity | Verification is missing, expired or already used. |
PROVIDER_ENVIRONMENT_MISMATCH | 422 | commerce, entitlements | Store sandbox receipt sent to production (or vice versa). |
PROVIDER_SIGNATURE_INVALID | 401 | commerce | Webhook signature / OIDC token failed verification. |
PROVIDER_UNAVAILABLE | 502, 503 | commerce, identity | Store verification is temporarily unavailable; retry later. |
PURCHASE_NOT_REFUNDABLE | 409 | commerce | Purchase is not in a refundable state. |
PURCHASE_OWNERSHIP_CONFLICT | 409 | commerce | This purchase is linked to a different account; use the account that made it or contact support. |
PURCHASE_OWNERSHIP_UNRESOLVED | 409 | commerce | Purchase account binding is not recognized for this app. |
PURCHASE_OWNER_CHANGED | 409 | entitlements | Purchase owner differs from the applied source. |
PURCHASE_PRODUCT_MISMATCH | 422 | commerce | Verified product does not match the purchase intent. |
PURCHASE_VERIFICATION_FAILED | 422 | commerce | |
QUOTA_EXCEEDED | 409 | control-api, engagement | A plan, credit or budget limit was reached. |
RATE_LIMITED | 429 | kernel | Too many requests; honour retry_after_seconds. |
REASON_REQUIRED | 400 | control-api | A reason of at least 10 characters is required. |
REAUTHENTICATION_REQUIRED | 401 | identity | A recent sign-in (or MFA for operators) is required for this action. |
RECENT_AUTH_REQUIRED | 403 | control-api | Sign in again to perform this action. |
RECOVERY_CASE_CLOSED | 409 | identity | This recovery case is closed. |
RECOVERY_CASE_OPEN | 409 | identity | A recovery case is already open for this user. |
REPORT_NOT_FOUND | 404 | analytics | Report template not found. |
RESERVATION_EXPIRED | 409 | entitlements | Reservation expired before capture. |
RESOURCE_MISSING | 409 | control-api | Environment database is not provisioned. |
RESOURCE_OWNERSHIP_CONFLICT | 409 | control-api | Database is already owned by another resource set. |
RESTORE_IN_PLACE_FORBIDDEN | 409 | control-api | Restore must target an isolated environment, not the live database. |
ROUTE_NOT_READY | 503 | control-api | Environment runtime is not wired yet. |
ROUTE_REJECTED | 503 | control-api | Runtime route is not allowlisted. |
RUNTIME_REDIRECT_BLOCKED | 502 | control-api | Runtime attempted a redirect. |
SANDBOX_TEST_IN_PRODUCTION | 409 | connections | Sandbox checks run only in non-production environments. |
SCHEMA_INCOMPATIBLE | 409 | control-api | Runtime artifact is incompatible with the database schema. |
SCOPE_MISMATCH | 409, 503 | control-api, kernel | Credential or object belongs to another tenant/app/environment. |
SCOPE_NOT_CONFIGURED | 503 | kernel | Deployment scope is not configured. |
SCOPE_NOT_INITIALIZED | 503 | kernel | Application database is not initialized. |
SECRET_KEK_MISMATCH | 503 | connections | Secret was encrypted with a different key. |
SECRET_UNREADABLE | 503 | connections | Stored secret could not be decrypted. |
SEGMENT_NOT_PUBLISHED | 409 | engagement | Segment is not published. |
SELF_RESET_FORBIDDEN | 409 | control-api | Another platform owner must reset your second factor. |
SEPARATION_OF_DUTIES | 403 | engagement | Approver must differ from the author and previewer. |
SESSION_UNAVAILABLE | 503 | identity | Could not create a session. |
SIGNATURE_INVALID | 401 | messaging | Webhook signature is invalid. |
SNAPSHOT_PUSH_FAILED | 502 | control-api | |
SOCIAL_TOKEN_REJECTED | 401 | identity | The provider token could not be verified. |
STAGE_ENVIRONMENT_MISMATCH | 409 | connections | Production checks belong to the production environment; sandbox checks to non-production (read_only applies to both). |
STALE_POLICY | 409 | engagement | A newer policy version is already applied. |
STALE_SNAPSHOT | 409 | connections | A newer snapshot is already applied. |
STALE_VERSION | 409 | kernel | expected_version / If-Match is out of date: reload and retry. |
STOP_ALREADY_ACTIVE | 409 | control-api | An emergency stop is already active for this environment. |
STORE_ID_TAKEN | 409 | control-api | Package or bundle identifier already belongs to another app. |
TASK_DEPENDENCY_OPEN | 409 | connections | Complete the prerequisite setup tasks first. |
TASK_REQUIRED | 409 | connections | A gate that blocks activation cannot be marked not applicable. |
TEMPLATE_INVALID | 422 | messaging | Template violates policy. |
TEMPLATE_MISMATCH | 422 | messaging | Template channel/category does not match the message. |
TEMPLATE_NOT_PUBLISHED | 422 | messaging | Template has no published version. |
TENANT_INACTIVE | 409 | control-api | Tenant is not active. |
TEST_DEVICE_NO_TOKEN | 409 | messaging | The device has no valid push registration. |
TEST_DEVICE_STALE | 409 | messaging | The device changed owner since pairing; pair it again. |
TEST_SEND_UNSUPPORTED_CHANNEL | 422 | messaging | Test send supports push templates; use preview for other channels. |
UNAUTHENTICATED | 401 | kernel | No valid session or credential. |
UNKNOWN_CHECK | 400 | connections | Check is not defined for this connector stage. |
UNKNOWN_EVENT | 500 | kernel | |
UNKNOWN_PRODUCT | 422 | entitlements | plan_key must be a catalog product id or "free". |
UNKNOWN_PROVIDER | 400 | connections | Provider is not in the connector manifest. |
UNKNOWN_SECRET_FIELD | 400 | connections | Field is not a secret field of this connector. |
USAGE_CONTRACT_MISMATCH | 502 | analytics | Runtime did not return the metering contract. |
VOIDED_NOT_CONFIRMED | 409 | commerce | Provider did not confirm the voided purchase. |
ZONE_NOT_FOUND | 503 | control-api | No Cloudflare zone for the app API domain. |
Regenerating
node docs/scripts/gen-api.mjsRun with --check in CI to fail when the reference is out of date.