Authentication
The Rorix API uses API keys for authentication. All authenticated requests must include your key in the Authorization header.
Creating API Keys
- Sign in to the Rorix dashboard
- Navigate to Settings then API Keys
- Click Create API Key
- Enter a descriptive name (e.g., "CI Pipeline" or "Local Development")
- Optionally set an expiration date
- Click Create
- Copy the key immediately — it starts with
rxk_and will only be shown once
Using API Keys
Include your API key in the Authorization header as a Bearer token:
curl https://rorix.io/api/projects \
-H "Authorization: Bearer rxk_your_api_key_here"Key Security
- Keys are hashed in the database. Rorix stores a one-way hash of your API key. If the database is compromised, your raw key cannot be recovered.
- Revoke compromised keys immediately. If you suspect a key has been exposed, revoke it from the dashboard and create a new one.
- Set expiration dates. For CI/CD keys, consider setting an expiration and rotating keys periodically.
- Use environment variables. Never hard-code API keys in source code. Use secrets management in your CI/CD platform.
Revoking Keys
Via Dashboard
Go to Settings then API Keys, find the key, and click Revoke.
Via API
curl -X DELETE https://rorix.io/api/api-keys/{keyId} \
-H "Authorization: Bearer rxk_your_api_key_here"Revoked keys are immediately invalidated. Any requests using a revoked key will receive a 401 Unauthorized response.