For the complete documentation index, see llms.txt. This page is also available as Markdown.

Savings Estimate

API for estimating savings from uploaded billing files

List an organization's savings estimates

get

Returns completed and errored savings estimates for the organization, newest first. Queued/processing estimates are omitted since they have nothing to show yet.

Path parameters
org_idstring · uuidRequired
Query parameters
pageinteger · min: 1OptionalDefault: 1
page_sizeinteger · min: 1 · max: 100OptionalDefault: 20
Responses
200

OK

application/json
get/v1/org/{org_id}/savings-estimate
GET /v1/org/{org_id}/savings-estimate HTTP/1.1
Accept: */*
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "upload_id": "123e4567-e89b-12d3-a456-426614174000",
    "status": "queued",
    "created_at": "2026-01-01T00:00:00.000Z",
    "filename": "text",
    "provider": "aws",
    "period_start": null,
    "period_end": null,
    "currency": null,
    "extraction_status": "complete",
    "total_savings_estimate": {
      "estimate": 1,
      "lower_bound": null,
      "upper_bound": null
    }
  }
]

Estimate savings for an uploaded billing file

post

Parses supported billing formats synchronously (200), and queues LLM fallback otherwise (202). Poll queued estimates until status is complete or error. If the latest estimate for this upload has not failed, it is returned (200).

Path parameters
org_idstring · uuidRequired
Body
upload_idstring · uuidRequired
Responses
200

OK

application/json
idstring · uuidRead-onlyRequired
statusundefined · enumRead-onlyRequiredPossible values:
errorstring · nullableRead-onlyOptional
upload_idstring · uuidRead-onlyRequired
post/v1/org/{org_id}/savings-estimate
POST /v1/org/{org_id}/savings-estimate HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 52

{
  "upload_id": "123e4567-e89b-12d3-a456-426614174000"
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "queued",
  "error": null,
  "upload_id": "123e4567-e89b-12d3-a456-426614174000",
  "result": {
    "provider": "aws",
    "source_format": "text",
    "period_start": null,
    "period_end": null,
    "account_id": null,
    "currency": "text",
    "is_projected": true,
    "extraction_status": "complete",
    "line_items": [
      {
        "service": "text",
        "reservable_service": null,
        "service_code": null,
        "resource_type": null,
        "usage_quantity": {
          "estimate": 1,
          "lower_bound": null,
          "upper_bound": null
        },
        "usage_unit": null,
        "cost": {
          "estimate": 1,
          "lower_bound": null,
          "upper_bound": null
        },
        "region": null,
        "spend_type": "on_demand",
        "savings_estimate": {
          "estimate": 1,
          "lower_bound": null,
          "upper_bound": null
        }
      }
    ],
    "total_cost": {
      "estimate": 1,
      "lower_bound": null,
      "upper_bound": null
    },
    "total_savings_estimate": {
      "estimate": 1,
      "lower_bound": null,
      "upper_bound": null
    }
  }
}

Get a savings estimate's status and result

get

Returns the queued/processing/complete/error status for a savings estimate. Clients can poll this endpoint until status is complete or error.

Path parameters
org_idstring · uuidRequired
estimate_idstring · uuidRequired
Responses
200

OK

application/json
idstring · uuidRead-onlyRequired
statusundefined · enumRead-onlyRequiredPossible values:
errorstring · nullableRead-onlyOptional
upload_idstring · uuidRead-onlyRequired
get/v1/org/{org_id}/savings-estimate/{estimate_id}
GET /v1/org/{org_id}/savings-estimate/{estimate_id} HTTP/1.1
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "queued",
  "error": null,
  "upload_id": "123e4567-e89b-12d3-a456-426614174000",
  "result": {
    "provider": "aws",
    "source_format": "text",
    "period_start": null,
    "period_end": null,
    "account_id": null,
    "currency": "text",
    "is_projected": true,
    "extraction_status": "complete",
    "line_items": [
      {
        "service": "text",
        "reservable_service": null,
        "service_code": null,
        "resource_type": null,
        "usage_quantity": {
          "estimate": 1,
          "lower_bound": null,
          "upper_bound": null
        },
        "usage_unit": null,
        "cost": {
          "estimate": 1,
          "lower_bound": null,
          "upper_bound": null
        },
        "region": null,
        "spend_type": "on_demand",
        "savings_estimate": {
          "estimate": 1,
          "lower_bound": null,
          "upper_bound": null
        }
      }
    ],
    "total_cost": {
      "estimate": 1,
      "lower_bound": null,
      "upper_bound": null
    },
    "total_savings_estimate": {
      "estimate": 1,
      "lower_bound": null,
      "upper_bound": null
    }
  }
}

Last updated

Was this helpful?