Harness Cloud Cost Management Cost Categories API

Allocate and chargeback cloud costs by business units.

Operations 2

GET /ccm/api/business-mapping List cost categories #
POST /ccm/api/business-mapping Create a cost category #

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-cloud-cost-cost-categories-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-cloud-cost-cost-categories-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Cloud Cost Management Anomalies Cost Categories API
  description: The Harness Cloud Cost Management (CCM) API provides programmatic access to cloud cost data, perspectives, budgets, anomaly detection, and AI-driven recommendations across AWS, Azure, GCP, and Kubernetes environments. CCM enables FinOps practices by exposing granular cost details across namespaces, nodes, pods, accounts, and services.
  version: '1.0'
  contact:
    name: Harness Support
    url: https://developer.harness.io/docs/cloud-cost-management
    email: support@harness.io
  license:
    name: Harness Terms of Service
    url: https://harness.io/legal/terms
servers:
- url: https://app.harness.io
  description: Harness production endpoint
security:
- ApiKeyAuth: []
tags:
- name: Cost Categories
  description: Allocate and chargeback cloud costs by business units.
paths:
  /ccm/api/business-mapping:
    get:
      tags:
      - Cost Categories
      summary: List cost categories
      description: Returns cost categories (business mappings) used for chargeback and showback.
      operationId: listCostCategories
      parameters:
      - $ref: '#/components/parameters/AccountIdentifier'
      responses:
        '200':
          description: A list of cost categories.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CostCategory'
    post:
      tags:
      - Cost Categories
      summary: Create a cost category
      operationId: createCostCategory
      parameters:
      - $ref: '#/components/parameters/AccountIdentifier'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CostCategory'
      responses:
        '200':
          description: The created cost category.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CostCategory'
components:
  schemas:
    CostCategory:
      type: object
      properties:
        uuid:
          type: string
        name:
          type: string
        accountId:
          type: string
        costTargets:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              rules:
                type: array
                items:
                  type: object
                  additionalProperties: true
        sharedCosts:
          type: array
          items:
            type: object
            additionalProperties: true
        unallocatedCost:
          type: object
          additionalProperties: true
  parameters:
    AccountIdentifier:
      name: accountIdentifier
      in: query
      required: true
      schema:
        type: string
      description: The Harness account identifier.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Harness Personal Access Token or Service Account API key.