Skip to article

Developer security and troubleshooting

Diagnose authentication, scope, redirect and request errors without exposing credentials.

Use this guide to diagnose API errors without exposing credentials. Keep secrets, tokens, authorization codes and PKCE verifiers out of source control, shared collections and logs. Suppress authorization callback URL logging and validate callback state before using a code.

401 versus 403

ResultCheck
401 with an API keySend the complete public-ID.secret in X-QX-Key; check expiry, revocation, application/method state and owner membership
401 with an integration tokenCheck expiry, issuer/audience, client/application state and consent revocation; do not send a refresh token
401 on account, administrator or internal routesDeveloper credentials do not authenticate these routes
403 on BusinessesCheck application approval, saved scope, issued token scope, current user permissions and subscription read access
409 saving settings, scopes or external identitiesReload current data and reapply the intended change with its new revision
429Wait for Retry-After if supplied; otherwise use bounded backoff and the operation's limit policy
503 during OAuthKeep the safe error reference and contact support; do not disable TLS checks or expose server configuration

The Businesses boundary can return invalid_credentials or insufficient_access. Other authentication failures may have an empty body. Branch on HTTP status and the actual response shape rather than assuming every error has the same JSON fields.

API Contract Standard V1 lists error families, status contracts and retry guidance. Do not retry an unchanged 400, 401, 403 or 409 request repeatedly.

Permission changes and revocation

Access depends on application approval, credential scope, any delegated consent, current user permissions and the workspace plan. Tokens retain the scope they were issued with.

Removing Businesses.View from application approval produces 403 for otherwise valid credentials. Restoring it can restore only their original scope. Revoking a key, client or consent invalidates affected existing credentials or tokens and produces 401.

For a revocation check, repeat the same original request in a controlled environment without acquiring a replacement token.

Workspace isolation

The authenticated credential determines the workspace. A workspace parameter or header cannot choose another tenant. Application management requires authorized human workspace access; your own authorization management belongs to your account.

Use separately authorized credentials when testing another workspace. Never borrow another person's credential to bypass a denial.

OAuth redirect and review errors

Match redirect_uri to the registered scheme, host or IP, path and query. Native public HTTP loopback allows its port exception only. Web callbacks require exact HTTPS, and native HTTPS loopback is rejected.

Use PKCE S256 and retain the original verifier and state privately. A wrong verifier, wrong client, reused code or expired request cannot be redeemed. Restart an unavailable consent request from your application. Signing in alone does not grant consent.

Activity and support information

Use application Activity for available security events and API request history. Check the date range and coverage notice. A missing use observation does not prove that no request occurred.

When contacting support, include the method, safe route, status, time and correlation/request IDs. Exclude tokens, private keys, secrets, callback URLs and customer response contents.

Return to Developer API or authorization management for the next step.

Versioned writes and platform restrictions

Missing If-Match on a versioned update returns 428; a stale or weak tag returns 412. Read the current GUID resource and review the change before an explicit update. Never replace the expected revision automatically after a conflict.

For keyed creates, reuse the same Idempotency-Key and equivalent body only within its seven-day retention window. A mismatch returns idempotency_conflict; an already-bound external identity returns external_reference_already_bound. Resolve the existing mapping instead of inventing another key or merging by name/email/phone. Source retirement or access removal can deny a retained retry even when the earlier operation committed.

Suspension blocks keys, client exchange, existing machine/delegated tokens and pending authorization continuations. Workspace enablement cannot override it. Recovery requires fresh tokens; Emergency Revoke All requires legitimate new credentials and fresh consent. Do not use another identity to bypass a platform restriction. Preserve safe request references for the authorized administrator.

Webhook transport outcomes are separate from request/security logs. A timeout is Unknown, not a confirmed remote failure; consult receiver deduplication before explicit replay. Global disablement and app suspension/approval changes fence queued delivery generations. Emergency revoke-all also clears webhook signing keys; Recover never restores them. See delivery signing and recovery.

Copy this link

Clipboard access is unavailable. Select and copy the link below.