Skip to content

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.

  1. Open the CloudLogics console and go to Developer.
  2. Create a new API key.
  3. Confirm the one-time code sent to your email address.
  4. Copy the key when it is shown. It is displayed once and cannot be retrieved again — store it somewhere safe before closing the dialog.

Send the key in an Authorization header on every request:

Terminal window
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.

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.