API
Authentication

Authentication

All cloud API endpoints require an API key.


Generate an API Key

Login to the Console:

https://console.redu.cloud

Open API Keys:

https://console.redu.cloud/category/user/api-keys

Generate a key and copy it immediately.

API keys are not shown again after creation.


Base URL

https://api.redu.cloud/cloud/v1

Authentication Header

All authenticated requests must include:

x-api-key: YOUR_API_KEY

Example: Get Current User

curl https://api.redu.cloud/cloud/v1/me \
  -H "x-api-key: YOUR_API_KEY"

Successful Response

{
  "id": "usr_01HZX8YF2",
  "username": "joe",
  "email": "joe@example.com",
  "roles": ["user"]
}

Common Errors

401 Unauthorized

Missing or invalid API key.

{
  "error": {
    "code": "unauthorized",
    "message": "Invalid API key"
  }
}

403 Forbidden

The API key is valid but does not have permission to access the resource.