Skip to content
All docs

Docs · Product guides

API errors and recovery

Source: docs/api-errors.md

Inspect the HTTP status before treating a response as data. Query and most native JSON doors return an error code. Configuration errors additionally return details with code, status and an opaque requestId. Include that request reference when contacting your installation operator; exclude credentials, cookies, telemetry contents and sensitive query literals.

OTLP HTTP errors use a protocol Status object with code and message. Protobuf requests receive protobuf Status with an X-Porthole-Error header. MCP errors use a JSON-RPC error with the refusal code in message and retain the HTTP status. Do not assume every endpoint uses the configuration error shape.

Status or codeMeaningNext action
Status or code401 invalid_credentialMeaningMissing, malformed, expired, revoked or no longer live under its custodian.Next actionCheck the Authorization header; ask the owner or admin to inspect the credential in Settings. Do not paste the secret into a report.
Status or code401 unauthenticatedMeaningNo active native session.Next actionSign in again for a browser-only operation.
Status or code403 credential_scope_forbidden, scope_forbiddenMeaningAction, signal, service, environment or team is not authorized under current grants.Next actionCompare the request with credential metadata and the custodian's live scope. Use an appropriately scoped credential; a cookie cannot widen it.
Status or code403 native_session_requiredMeaningThe door requires a native browser session and refuses delegated credentials.Next actionPerform the operation in the native app; remove Authorization when using a native-session API client.
Status or code403 definition_change_forbiddenMeaningThe current role cannot change definitions.Next actionAsk an owner, admin or scoped maintainer to review the change.
Status or code403 step_up_requiredMeaningA credential operation needs fresh identity verification.Next actionVerify identity in the native app, then retry within five minutes.
Status or code403 invalid_originMeaningRequest origin or browser intent does not match the installation.Next actionUse the installation's configured origin and its native app. Native mutation clients must send that origin in the Origin header.
Status or code404 configuration_not_found, query_not_foundMeaningThe requested item is absent, or a definition is not visible in current scope.Next actionCheck the ID and current grants; do not infer existence from the response.
Status or code400 query validation codeMeaningInvalid fields, limits, bounds, cursor or unsupported text syntax.Next actionInspect field and hint when present. Use the documented query subset and original continuation cursor.
Status or code400 query_credentials_forbiddenMeaningA URL contains a credential-like parameter.Next actionRemove it; send the credential only in Authorization.
Status or code409 authority_changedMeaningCurrent role, custody or scope changed while the request ran.Next actionRecheck current authority and review the request before issuing it again.
Status or code409 idempotency_conflictMeaningAn idempotency key was reused with different input.Next actionReplay the original exact request, or use a fresh key for a reviewed new operation.
Status or code412 revision_conflictMeaningA definition changed since it was read.Next actionFetch its current revision, review differences and submit against the new revision with a new key.
Status or code428 revision_requiredMeaningA monitor or repair item mutation omitted If-Match.Next actionRead the item and send its exact quoted ETag.
Status or code413MeaningWire body, decompressed body, record count or normalized batch exceeds a limit.Next actionSplit the source export into smaller valid envelopes. Each split needs its own batch identity.
Status or code415MeaningUnsupported protocol, content type or compression.Next actionUse the documented OTLP media type and encoding; HTTP does not terminate gRPC.
Status or code429 credential_quota_exceededMeaningA required per-credential quota cannot be reserved.Next actionHonor Retry-After in seconds. Reduce volume or ask the owner to review the quota.
Status or code429 intake backpressureMeaningIntake cannot accept this work now.Next actionKeep the source envelope and honor Retry-After.
Status or code503MeaningStorage, intake, configuration or query service is unavailable.Next actionPreserve the original request and report the code to the operator. For intake retry identical bytes and scope, since a lost acknowledgement may follow a durable write.

OTLP 409 can mean an explicit batch identity was reused with different bytes or scope headers. Preserve the original bytes and compression for a retry; use a distinct identity for a distinct envelope. Do not alter an already acknowledged envelope under its original identity.

Authorization refusals do not become permissions by retrying. A read key cannot write telemetry, an ingest key cannot query, and MCP has no mutation tool. Proposal or execution class names do not authorize a production action through the query or configuration doors. A plan_approval_required refusal means the credential check cannot execute that plan; it is not an invitation to bypass approval through another transport.

A successful OTLP acknowledgement proves durable acceptance. Empty query results may precede processing, or reflect a time filter, retained snapshot, erasure or scope. Inspect /app/ingest as an owner or admin and issue a fresh query after processing; keep pending and rejected work distinct from service health.

Continue with OTLP intake, query reference or programmatic access.