Savings Estimate
API for estimating savings from uploaded billing files
Returns completed and errored savings estimates for the organization, newest first. Queued/processing estimates are omitted since they have nothing to show yet.
120OK
Bad request
Unauthorized
Forbidden
Not found
Method not allowed
Conflict
Unprocessable Content
Internal server error
Default error response
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
}
}
]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).
OK
Accepted
Bad request
Unauthorized
Forbidden
Not found
Method not allowed
Conflict
Unprocessable Content
Internal server error
Default error response
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
}
}
}Returns the queued/processing/complete/error status for a savings estimate. Clients can poll this endpoint until status is complete or error.
OK
Bad request
Unauthorized
Forbidden
Not found
Method not allowed
Conflict
Internal server error
Default error response
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?

