Public API
Learn how to programmatically interact with PerfectScale, enabling automation, data retrieval, and integration with your existing workflows
Authentication
{ "client_id": "your_client_id", "client_secret": "your_client_secret" }Authorization: Bearer your_access_token
Authentication Endpoint
This endpoint allows clients to authenticate using their client credentials.
The client identifier issued to the client during the registration process.
The client secret issued to the client during the registration process.
Authentication successful
Bad request, client credentials are missing or incorrect.
Unauthorized, client authentication failed.
Internal server error
Clusters Endpoint
OK
OK
The period for which carbon emission is calculated
OK
OK
Workloads Endpoint
The unique identifier for the cluster
A list of workloads
Cluster not found
Internal server error
How to get cluster_uid

Get cluster UID 
Cluster UID copied
Automation Audit Log Endpoint
The start of the time range in ISO 8601 format with UTC timezone (e.g., "2025-09-17T00:00:00Z"). If omitted, defaults to 00:00:00 UTC of the day that is 30 days ago from today.
Constraints:
- Must be in UTC timezone (ends with 'Z' or has '+00:00' offset)
- Cannot be in the future
- Cannot be before 00:00:00 UTC of 30 days ago from today
- Must be before 'to' date when both are provided
- Must be different from 'to' date
Example: If today is 2025-10-17, the earliest allowed value is "2025-09-17T00:00:00Z"
The end of the time range in ISO 8601 format with UTC timezone (e.g., "2025-10-17T23:59:59Z"). If omitted, defaults to the current time in UTC.
Constraints:
- Must be in UTC timezone (ends with 'Z' or has '+00:00' offset)
- Cannot be in the future
- Must be after 'from' date when both are provided
- Must be different from 'from' date
The maximum number of items to return. Defaults to 1000. Must be between 1 and 5000.
1000An opaque token from the 'next' field in the response's pagination object, used to fetch the next page.
An opaque token from the 'previous' field in the response's pagination object, used to fetch the previous page.
Filter by cluster UIDs. Accepts multiple cluster UIDs to filter the audit logs.
Filter by Kubernetes namespaces. Accepts multiple namespaces to filter the audit logs.
OK
OK
Deleting an API Token

Deleting a cluster
OK
No content
NotFound
No content
How to get cluster UID

How to list all cluster UIDs
Last updated
Was this helpful?