API Keys
API keys authenticate requests to the redu.cloud API.
Treat them as secret credentials.
Create an API key
- Open the Console:
https://console.redu.cloud- Navigate to:
https://console.redu.cloud/category/user/api-keys- Click Generate API Key
- Copy the key immediately
API keys are only shown once after creation.
Use an API key
Include your API key in every request using the x-api-key header:
x-api-key: YOUR_API_KEYExample:
curl https://api.redu.cloud/v1/me \
-H "x-api-key: YOUR_API_KEY"For full examples in different languages, see Authentication.
Permissions
API keys inherit the permissions of the user who created them.
If a user loses access to a project, their API keys lose access as well.
Rotate a key
To rotate an API key safely:
- Generate a new key
- Update your applications to use the new key
- Verify requests succeed
- Revoke the old key
Do not revoke the old key before confirming the new one works.
Revoke an API key
You can revoke a key at any time from the Console.
Revoked keys immediately lose access.
Security best practices
- Do not commit API keys to Git repositories
- Do not expose API keys in frontend applications
- Rotate keys periodically
- Revoke keys that are no longer in use
Last updated on