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
- Servers: Bare metal servers
- Custom images: Your own OS images for bare metal servers
- Post-install scripts: Scripts that run on a server after its OS installs
- Firewall profiles: Firewall rules to apply to servers
- Hardening rules: OS hardening rules to apply to servers
- Local users: OS user accounts created on servers
- Flash VMs: Flash VMs
- Flash VM plans: Plans that Flash VMs run on
- Flash VM backups: Backups and restore points
- Port mappings: Public ports to ports on a VM
- VM metrics: CPU and memory use of your VMs
- Bulk VM actions: Start, stop, restart, edit or delete many VMs at once
- DNS: Your DNS domains and records
- DNS domains: Domains you host DNS for
- DNS records: Records in your domains, and their tags
- Networking: VPCs, subnets, IP addresses and transit
- VPCs: VPCs are Virtual Private Clouds, that connect your bare metal servers and Flash VMs in a region. Each VPC gets its own IPv6 range and you can rent/attach IPv4 subnets to them too, for using addresses on your infrastructure.
- Subnets: IPv4 subnets you lease and attach to VPCs
- IPv4 addresses: Your IPv4 addresses
- Transit: Internet traffic and its spend
- Regions: Regions you can deploy in
- Security: Keys and the audit log
- API keys: Keys for using this API
- SSH keys: SSH keys for bare metal servers and Flash VMs
- Audit log: Who did what in your account
- Monitoring: Usage metrics and latency
- Usage metrics: CPU, memory and network use
- Ping targets: Latency checks to hosts you choose
- Alerts: Alert rules
- Alert channels: Where alerts are sent
- Billing: Spend, invoices and payment
- Spend: What you have spent so far
- Invoices: Your invoices and paying them
- Payment cards: Your saved cards
- Top-up: Account credit top-ups
- Settings: Company and account settings
- Team: People in your account and their roles
- Tags: Tags you can put on resources
- User: The signed-in user
Support
For API support, contact ops@corelatency.com or open a support ticket.