API reference

Everything you can do in the console, you can do through the CoreLatency API. These pages are generated from the API itself, so they always match the current release.

All paths are relative to:

https://console.corelatency.com/api

The full OpenAPI spec is public at https://console.corelatency.com/api/openapi.json. Point your API client, code generator or LLM at it.

Authentication

Every request needs a Bearer token. Create an API key under Security > SSH and API keys > API keys, then use the client credentials grant to get a token:

# 1. Get an access token
TOKEN=$(curl -s -X POST \
  https://auth.corelatency.com/realms/cl-customer-prod/protocol/openid-connect/token \
  -d "grant_type=client_credentials" \
  -d "client_id=YOUR_CLIENT_ID" \
  -d "client_secret=YOUR_CLIENT_SECRET" \
  | jq -r .access_token)

# 2. Use the token
curl https://console.corelatency.com/api/user/whoami \
  -H "Authorization: Bearer $TOKEN"

Access tokens expire after 5 minutes, so request a new one when the current one expires. The client_id and client_secret are shown when you create the API key.

Groups

Support

For API support, contact ops@corelatency.com or open a support ticket.