unauthorized
type: https://docs.d2b.dev/errors/unauthorized — Not authenticated. Typical status: 401.
The Authorization: Bearer <PAT> header is missing or malformed, the token was revoked or expired, or the CLI’s saved login lapsed (90 days).
What to do
Section titled “What to do”d2b loginagain (CLI), or re-issue the PAT from the console- Check
D2B_API_KEYis non-empty and starts withd2b_pat_ /api/controltakes Account API keys;/api/v1takes PATs — make sure you’re not crossing them
All error types: Reading errors.