Billing and FinOps API Code Examples
Billing and FinOps API code examples demonstrate how to use the Cribl API to retrieve Organization-level credit consumption and billing data that appears in the FinOps Center. Each example describes the steps required to complete a specific task, identifies the endpoints to use, and provides example requests and responses.
The API code examples complement our management plane API Reference and explain common usage scenarios for programmatic access to FinOps Center data.
About Code Examples
Code examples use Bearer token authentication. Read the API authentication documentation to learn how to configure authentication. The API Credential that you use to obtain the Bearer token must have the necessary Permissions for the operations in code examples: Billing Reader, Admin, or Owner. Billing API requests return data only for the Organization associated with the API Credential.
Replace the variables in code examples with the corresponding information for your Cribl deployment.
Billing and FinOps API operations are available only on Cribl.Cloud, so this page does not include examples for on-prem deployments.
Code examples do not include all available parameters. For a complete list of parameters for specific endpoints, refer to the documentation in the API Reference.
The following Billing and FinOps API code examples are available: