Authentication
Authenticate requests to the redu.cloud API using an API key.
Generate an API key
Log in to the Console:
https://console.redu.cloudOpen API Keys:
https://console.redu.cloud/category/user/api-keysGenerate a key and copy it immediately.
API keys are only shown once after creation.
Base URL
https://api.redu.cloud/v1Authentication header
Include your API key in the x-api-key header:
x-api-key: YOUR_API_KEYExample: get current user
cURL
curl https://api.redu.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.
Last updated on