API & developers
Troubleshoot API authentication errors
Diagnose 401, 403, and account-scoped access failures before retrying a request.
Start with the HTTP status and response body. Authentication, account API access, resource visibility, and request validation fail for different reasons and need different fixes.
Common causes
401 Unauthorized
Confirm the X-Api-Token header is present, has no extra quotes or spaces, and contains the current token. If the token was rotated, replace the old value in every integration. Do not keep retrying an invalid token.
403 Forbidden
The token identifies an account, but API access is not enabled for it. Ask an account administrator to confirm the workspace and contact support to enable API access. Rotating the token will not fix a 403.
404 Not Found for a known ID
Confirm the resource belongs to the token's account and that the account can use that resource. VIA can return Not Found for records outside the current account rather than exposing their existence.
422 Unprocessable Content
Authentication succeeded, but one or more submitted values are invalid or missing. Read the JSON error body, correct the request fields against the endpoint reference, and submit again.
A request worked before token rotation
Rotation invalidates the previous token immediately. Update the secret in the failing service, restart or redeploy it if it caches environment values, and test with a read-only request.
The request reaches the wrong VIA workspace
Tokens are scoped to an account and partner host. Copy the token from the intended account's API settings and use the production API host shown in the documentation.
Tips
Related guides
Product changes affecting this guide
November 14, 2026
Safer API access and restricted folders
API tokens now work only with API requests, and restricted list names stay private from teammates without access.