Docs / Authentication

One key. Every model.

Every request to the RedRouter API is authenticated with a Bearer key.

Using your key

Send the key in the Authorization header of every request:

Header
Authorization: Bearer rr_live_...

Keys start with rr_live_. Keep them in environment variables or a secrets manager — never in client-side code or source control.

Key lifecycle

  • Create up to 10 active keys per account from the dashboard.
  • The full key is shown exactly once at creation. We store only a SHA-256 hash, so a leaked database never exposes usable keys.
  • Revoke a key at any time; revocation takes effect immediately.
  • Each key's last-used timestamp is visible on the dashboard.

Errors

401 — missing or invalid key
{
  "error": {
    "message": "Missing or invalid API key. Pass it as 'Authorization: Bearer rr_live_...'.",
    "type": "authentication_error",
    "code": 401
  }
}