bnrouter

Guides

Fix 401 Unauthorized on bnrouter

Checklist when the gateway rejects the API key.

Updated: 2026-10-27 · Verification: docs_checked (vendor docs cross-check; UI not E2E lab-verified)

Answer

401 means the Authorization Bearer token is missing, malformed, revoked, or not a bnrouter user API key. Fix the header before debugging models or Base URL.

Details

Send Authorization: Bearer <key> to https://console.bnrouter.com/v1/... endpoints. Do not send panel session cookies as gateway auth. Rotate keys in the merchant console if leaked.

Checklist

  • Header is exactly Authorization: Bearer <token> with one space.
  • Key was copied fully (no truncated prefix/suffix).
  • Using a user API key from the merchant keys page, not an admin token.

Sources

Related guides & tools