Authentication

Authenticated Rorix API endpoints use API keys. Include your key in the Authorization header of each request.

Creating API Keys

  1. Sign in to the Rorix dashboard
  2. Go to Settings then API keys
  3. Enter a descriptive name (for example, "CI pipeline")
  4. Choose an expiration. Keys expire after 90 days by default; you can pick 30, 180 or 365 days, a custom date, or no expiration
  5. Select the scopes the key needs. The API endpoints in this reference require API read
  6. Click Create key
  7. Copy the key immediately. It starts with rxk_ and is shown only once

Only organization admins can create and delete API keys.

Using API Keys

Include your API key in the Authorization header as a Bearer token:

curl -X POST https://rorix.io/api/audit \
  -H "Authorization: Bearer rxk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{ "content": "...", "filename": "MyApp.csproj" }'

A missing, unknown, or expired key returns 401 Unauthorized. A valid key without the required scope returns 403.

Scopes

| Scope | Grants | | --- | --- | | API read | The authenticated endpoints in this API reference | | Registry restore | Restoring packages from the Rorix NuGet and npm registries |

Give each key only the scopes it needs. A key used by restore clients needs only Registry restore; a key used for scanning needs only API read.

Key Security

  • Keys are hashed in the database. Rorix stores a one-way hash of your API key, so the raw key cannot be recovered from storage.
  • Delete compromised keys immediately. If a key may have been exposed, delete it in the dashboard and create a new one.
  • Use expiration dates. Rotate CI/CD keys before they expire.
  • Use environment variables. Never hard-code API keys in source code. Use your CI/CD platform's secret storage.

Deleting Keys

Go to Settings then API keys, find the key, click Delete, and confirm by typing its name. Deleted keys stop working immediately: requests that use them receive 401 Unauthorized.