RedRaven
API Keys
Create, use, and rotate RedRaven organization API keys.
RedRaven API keys are scoped to an organization. Public RedRaven API requests must include both the API key and the organization ID so RedRaven can validate the key against the right organization.
curl -sS \
-H "X-API-Key: $REDRAVEN_API_KEY" \
-H "X-Organization-Id: $REDRAVEN_ORGANIZATION_ID" \
"$REDRAVEN_BASE_URL/api/v1/tests/$TEST_ID/results"Create a Key
- Open the RedRaven app.
- Go to Organization Settings.
- Open the Organization tab.
- Select API Keys.
- Click Add API Key, give it a name, and copy the value immediately.
Required Headers
| Header | Description |
|---|---|
X-API-Key | Your RedRaven organization API key. |
X-Organization-Id | The organization UUID that owns the key and test data. |
Use the API host as REDRAVEN_BASE_URL:
export REDRAVEN_BASE_URL="https://api.redraven.fireraven.ai"The public API routes live under /api/v1.
Rotate a Key
Create a replacement key, deploy it to your SDK clients or server-side integrations, then delete the old key after traffic has moved.
Delete a Key
Deleting a key cannot be undone. Delete keys that are no longer needed, keys owned by retired systems, and keys that may have been exposed.
Best Practices
- Use one key per service, integration, or deployment environment.
- Store keys in server-side secrets, not frontend bundles.
- Keep
REDRAVEN_ORGANIZATION_IDwith the same secret group as the key. - Rotate keys after team or infrastructure ownership changes.
- Audit active keys before production launches.