deCloud
MA CHAIN · 20260131
deCloud Docs

401 · Invalid key

The request lacks valid credentials. Gateway codes include unauthorized, invalid_api_key and key_disabled. Do not diagnose from a translated client message alone.

On this page

What this means

The request lacks valid credentials. Gateway codes include unauthorized, invalid_api_key and key_disabled. Do not diagnose from a translated client message alone.

401
{"error":{"message":"missing bearer token","type":"auth_error","code":"unauthorized"}}

Check and resolve

Check the complete dcld-sk- key and its enabled state. Use Authorization: Bearer <key> without literal quotes around the key. env_key takes the environment variable name, not its secret value.

Check the final host and path. GET /v1/models is a read-only key check, but may return quota or account-state errors rather than 200. Multiple services share the same error JSON shape; it does not prove the source.

401 · Invalid key · deCloud Docs