Harness Cost Details API

Fetch cloud and AI cost data for cost analysis

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /ccm/api/costdetails/overview/iacm Get cloud costs for Terraform-managed resources · Returns cost overview for IaCM resources #
Ask an LLM
“How much do the resources my Terraform workspace manages actually cost?”
“Can I look up cost by cloud resource ID and Terraform resource type?”
Tell an agent
Get the cost overview for these IaCM resources: {resources}.
Show what Terraform-managed resources {resources} cost in account {account}.
POST /ccm/api/costdetails/overview Get total cost and trend for a perspective · Returns an overview of the cost #
Ask an LLM
“What is my total cloud spend and trend for a perspective this month?”
“Is cost going up or down compared with the previous period?”
Tell an agent
Get the cost overview for perspective {perspective} from {start} to {end}.
Show total cost and trend for perspective {perspective}.
POST /ccm/api/costdetails/clusterData Get Kubernetes cluster cost data as a table · Returns cluster data in a tabular format #
Ask an LLM
“Which Kubernetes workloads cost the most in my clusters?”
“Can I break cluster cost down by selected labels?”
Tell an agent
Show cluster cost data from {start} to {end} grouped by {group_by}.
Tabulate cluster costs for labels {labels} in account {account}.
POST /ccm/api/costdetails/tabularformat Get perspective cost details as a table · Returns cost details in a tabular format #
Ask an LLM
“Can I get a table of costs per service or account for a perspective?”
“Which cost entries top the list when sorted by spend?”
Tell an agent
Get a cost table for perspective {perspective} grouped by {group_by}.
List the top {limit} cost rows for perspective {perspective} from {start} to {end}.
POST /ccm/api/costdetails/timeseriesformat Get perspective costs as a time series · Returns cost details in a time series format #
Ask an LLM
“How has cost for a perspective changed day by day?”
“Can I chart perspective spend over time at a weekly or monthly resolution?”
Tell an agent
Get a cost time series for perspective {perspective} at {resolution} resolution.
Plot perspective {perspective} spend over time from {start} to {end}, grouped by {group_by}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/harness:harness-cost-details-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

harness-cost-details-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Cost Details API
  version: '1.0'
  description: The Harness Software Delivery Platform uses OpenAPI Specification v3.0.
  contact:
    name: API Support
    email: contact@harness.io
    url: https://harness.io/
  x-logo:
    url: https://mma.prnewswire.com/media/779232/Harnes_logo_horizontal.jpg?p=facebook
    altText: Harness
  termsOfService: https://harness.io/terms-of-use/
servers:
- url: https://app.harness.io
  description: Harness host URL
- url: https://{vanity}
  description: Vanity URL
  variables:
    vanity:
      default: app.harness.io
security:
- x-api-key: []
tags:


# --- truncated at 32 KB (91 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-cost-details-api-openapi.yml