OpenMetadata Query Cost Record Manager API

APIs to query cost records from usage workflow.

Operations 3

POST /v1/queryCostRecord Create query cost record #
GET /v1/queryCostRecord/{id} Get query cost record by id #
GET /v1/queryCostRecord/service/{serviceName} Get Query Cost By Service #

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/openmetadata-query-cost-record-manager-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

openmetadata-query-cost-record-manager-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenMetadata APIs Agent Executions Query Cost Record Manager API
  description: Common types and API definition for OpenMetadata
  contact:
    name: OpenMetadata
    url: https://open-metadata.org
    email: openmetadata-dev@googlegroups.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: '1.13'
servers:
- url: /api
  description: Current Host
- url: http://localhost:8585/api
  description: Endpoint URL
security:
- BearerAuth: []
tags:
- name: Query Cost Record Manager
  description: APIs to query cost records from usage workflow.
paths:
  /v1/queryCostRecord:
    post:
      tags:
      - Query Cost Record Manager
      summary: Create query cost record
      description: Create query cost record
      operationId: createQueryCostRecord
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateQueryCostRecord'
      responses:
        '200':
          description: Create query cost record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateQueryCostRecord'
  /v1/queryCostRecord/{id}:
    get:
      tags:
      - Query Cost Record Manager
      summary: Get query cost record by id
      description: Get query cost record by id
      operationId: getQueryCostRecord
      parameters:
      - name: id
        in: path
        description: Get query cost record by id
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The query cost record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryCostRecord'
  /v1/queryCostRecord/service/{serviceName}:
    get:
      tags:
      - Query Cost Record Manager
      summary: Get Query Cost By Service
      description: Get Query Cost By Service
      operationId: getQueryCostByService
      parameters:
      - name: serviceName
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Create query cost record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateQueryCostRecord'
components:
  schemas:
    EntityReference:
      required:
      - id
      - type
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
        name:
          type: string
        fullyQualifiedName:
          type: string
        description:
          type: string
        displayName:
          type: string
        deleted:
          type: boolean
        inherited:
          type: boolean
        href:
          type: string
          format: uri
    CreateQueryCostRecord:
      required:
      - cost
      - count
      - queryReference
      - timestamp
      type: object
      properties:
        timestamp:
          type: integer
          format: int64
        jsonSchema:
          type: string
        queryReference:
          $ref: '#/components/schemas/EntityReference'
        cost:
          type: number
          format: double
        count:
          type: number
          format: double
        totalDuration:
          type: number
          format: double
    QueryCostRecord:
      required:
      - cost
      - count
      - queryReference
      - timestamp
      type: object
      properties:
        id:
          type: string
          format: uuid
        timestamp:
          type: integer
          format: int64
        jsonSchema:
          type: string
        queryReference:
          $ref: '#/components/schemas/EntityReference'
        cost:
          type: number
          format: double
        updatedBy:
          $ref: '#/components/schemas/EntityReference'
        impersonatedBy:
          type: string
        updatedAt:
          type: integer
          format: int64
        count:
          type: number
          format: double
        totalDuration:
          type: number
          format: double
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT