Skip to Content
APIAPI Keys

API Keys

API keys authenticate requests to the redu.cloud API.

Treat them as secret credentials.


Create an API key

  1. Open the Console:
https://console.redu.cloud
  1. Navigate to:
https://console.redu.cloud/category/user/api-keys
  1. Click Generate API Key
  2. 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_KEY

Example:

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:

  1. Generate a new key
  2. Update your applications to use the new key
  3. Verify requests succeed
  4. 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