Zando

All errors

authentication_required

Sign-in required

Codeauthentication_required
HTTP status401
Responsiblecaller: The caller (the agent or the person behind it)
Retryableno (the same request will get the same answer)
Where it appearsAs an HTTP response with this status, before any tool runs.
ChargedNothing. No error uses quota or charges money.

What it means

The request reached Zando without any sign-in or access key, so Zando does not know who is calling. It is refused before any call exists.

What an agent should do

  1. Do not retry the same way: the request must carry credentials.
  2. With an access key, check that the environment variable holding it is set and passed in the Authorization header.
  3. With sign-in, follow the client's sign-in flow; the WWW-Authenticate header points to it.

The error's next_actions come first: they are written for this exact error (a call to send instead, something to tell the user, this page). Tell the user the error's detail: its first sentence is written to be read as is.

What a person should do

Set up the key or sign-in as described in the install guide of your client, then restart the client. A common cause is an empty environment variable.

Example

The error object is the same on every channel; only the order of next_actions follows the channel. Ids, times and values below are examples.

As an HTTP response (application/problem+json)

HTTP 401
Content-Type: application/problem+json
Cache-Control: no-store, no-transform
Zando-Origin: zando
Zando-Contract-Version: 1.6
WWW-Authenticate: Bearer resource_metadata="https://mcp.zando.ai/.well-known/oauth-protected-resource/mcp", scope="agent"

{
  "type": "https://zando.ai/docs/errors/authentication_required",
  "code": "authentication_required",
  "title": "Sign-in required",
  "status": 401,
  "detail": "Zando needs this assistant to sign in before it can be used.",
  "origin": "zando",
  "responsible": "caller",
  "retryable": false,
  "retry_after_s": null,
  "param": null,
  "allowed": null,
  "call_id": null,
  "chain_id": null,
  "charged_micros": 0,
  "currency": "usd",
  "next_actions": [
    {
      "type": "docs",
      "url": "https://zando.ai/docs/errors/authentication_required"
    }
  ]
}