Authorization request header.
Get an API key
1
Open the API Keys tab
Sign in to the MuleRouter Console
and open the API Keys tab.
2
Generate a new key
Click Generate new key. The console shows the full key string
exactly once — copy it to a secret store immediately.
3
(Optional) Restrict the key
Add a description so you remember what the key is for. Rotate or
revoke individual keys at any time from the same page.
Send authenticated requests
Include the key as a Bearer token in theAuthorization header:
GET URLs.
SDK setup
Most OpenAI-compatible SDKs accept abase_url override. Point it at
MuleRouter and they “just work”:
Best practices
- Never commit keys to source control. Use environment variables,
.envfiles (gitignored), or a secret manager. - Rotate aggressively. Generate a new key when a teammate leaves, when you suspect a leak, or on a fixed cadence.
- One key per workload. Per-service keys make leaks easy to scope and revoke without disrupting unrelated traffic.
- Server-side only. Treat the key like a database password — never ship it in a browser bundle or mobile app.
Errors
The full code list lives in Error codes.

