Cloud Billing#

Cloud committed-capacity billing and credits

List cloud billing commitments#

GET/organizations/{org_id}/cloud/commitments

List committed-capacity charges and refunds for cloud instances.

Parameters#

NameTypeLocationRequiredDescription
org_idstringpathYesOrganization ID
instance_idstringqueryNoOptional cloud instance filter
offsetintegerqueryNoNumber of items to skip
limitintegerqueryNoMaximum number of items to return

Code Examples#

curl -X GET "https://platform.antfly.io/api/v1/organizations/550e8400-e29b-41d4-a716-446655440000/cloud/commitments?instance_id=550e8400-e29b-41d4-a716-446655440000&offset=0&limit=20" \
-H "Authorization: Bearer YOUR_TOKEN"

Responses#

{
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "organization_id": "550e8400-e29b-41d4-a716-446655440000",
      "cloud_instance_id": "550e8400-e29b-41d4-a716-446655440000",
      "reason": "cloud_cycle_commitment",
      "billing_cycle_start": "2025-10-02T15:30:00Z",
      "billing_cycle_end": "2025-10-02T15:30:00Z",
      "window_start": "2025-10-02T15:30:00Z",
      "window_end": "2025-10-02T15:30:00Z",
      "credit_units": 0,
      "credit_units_delta": 0,
      "credits_consumed": 0,
      "credits_refunded": 0,
      "overage_credit_units": 0,
      "created_at": "2025-10-02T15:30:00Z",
      "instance_name": "string",
      "instance_slug": "string"
    }
  ],
  "meta": {
    "offset": 0,
    "limit": 1,
    "total": 0
  }
}