Sonny Labs Docs
Error codes

auth.unauthenticated

The request reached an authenticated endpoint without a credential the server could verify.

auth.unauthenticated is returned at HTTP 401.

When this fires

No Authorization header was sent, the header was malformed, or the bearer token / API key in the header could not be parsed before signature checks ran. The dashboard's BFF also emits this code when a session cookie is absent or expired.

What to do

If you are using an API key, confirm the Authorization: Bearer sk_live_… header is present and the key has not been revoked. If you are using a browser session, sign in again — the session cookie likely expired or was cleared.

See also

  • SDK reference — the Python and TypeScript SDKs raise typed exceptions for codes in this namespace.
  • Error code index — every code the runtime can return.

On this page