Cost Explorer (Beta) | API & MCP Reference | Archera

Total cloud spend exploration

Explore total cloud spend

get/beta/v1/org/{org_id}/cost-explorer

Returns total cloud spend over a date range, optionally grouped by service, account, or region. Includes all cost types (not just reservable). Data comes from cloud provider Cost Explorer APIs.

Path parameters

Query parameters

Default: null

Responses

200 OK

{
  "period_start": "text",
  "period_end": "text",
  "total_cost": 1,
  "groups": [
    {
      "name": "text",
      "total_cost": 1,
      "percentage": 1,
      "data": [
        {
          "date": "text",
          "cost": 1
        }
      ]
    }
  ]
}

400 Bad request

401 Unauthorized

403 Forbidden

404 Not found

405 Method not allowed

409 Conflict

422 Unprocessable Content

500 Internal server error

default Default error response


Get available cost-explorer filter fields and values

get/beta/v1/org/{org_id}/cost-explorer/filters

Returns the valid filter fields and their possible values for building cost-explorer filter parameters. Field names in the response can be used directly as the 'field' value in filter expressions.

Path parameters

Query parameters

Responses

200 OK

{
  "service": [
    "text"
  ],
  "account_id": [
    "text"
  ],
  "region": [
    "text"
  ],
  "instance_family": [
    "text"
  ],
  "operating_system": [
    "text"
  ],
  "tenancy": [
    "text"
  ]
}