Overview
Two APIs are available:- Core API - Main API for managing Control Plane resources
- Audit API - API for querying and creating audit events
API Endpoints
| API | Endpoint URL | Fallback Swagger API Documentation |
|---|---|---|
| Core | https://api.cpln.io/ | https://console.cpln.io/openapi/core |
| Audit | https://audit.cpln.io/audit | https://console.cpln.io/openapi/audit |
Authentication
The Control Plane APIs use Bearer token authentication. All API requests must include an authorization header with a valid token.Obtaining Authorization Tokens
You can authenticate using one of the following methods:Service Account Key
Create a service account in your organization with the necessary permissions, then generate a service account key. This key can be used as an API token.User Access Token
If you’re using the Control Plane CLI, first log in by running cpln login. This opens a browser where you can authenticate using your identity provider (Google, Microsoft, etc.). After logging in, your CLI profile receives an access token that is used for all subsequent requests. To obtain this access token, run:<profile-name> with the name of your logged-in CLI profile. Use the returned token as your authorization token.
Using Authentication
Include your token in theAuthorization header of all API requests:
Using the Interactive API Playground
Each endpoint in this documentation includes a “Try it” button that opens an interactive API playground. You can use this to:- Test endpoints directly - Make live API calls without leaving the documentation
- See request/response examples - View formatted JSON responses
- Copy code samples - Get ready-to-use cURL, Python, or JavaScript examples
Example: Getting a GVC
To get a GVC (Global Virtual Cloud) using the interactive playground:- Navigate to the GVC section in the Core API
- Click on “Get a GVC by name”
- Click the green “Try it” button
- Enter your authorization token in the authentication field
- Fill in the required parameters:
org: Your organization name (e.g.,my-org)name: The name of your GVC (e.g.,my-gvc)
- Click “Send” to execute the request