Never expose your API key publicly. Anyone with access to your key can use
your quota, rack up charges, or leak sensitive data.
Get Your API Key
1
Log In
Go to the Routeway dashboard and sign in to your
account.
2
Navigate to API Keys
Once you’re logged in, open the API Keys tab from the sidebar.
3
Create a New Key
Click Create API Key, give it a name (e.g.
local-dev
, production
), and
click Confirm.4
Copy and Store the Key
Copy your new API key and store it securely — preferably in a
.env
file or a
secret manager like AWS Secrets Manager or HashiCorp Vault.Set Your API Key
You must make your API key available to your application. We recommend using environment variables to avoid hardcoding the key into your source code.- Linux / macOS
- Windows
Authenticate in Code
- Python
- Node.js
- cURL
API Key Format & Security
Routeway API keys usually begin with
clsk-
and are 32+ characters long.- Keep your keys secret.
- Never push them to GitHub (add
.env
to your.gitignore
). - Rotate keys regularly and revoke any you no longer use.
Common Errors
- 403 - Forbidden
Routeway_API_KEY
is correctly set and passed to the client.Best Practices
Secure Storage
Store API keys in
.env
files and use a secrets manager in production. Never commit them to version control.Key Management
Regularly rotate API keys and limit their scopes to the minimum required permissions.
Monitoring
Keep an eye on your API usage.
Client-Side Security
Never expose API keys in frontend code. Always make API calls from a backend service.