Getting an API key
Every request to the CloudLogics API is authenticated with a console API key, sent as a bearer token. Keys are created in the console, not through the API.
Create a key
Section titled “Create a key”- Open the CloudLogics console and go to Developer.
- Create a new API key.
- Confirm the one-time code sent to your email address.
- Copy the key when it is shown. It is displayed once and cannot be retrieved again — store it somewhere safe before closing the dialog.
Use it
Section titled “Use it”Send the key in an Authorization header on every request:
export CL_KEY="clk_live_your_key_here"
curl https://console.cloudlogics.com/api/v1/security-group \ -H "Authorization: Bearer $CL_KEY"A request without the header is rejected:
{ "error": { "code": 401, "message": "Missing or invalid Authorization header" } }The API does not accept cookie or session authentication, so a browser session alone will not work — the header is always required.
Losing or rotating a key
Section titled “Losing or rotating a key”If a key is lost or you want to retire one, delete it in the console and create a new one. There is no way to recover the value of an existing key.
