Get Active Revision
Retrieve the active revision for a specific app.
Authorizations
Service Account Token authentication. To authenticate API requests:
-
Create a Service Account Token:
- Go to the Cerebrium Dashboard and open the API Keys page
- Click Create Service Account, name it (e.g., "GitHub Actions CI/CD"), choose an expiry date, and click Create
- Copy the token generated for the desired service account
-
Use the Token: Include the service account token in the Authorization header of API requests:
Authorization: Bearer <your-service-account-token> -
Best Practices:
- Create separate service accounts for different environments (dev, staging, prod)
- Store tokens securely as secrets in consuming applications or workflows
- Set appropriate expiry dates and rotate tokens regularly
- Never commit tokens to source control
For CI/CD integration examples, see the CI/CD documentation.
Response
Details of the app's currently active revision. An empty object is returned when the app has no active deployment.
Name of the most recently created revision.
Name of the most recent revision that is ready to serve traffic.
Maximum number of replicas, as a string value.
Minimum number of replicas, as a string value.
Maximum concurrent requests per replica, as a string value.
Number of extra replicas kept available beyond current demand, as a string value.
Metric used for autoscaling.
Target value for the scaling metric, as a string value.
Target utilization percentage for scaling, as a string value.
Traffic split across revisions. Each item includes the revision name and the percentage of traffic it receives.