Errors

Every error response of the REST API is an RFC 9457 problem details document with content type application/problem+json:

{
  "type": "https://api.3x.example/v1/docs/api/errors#insufficient_scope",
  "title": "Insufficient scope",
  "status": 403,
  "detail": "this key lacks conversions:write",
  "code": "insufficient_scope",
  "required": ["conversions:write"],
  "requestId": "0f6c2d0e-…"
}
  • Branch on code – it is stable. title and detail are for humans and may change.
  • type links to the matching section of this page.
  • requestId is also sent as the x-request-id header; quote it when you report a problem. You may send your own x-request-id (8–64 characters [A-Za-z0-9_-]) to correlate logs.
  • Validation errors carry errors: [{path, message}].
  • When an article of the knowledge base explains the error, the body carries it in help (see below).

Two endpoints are deliberately different: the tracking endpoint POST /v1/e and the conversion beacon POST /v1/cb answer with bodyless status codes (204, 400, 403, 413, 429), because browsers send them with sendBeacon and never read a body. See Ingest protocol.

help

Errors a troubleshooting article explains name it, matched by code and by the text of detail:

{
  "code": "sudo_required",
  "detail": "confirm it is you: …",
  "help": {
    "id": "ad-connect-confirm",
    "title": "Connecting an ad account asks for my password or answers 403",
    "url": "https://intelligence.x3growth.io/docs/troubleshooting/ad-connect-confirm",
    "de": { "title": "Werbekonto verbinden fragt nach dem Passwort oder meldet 403", "url": "https://intelligence.x3growth.io/docs/troubleshooting/de/ad-connect-confirm" }
  }
}

The field is optional and additive; branch on code, show help.url (or help.de.url) as „So löst Du das“. MCP tools add the same article to their error text (kb_get with its id), and kb_search finds an article for any error text.

Codes

bad_request

400. The request is syntactically wrong in a way validation cannot describe – malformed JSON, an invalid cursor, contradictory parameters. Fix the request; retrying the same request will fail again.

validation_error

422. Parameters, query string or body do not match the schema of the endpoint. errors lists every problem with its path (body.scopes.0, query.preset). Unknown query parameters are validation errors too, so a typo never silently widens a report.

unauthorized

401. No credentials were sent, or they were sent in the wrong place. Send Authorization: Bearer <key>; the response carries WWW-Authenticate: Bearer. On /mcp the header also names the OAuth resource metadata, which is how Claude starts its sign-in.

invalid_token

401. The credential is malformed, has a wrong checksum, is unknown, expired or revoked. Create a new key; if the key was rolled, switch to the new value.

forbidden

403. The credential is valid but the action is not allowed for this kind of principal – for example a secret key calling a user-only endpoint (POST /v1/orgs), a derived key creating keys, or a narrowed key requesting org:admin.

insufficient_scope

403. The credential has access to the organization or project but lacks a scope. required lists the missing scopes. Create a key with these scopes (Scopes and roles) or, for OAuth, reconnect and approve the additional permission.

sudo_required

403. A dashboard session tried a sensitive action (ad connections, destinations, Search Console, deleting a project or its data) without a sign-in in the last 15 minutes. The answer carries stepUp.maxAge (900): sign in again at X3 Konto (prompt=login, max_age=900) and repeat the request. Secret keys are never asked for sudo; app and OAuth connections confirm such steps in the X3 web app.

not_found

404. The resource does not exist or you have no access to it – 3x does not reveal the existence of organizations and projects you cannot see. Also returned for unknown routes.

conflict

409. The request collides with the current state: a slug that is already taken, a resource that was changed concurrently, an Idempotency-Key reused with a different body.

last_owner

409. The change would leave the organization without an owner (demoting or removing the last owner). Make someone else owner first. Deleting the own account answers it with orgs (the slugs); when the person is the only member of those organizations the problem also carries deleteOwnOrgs: true, and the same request with "deleteOwnOrgs": true deletes them with the account.

gone

410. The resource existed but cannot be used any more – an accepted, revoked or expired invitation, a used magic link, an ad-platform connect link older than ten minutes.

lead_deleted

410. The lead was erased (GDPR deletion). Its id stays known so deep links can say so instead of showing "not found"; no data of the lead is returned. Ids that never existed answer not_found.

410. A client connection link was already used for the platform, was revoked or has expired. Ask the agency for a new link.

app_connect_invalid

400. POST /v1/app-connect/token: the one-time code of „Mit X3 verbinden" is unknown, was used already, has expired (10 minutes), belongs to another app or callback, or the PKCE verifier does not match. All cases answer the same; a failed exchange uses the code up. Start the connection in the app again (Shopware).

annotation_conflict

409. The annotation was changed by someone else since you loaded it (version is outdated). Reload it, re-apply your change and send the new version.

connector_missing

409. The action needs a connection that the project does not have yet – for example a Search Console report without a connected property. Connect it (dashboard → Einstellungen) and retry.

connector_expired

409. The connection exists but the provider no longer accepts it (expired or revoked OAuth access). Reconnect it; stored data is kept.

connector_permission_denied

403. The provider refused access to the selected resource (for example the Search Console property was removed from the account). Choose another property or restore the access.

share_locked

401. The share link is password-protected and the request carries no valid unlocked session (x-3x-share-session). Unlock it with POST /v1/shares/{token}/unlock first.

embed_not_allowed

403. The share link may not be shown here: embedding is off, the embedding page's origin is not in the share's allowed origins, or a signed embed token (st) is required and missing, invalid or expired.

destination_rejected

422. The delivery target refused the message – for example a Slack incoming webhook that was deleted or disabled. Update the destination (new webhook URL) and send a test.

experiment_conflict

409. Someone changed the experiment since you read it (the revision you sent is outdated). The response carries the current revision; reload, re-apply your change and send it again.

experiment_state

409. The action is not possible in the experiment's current status – for example editing the variants after the start (everything except name and notes is frozen by the pre-registration), starting an archived experiment or rolling out before a decision. status in the response names the current status.

experiment_not_ready

409. The experiment cannot start yet: the website does not call the flag key (no code-live telemetry), or not every variant was seen in a QA visit during the last 7 days, or the planner expects fewer than 10 conversions per variant. missing lists what is missing; project admins can override with a reason.

already_installed

409. POST /v1/projects/{project}/lead-setup/install-handoff while visits already arrive and no live hand-off link for the install point exists: the X3 code runs on the website, there is nothing to hand over. A live link for the install point is returned again (also while visits arrive) instead of this error.

demo_read_only

403. The request came from the public demo (a read-only session). Reading works; changes are not possible. Sign up for your own account to try writes.

impersonation_read_only

403. The request came from a support view: X3 support is looking at the account to help (the person sees every support view in their account). Reading works; changes, exports of personal data, keys, connections and billing are not possible in such a session. A support view the operator started „mit Schreibrechten“ may additionally do the safe setup steps only: allowed origins (tracking domains), the tracking configuration, project settings except the retention, the installation check, the stack detection and the setup progress. Each such change is in the organization's protocol as „X3-Support“.

origin_not_allowed

422. The website address is not an allowed origin (domain) of this project, so the installation check or the stack detection does not fetch it, and the tracking would refuse its visits with 403. The details name origin, host, apex (offered as „Alle Subdomains von … freigeben“, null on shared platforms) and refusal (why one click cannot allow it, e.g. a placeholder address). Fix: allow the domain with POST /v1/projects/{project}/origins ({ "add": [{ "host": "shop.example.com" }] }, "subdomains": true for every subdomain) or in Einstellungen › Einbau & Status › Erlaubte Herkünfte, then check again.

key_unknown

403 on POST /v1/e (the tracking). The publishable key of the batch is unknown, revoked, expired or bound to an app. Copy the current snippet from Einstellungen › Einbau & Status; a revoked key shows there as well.

project_inactive

403 on POST /v1/e. The project of the key is deleted or not available any more.

proxy_key_invalid

403 on POST /v1/e through your own proxy. The proxy key header is not valid for this project: set the current proxy key in the server environment of the proxy.

The tracking's refusal of a page whose origin is not allowed answers 403 origin_not_allowed (see above) with the same JSON body (code, detail); X3 also lists such domains under Erlaubte Herkünfte as „blockiert“ with „Freigeben“.

not_available_in_app

403. The request came with a token of the X3 App, and this endpoint is not part of what the app may do: a change that is only possible in the web app (settings, keys, members, billing, deleting), an export, a credential, a billing or admin page, or an endpoint that needs a dashboard session or a re-authentication (sudo). Open the same page in the X3 web app. See X3 App.

device_owned

409. The X3 App tried to register a push token that already receives pushes for another person whose sign-in on that device is still active. The app keeps working without pushes on this device until that sign-in ends (sign out there, or remove the device under Konto › Mitteilungen in the web app); presenting the same install id (a user switch in the same app install) takes the token over.

project_move_blocked

409. POST /v1/projects/{project}/move: something of the old organization is still connected to the project (ad logins or assigned ad accounts, conversion uploads over an ad login, CRM, Search Console, Facebook pages, Instant Forms of other projects reporting into it), its short name is taken in the target organization, or the target's plan has no room for another project. blockers lists each with what to do. The preview (POST …/move/preview) shows the same list before. See Move a project.

connection_scopes_missing

409. POST /v1/orgs/{org}/connection-uses: the purpose needs permissions the connection does not have (for example leads_retrieval of a Facebook page for Instant Form leads). missingScopes lists them, connectionId names the connection. Ask for them again on the same connection with POST /v1/orgs/{org}/connections/{id}/reauthorize, nothing has to be connected anew. See Verbindungen.

use_managed_in_product

409. POST or DELETE …/connection-uses: this use is set up in the product itself (the Facebook page of an Instant Forms project, a use whose product row cannot be stopped from the registry). manageUrl names the settings page. Ad costs, a CRM and Search Console of another project are added with POST …/connection-uses and stopped per project with DELETE. See Verbindungen.

connection_not_active

409. POST /v1/orgs/{org}/connection-uses: the connection is expired, failed or paused. Reconnect it first (manageUrl, or …/reauthorize).

confirmation_required

409. DELETE /v1/orgs/{org}/connections/{id} without confirm=true: disconnecting stops every use listed in affected. Repeat the request with confirm=true once the person agreed.

403. webhooks_update over MCP (or a key made through an AI connection) tried to switch on a webhook that waits for a person: a webhook set up or redirected through an AI connection stays off (awaitingConfirmation: true) until someone switches it on in the dashboard (Einstellungen → Webhooks → Freigeben und einschalten).

instant_forms_inactive

409. POST /v1/orgs/{org}/connection-uses for the Sales Engine's Instant Form leads: the Facebook page has no form switched on in Growth Intelligence, or a chosen form (settings.formIds) is off. Leads only arrive for active forms, so nothing is set up. activeForms counts the active ones, inactiveFormIds names the chosen forms that are off, manageUrl opens Growth Intelligence › Instant Forms. See Verbindungen.

reconnect_in_product

409. POST /v1/orgs/{org}/connections/{id}/reauthorize: this connection is not reconnected from X3 Konto (a CRM needs its region or domain, an active ad login has nothing to ask for again, an own mail server needs its password). manageUrl opens the product settings where it is reconnected. connections.list says so in advance with capabilities.reauthorize = false.

connection_unavailable

409. A sync run, a conversion upload or a lead poll asked for a connection the registry no longer has (it was disconnected in the meantime) or that cannot serve the purpose. Reconnect it in the product settings; the run is retried after that.

last_use_disconnects

409. DELETE /v1/orgs/{org}/connection-uses/{id} for the last project that uses a shared CRM or Search Console connection: stopping it would disconnect the account. Disconnect the connection instead (DELETE /v1/orgs/{org}/connections/{id}?confirm=true, X3 Konto › Verbindungen › Trennen), or keep the use. accountUrl (deprecated alias kontoUrl) opens the connection. See Verbindungen.

preset_conflict

409. The preset was changed since you loaded it: the version in your update is older than the stored one. Reload the preset (GET /v1/orgs/{org}/presets/{preset}) and apply your change again.

preset_archived

409. The preset is archived and cannot be applied. Restore it with POST /v1/orgs/{org}/presets/{preset}/unarchive first.

ack_required

403. The capture settings change sets a level with a high risk (for example session recording „until rejected“) and carries no acknowledgement. Send acks: [{key, value, text, confirmed: true}] for every key listed in required; a project admin confirms for the controller and the acknowledgement is stored in the audit log (behavior.capture.ack).

preset_locked

403. The health preset (or another sector preset) blocks this: session recording, mouse movement, live view of single visitors and form interactions only with consent, no lead linking, no AI summaries, no reconstruction of visits without consent, minimum count 10 (Art. 9 GDPR).

setup_session_locked

409. A secret key or Claude connection runs its X3 setup session on this project, and this call is one the setup leaves to the person: applying the lead setup itself (propose it instead, the person confirms in X3), ad accounts, sending or changing conversions, keys, a first-party proxy key, deleting goals, funnels, event schemas or the project. The lock holds only while the session runs (a call in the last 15 minutes) and only on its project; a person signed in to the dashboard is never locked.

chat_busy

409. The assistant is still answering in this chat. Wait until the answer is finished (the turn's stream ends with finish or error) or stop it (assistant.turns.stop), then send again. A turn that waits for an approval does not block: sending ends it.

page_excluded

422. A recording packet came from a page on the exclusion list (login, checkout, account and the project's own patterns). The SDK checks the rules before it records; the server checks again.

stage_unavailable

503. Playing a recording or a page snapshot needs the playback domain of the deployment (the stage, X3_STAGE_ORIGIN, e.g. replay.x3growth.io): a host of its own without cookies, because recorded pages are rebuilt there. It is not set up (or not safe, e.g. the dashboard or API host itself). Recordings are still stored; ask the operator to set up the stage domain.

plan_required

402. The feature is not part of the organization's plan (e.g. Search Console on Free, leads on Projekt Analytics, multi-touch attribution outside the Pro plans). The body names feature, the current plan, the cheapest upgradeTo plan and an upgradeUrl to the billing page. Existing data is never deleted – it is back right after the upgrade. MCP tools answer with the same explanation. See Plans and limits.

plan_limit

403 / 409 / 429. A limit of the plan is reached: projects, seats or ad accounts (403), an agency plan above its included projects (409 – repeat the request with confirmExtraProject: true to add an extra project at the price in extraProjectCents), the monthly MCP calls (429 over MCP), or the experiment quota of a project when an experiment starts or resumes (403, metric: "experimentsPerProject", counts: "total" on Free or "active" on Growth). The body names metric, limit, used and upgradeTo. See Plans and limits.

view_locked

402. The requested data belongs to days locked by the Free pageview lock: the organization is on Free and passed 1,000 pageviews in a calendar month, so the days from that day to the end of the month are not shown (the data is still stored). A range without any visible day, a single item of a locked day, a live view while today is locked and the lead export or SQL while any day is locked answer this code; a range that is only partly locked answers its latest visible part instead. The body names:

FieldMeaning
lockedRangesThe locked days that hit the request: [{month, from, to}] (YYYY-MM, YYYY-MM-DD, organization time zone)
unlocksOnFirst day new data is visible again without an upgrade (the 1st of the next month)
limit, usedIncluded pageviews per month and the pageviews of the current month
plan, upgradeToCurrent plan and the cheapest plan with more pageviews
upgradeUrlLink to the billing page; an upgrade unlocks every locked day at once
messageThe explanation for people, {de, en}

MCP tools answer with the same explanation. See Plans and limits.

billing_read_only

403. An invoice of the organization has been unpaid for more than 14 days: the account is read-only until it is paid (tracking keeps running within the Free quota). Update the payment method on the billing page; after 30 days the organization switches to Free.

email_unverified

403. The action needs a confirmed e-mail address (self-serve sign-ups): invitations, ad accounts, conversion uploads, secret keys and checkout. Open the link in the confirmation mail or request a new one (POST /v1/auth/verify-email/resend).

vat_id_required

409. A business in the EU wants to book a paid plan without a VAT ID (or with a VAT ID that was not confirmed). X3 invoices EU businesses under the reverse-charge mechanism and needs the VAT ID for it. Add it to the billing details (PUT /v1/orgs/{org}/billing/account, field vatId) and start the checkout again. The answer carries a localized message and billingUrl, the billing page with the form. See Plans and limits.

payment_failed

402. The payment provider declined the payment. Use another card or SEPA direct debit.

payload_too_large

413. The body exceeds the endpoint's limit: 16 KB for tracking batches, 4 KB for conversion beacons and 64 KB for MCP requests.

unsupported_media_type

415. Wrong content-type. JSON endpoints need application/json; the tracking endpoint accepts text/plain (to avoid CORS preflights).

identity_unavailable

503. X3 Konto, the central account, could not be reached to check a sign-in or to make a change on the person's behalf (phone, preferences, a new organization, a key of the setup). Nothing was changed. Repeat the request in a moment.

seat_limit

409. X3 Konto refused the change because the organization's plan has no free seat for the product. Free a seat or change the plan in X3 Konto › Organisationen.

member_role_off

409. The organization role member (belongs to the organization without Growth Intelligence access) is not switched on yet. Choose admin, analyst or viewer.

rate_limited

429. Too many requests. Wait for the number of seconds in Retry-After. JSON endpoints that apply a limit also send RateLimit and RateLimit-Policy headers. Limits: Rate limits.

not_configured

503. The deployment lacks something the endpoint needs – no database URL, no Composio API key for ad connections, no SMTP for e-mails. The operator has to set the environment variable.

db_unavailable

503. The database is unreachable or waking up (Neon cold start). Retry with backoff. 3x never answers 401 in this case, so OAuth clients such as Claude keep their connection.

upstream_error

502. An external service failed: Composio, an ad platform, or the site fetched by setup_verify_installation. detail names the service; provider error texts are sanitized.

not_implemented

501. The endpoint exists in the API contract but is not available on this deployment (for example a feature disabled by the operator).

internal

500. An unexpected error. Nothing about it is leaked in the response; the operator finds it in the logs by requestId. Retrying is safe for GET requests and for requests with an Idempotency-Key.