Think of it like a password for server-to-server access.
What is an API key
- It proves the request is coming from your Agni workspace.
- It controls access to protected API endpoints.
- It should only be used in trusted backend environments.
Where to get your API key
- Sign in to
https://app.ravan.ai. - Open Settings.
- Go to Security & Access > API Keys.
- Click + New Key.
- Copy it immediately and store it securely.

You can only view a newly generated key once.
How Agni uses your API key
Send your key in theX-Api-Key header on every API request.
401 Unauthorized.
Developer implementation guide
Use your API key only on the server side, and inject it from environment variables.Security best practices
- Rotate keys regularly.
- Use separate keys for staging and production.
- Revoke compromised keys immediately.
- Do not share keys in chat, tickets, or screenshots.
- Audit logs when you see unexpected API behavior.
Troubleshooting
If requests fail with401:
- Confirm the header name is exactly
X-Api-Key. - Check there are no extra spaces in the key value.
- Ensure you are using an active key from the correct workspace.
- Regenerate the key and update your server environment.

