Skip to content
API reference

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

SectionOperationsServedWhat it covers
Control plane2322Tenants, members, apps, environments, provisioning jobs, budgets and health. Operator console only.
Connections99Provider connections (credentials, public config, readiness tests) and the public client config.
Identity2322Sign-in (Google, Apple, email OTP), sessions, account linking, users, consent, export and deletion.
Messaging1313Device registration, notification preferences, inbox, templates and message intents.
Catalog77Products and plans: drafts, native store mappings and publishing.
Entitlements44Entitlement snapshots, manual grants and metered usage reservations.
Commerce1414Purchase intents, store verification, restore, subscriptions and store notifications.
Finance44Invoices and finance documents.
Engagement1313Segments, campaigns and remote config.
Analytics44Client/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

ChannelUsed byHow it is sent
consumerSessionYour 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.
operatorSessionOperator consoleappcore_admin_session HttpOnly cookie, with MFA/recent-auth policy and CSRF/origin checks.
serviceCapabilityYour servers / AppCore internalsAuthorization: Bearer <capability> — short-lived, bound to scope, audience, operation and expiry. Never ship it in a mobile app.
providerSignatureApple, Google, Meta, PSPsProvider-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_cursor you 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. Keep request_id for 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 sendYou get
Same key, same body (a retry)The original result, not a second effect
Same key, different body409 IDEMPOTENCY_KEY_REUSED
Same key while the first request is still running409 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/...). Within v1, 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.md before landing.
  • Events are versioned by name (commerce.purchase.verified.v1); a breaking event change ships as .v2 alongside .v1.

Errors

Errors are RFC 9457 problem details with content type application/problem+json (schema: Problem):

JSON
{
  "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.

HTTPMeaning
400Invalid request
401Authentication required
403Not permitted
404Not found or not visible in your scope
409Version, ownership or idempotency conflict
413Payload too large
422Unsupported or invalid domain state
429Rate, quota or budget limit — honour retry_after_seconds
501Not implemented yet
503Capability 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):

CodeHTTPAreaMeaning
ADDON_CYCLE422entitlementsAdd-on dependencies form a cycle.
ADDON_RULE_CONFLICT422entitlementsA product cannot be both required and excluded.
ADDON_SELF_REFERENCE422entitlementsA product cannot require or exclude itself.
ADDON_UNKNOWN_PRODUCT422entitlements
ADDON_UNSUPPORTED_CHANNEL422entitlements
ADJUSTMENT_NOT_CONFIRMED409commerceNo provider-confirmed refund to credit.
ADJUST_LIMIT_EXCEEDED422entitlements
ALREADY_APPROVED409engagementCampaign version is already approved.
ALREADY_CURRENT409engagementRelease is already current.
ALREADY_PUBLISHED409messagingThis template version is already published.
APPROVAL_ALREADY_USED409entitlementsapproval_ref already produced a different grant.
APPROVAL_REQUIRED409engagementThis campaign version is not approved.
APP_INACTIVE503analyticsAnalytics intake is paused for this app.
APP_NOT_ACTIVE503messagingThis application is not accepting sign-ins.
ARTIFACT_DIGEST_MISMATCH409control-apiPromoted artifact differs from source.
ARTIFACT_MISSING503control-apiRuntime artifact is not available.
AUDIENCE_CHANGED409engagementSegment changed since preview; preview again.
AUTH_NOT_CONFIGURED503identityThe sign-in method is not configured for this environment.
BOOTSTRAP_REJECTED403control-apiBootstrap token is invalid or already used.
BUDGET_CONFLICT409control-apiBudget currency differs or limit is below current usage.
BUDGET_EXCEEDED409engagementProjected spend exceeds the per-campaign spend ceiling.
CAMPAIGN_EXPIRED409engagementCampaign send window has already ended.
CAPABILITY_BODY403kernelRequest body does not match capability.
CAPABILITY_INVALID401kernelCapability is invalid or expired.
CAPABILITY_NOT_CONFIGURED503control-api, kernelA required provider capability is not configured.
CAPABILITY_SCOPE403kernelCapability is for a different scope.
CAPABILITY_TARGET403kernelCapability is for a different request.
CAPABILITY_UNAVAILABLE422commercePartial refunds are not supported for this store.
CAPTURE_EXCEEDS_RESERVATION422entitlementsactual_units exceeds the reserved units.
CARRYOVER_UNSUPPORTED422entitlementsAllowance carryover is not supported yet; unused period units expire at the period end.
CHECK_IS_AUTOMATED409connectionsThis check is verified automatically by the connection test and cannot be attested.
CLOUDFLARE_API_ERROR502control-apiCloudflare API call failed (7404).
CLOUDFLARE_NOT_CONFIGURED503control-apiCloudflare API credential is not configured.
CLOUDFLARE_SECRET_WRITE_FAILED502connections
CONCURRENT_UPDATE409entitlementsAnother writer changed the resource concurrently: reload and retry.
CONFLICT409kernelGeneric state conflict.
CONNECTION_ACTIVE409connectionsDisable the connection before changing its configuration.
CONNECTION_EXISTS409connectionsA connection for this provider already exists in this environment.
CONNECTION_INCOMPLETE409connectionsRequired fields or secrets are missing.
CREDIT_NOTE_EXISTS409commerceExisting credit notes already cover the confirmed refund.
CREDIT_NOTE_NOT_APPLICABLE422commerceCredit notes apply only to issued merchant invoices.
DELEGATION_DENIED403control-apiYou cannot grant permissions you do not hold.
DESTINATION_UNSUPPORTED422identityWhatsApp sign-in is not available for this number.
DRAFT_EXISTS409entitlementsA draft already exists for this plan; edit it with expected_version.
DRILL_BLOCKED_BY_JOB409control-apiAnother job is in progress for this environment; the drill retries later.
DRILL_IN_PROGRESS409control-apiA Time Travel drill is already in progress for this environment.
DRILL_PRODUCTION_FORBIDDEN409control-apiTime Travel drills are not allowed on production; use an export restored to an isolated environment.
DRILL_STATE_MISSING409control-apiDrill preflight state is missing.
DUPLICATE_KEY422entitlements
ENVIRONMENT_ARCHIVED409control-apiEnvironment is archived.
ENVIRONMENT_MISSING404control-apiEnvironment is not registered.
ENVIRONMENT_NOT_SUPPORTED400connectionsConnector is not supported in this environment.
EVENT_DATA_MISSING500kernel
EVENT_DIGEST_MISMATCH409kernelEvent payload changed for the same event_id; quarantined.
EVENT_INVALID500kernel
EVENT_PRODUCER_MISMATCH500kernel
EVIDENCE_REQUIRED409, 422connections, control-apiEnabling external checkout requires an approved evidence record.
EXCHANGE_INVALID400identityThe sign-in code is invalid or has expired.
EXPECTED_VERSION_REQUIRED409entitlementsExisting product requires expected_version.
EXPORT_EXPIRED410analytics, identityExport has expired.
EXPORT_NOT_READY409analyticsExport is not ready.
FEATURE_UNAVAILABLE503allThe capability is not configured for this app/environment (e.g. provider not connected). Never a mock success.
FORBIDDEN403kernelAuthenticated but lacking the permission or ownership.
GRANT_TOO_LONG422entitlements
HOSTNAME_DETACH_PENDING409control-apiThis hostname is still being detached; retry shortly.
HOSTNAME_EXISTS409control-apiThis hostname is already attached to this environment.
HOSTNAME_LIMIT409control-api
HOSTNAME_NOT_ALLOWED422control-apiThis hostname is reserved by the platform.
HOSTNAME_NOT_CREATED409control-apiCustom hostname has not been created yet.
HOSTNAME_TAKEN409control-apiThis hostname is already attached to another environment.
IDEMPOTENCY_IN_PROGRESS409kernelAn identical request with this key is still running: retry later with the same key.
IDEMPOTENCY_KEY_REUSED409entitlements, kernel, messagingSame Idempotency-Key sent with a different request body.
IDEMPOTENCY_RACE409kernel, messagingLost a race recording the key: retry with the same key.
IDENTITY_CONFLICT409identityThis sign-in method belongs to another account.
IDENTITY_RACE409identityRetry the request.
INBOX_INTEGRITY_QUARANTINE409commerceIntegrity-quarantined events cannot be replayed.
INSUFFICIENT_UNITS409entitlementsAdjustment exceeds the spendable balance; balances never go negative.
INTENT_EXPIRED409messagingThe message deadline has passed; it will not be sent late.
INTERNAL500control-api, kernelUnexpected server error; quote the request_id to support.
INVALID_PUBLIC_CONFIG400connectionsPublic configuration is invalid.
INVALID_PURPOSE400connections
INVALID_QUANTITY422entitlementsInvalid purchase quantity.
INVALID_REQUEST400analytics, commerce, kernelBody or parameters do not match the contract; see field_errors.
INVALID_STATE409engagement
INVALID_UNITS422entitlementsAllowance units must be positive.
INVALID_VALIDITY422entitlementsexpires_at must be in the future.
INVITATION_EXPIRED410control-apiInvitation has expired.
INVITATION_NOT_PENDING409control-apiInvitation is not pending.
JOB_NOT_AWAITING_RECONCILIATION409control-apiThe drill is not waiting for reconciliation.
KIND_IMMUTABLE409entitlementsProduct kind cannot change after publication.
LAST_METHOD409identityThe last sign-in method cannot be removed.
LAST_TEST_FAILED409connectionsThe most recent test of this configuration failed.
MANUAL_APPROVAL_PENDING409connectionsBlocking setup tasks are not complete.
MAPPING_CONFLICT409entitlementsNative product mapping conflicts with another product.
MAPPING_NOT_READY422entitlementsProduction publication requires non-draft store mappings.
MARKETING_DISABLED409engagementMarketing messages are disabled by the app policy profile.
METHOD_NOT_LINKED422identityUse a sign-in method already linked to this account.
MFA_REQUIRED403control-apiVerify your second factor (TOTP) to perform this action.
MIGRATION_CHECKSUM_CONFLICT409control-api
NOTHING_STAGED409connectionsStage and test a new secret version before rotating.
NOTHING_TO_PROMOTE409control-apiSource environment has no deployed release.
NOT_ACTIVE409connectionsOnly an active connection can be rotated.
NOT_ELIGIBLE409messagingThe message is no longer eligible.
NOT_FOUND404control-api, kernelMissing or not visible in your scope — the two are indistinguishable by design.
NOT_IMPLEMENTED501kernelEndpoint is declared but not implemented yet.
NOT_MANUAL_GRANT409entitlementsOnly manual grants can be revoked here; provider truth is changed by commerce events.
NOT_PUBLISHED409entitlementsOnly published products can be retired.
NOT_REPLAYABLE409messagingOnly dead-lettered messages can be replayed.
NO_ACTIVE_STOP409control-apiThere is no active emergency stop for this environment.
NO_BENEFITS422entitlementsProduct grants no entitlement keys and has no published plan.
NO_PROMOTION_TARGET409control-apiThere is no next environment to promote to.
OAUTH_CODE_REJECTED401identityThe sign-in provider rejected the authorization.
OAUTH_STATE_INVALID400identityThis sign-in attempt is invalid, expired or already used.
ORIGIN_REJECTED403control-apiRequest origin is not allowed.
OTP_INVALID400identityWrong or expired one-time code.
PARAMETERS_INVALID422messagingExample values violate the template allowlist.
PAYLOAD_TOO_LARGE413kernelBody exceeds the endpoint byte limit.
PLAN_IMMUTABLE409entitlementsPublished plan versions are immutable; save a new draft.
PLAN_RETIRED409entitlementsRetired plan versions cannot be published.
PLAN_VERSION_UNKNOWN422entitlementsRecorded plan version does not exist for this product.
POLICY_PUSH_FAILED502control-apiRuntime is unreachable.
POLICY_REQUIRED409engagementNo control-plane policy profile is applied to this app.
POLICY_VERSION_CONFLICT409engagementSame policy version with different content.
POSSESSION_PROOF_REQUIRED409identityThe user must sign in with another linked method after the case was opened.
PRODUCTION_TEST_OUTSIDE_PRODUCTION409connectionsProduction checks run only in the production environment.
PRODUCT_EXISTS409entitlementsProduct already exists; send expected_version.
PRODUCT_NOT_MAPPED404entitlementsNo active catalog product is mapped to this store product.
PRODUCT_NOT_PUBLISHED422entitlementsPurchased product has no published catalog version.
PRODUCT_RETIRED409entitlementsRetired products cannot be edited.
PROOF_INVALID400identityVerification is missing, expired or already used.
PROVIDER_ENVIRONMENT_MISMATCH422commerce, entitlementsStore sandbox receipt sent to production (or vice versa).
PROVIDER_SIGNATURE_INVALID401commerceWebhook signature / OIDC token failed verification.
PROVIDER_UNAVAILABLE502, 503commerce, identityStore verification is temporarily unavailable; retry later.
PURCHASE_NOT_REFUNDABLE409commercePurchase is not in a refundable state.
PURCHASE_OWNERSHIP_CONFLICT409commerceThis purchase is linked to a different account; use the account that made it or contact support.
PURCHASE_OWNERSHIP_UNRESOLVED409commercePurchase account binding is not recognized for this app.
PURCHASE_OWNER_CHANGED409entitlementsPurchase owner differs from the applied source.
PURCHASE_PRODUCT_MISMATCH422commerceVerified product does not match the purchase intent.
PURCHASE_VERIFICATION_FAILED422commerce
QUOTA_EXCEEDED409control-api, engagementA plan, credit or budget limit was reached.
RATE_LIMITED429kernelToo many requests; honour retry_after_seconds.
REASON_REQUIRED400control-apiA reason of at least 10 characters is required.
REAUTHENTICATION_REQUIRED401identityA recent sign-in (or MFA for operators) is required for this action.
RECENT_AUTH_REQUIRED403control-apiSign in again to perform this action.
RECOVERY_CASE_CLOSED409identityThis recovery case is closed.
RECOVERY_CASE_OPEN409identityA recovery case is already open for this user.
REPORT_NOT_FOUND404analyticsReport template not found.
RESERVATION_EXPIRED409entitlementsReservation expired before capture.
RESOURCE_MISSING409control-apiEnvironment database is not provisioned.
RESOURCE_OWNERSHIP_CONFLICT409control-apiDatabase is already owned by another resource set.
RESTORE_IN_PLACE_FORBIDDEN409control-apiRestore must target an isolated environment, not the live database.
ROUTE_NOT_READY503control-apiEnvironment runtime is not wired yet.
ROUTE_REJECTED503control-apiRuntime route is not allowlisted.
RUNTIME_REDIRECT_BLOCKED502control-apiRuntime attempted a redirect.
SANDBOX_TEST_IN_PRODUCTION409connectionsSandbox checks run only in non-production environments.
SCHEMA_INCOMPATIBLE409control-apiRuntime artifact is incompatible with the database schema.
SCOPE_MISMATCH409, 503control-api, kernelCredential or object belongs to another tenant/app/environment.
SCOPE_NOT_CONFIGURED503kernelDeployment scope is not configured.
SCOPE_NOT_INITIALIZED503kernelApplication database is not initialized.
SECRET_KEK_MISMATCH503connectionsSecret was encrypted with a different key.
SECRET_UNREADABLE503connectionsStored secret could not be decrypted.
SEGMENT_NOT_PUBLISHED409engagementSegment is not published.
SELF_RESET_FORBIDDEN409control-apiAnother platform owner must reset your second factor.
SEPARATION_OF_DUTIES403engagementApprover must differ from the author and previewer.
SESSION_UNAVAILABLE503identityCould not create a session.
SIGNATURE_INVALID401messagingWebhook signature is invalid.
SNAPSHOT_PUSH_FAILED502control-api
SOCIAL_TOKEN_REJECTED401identityThe provider token could not be verified.
STAGE_ENVIRONMENT_MISMATCH409connectionsProduction checks belong to the production environment; sandbox checks to non-production (read_only applies to both).
STALE_POLICY409engagementA newer policy version is already applied.
STALE_SNAPSHOT409connectionsA newer snapshot is already applied.
STALE_VERSION409kernelexpected_version / If-Match is out of date: reload and retry.
STOP_ALREADY_ACTIVE409control-apiAn emergency stop is already active for this environment.
STORE_ID_TAKEN409control-apiPackage or bundle identifier already belongs to another app.
TASK_DEPENDENCY_OPEN409connectionsComplete the prerequisite setup tasks first.
TASK_REQUIRED409connectionsA gate that blocks activation cannot be marked not applicable.
TEMPLATE_INVALID422messagingTemplate violates policy.
TEMPLATE_MISMATCH422messagingTemplate channel/category does not match the message.
TEMPLATE_NOT_PUBLISHED422messagingTemplate has no published version.
TENANT_INACTIVE409control-apiTenant is not active.
TEST_DEVICE_NO_TOKEN409messagingThe device has no valid push registration.
TEST_DEVICE_STALE409messagingThe device changed owner since pairing; pair it again.
TEST_SEND_UNSUPPORTED_CHANNEL422messagingTest send supports push templates; use preview for other channels.
UNAUTHENTICATED401kernelNo valid session or credential.
UNKNOWN_CHECK400connectionsCheck is not defined for this connector stage.
UNKNOWN_EVENT500kernel
UNKNOWN_PRODUCT422entitlementsplan_key must be a catalog product id or "free".
UNKNOWN_PROVIDER400connectionsProvider is not in the connector manifest.
UNKNOWN_SECRET_FIELD400connectionsField is not a secret field of this connector.
USAGE_CONTRACT_MISMATCH502analyticsRuntime did not return the metering contract.
VOIDED_NOT_CONFIRMED409commerceProvider did not confirm the voided purchase.
ZONE_NOT_FOUND503control-apiNo Cloudflare zone for the app API domain.

Regenerating

Shell
node docs/scripts/gen-api.mjs

Run with --check in CI to fail when the reference is out of date.