Plutus Unit Metrics API

The unit-metrics API from Plutus — 3 operation(s) for unit-metrics.

GitHub OpenAPI

Operations 5

GET /v1/accounts/{accountId}/unit-metrics Get accounts by account id unit metrics #
POST /v1/accounts/{accountId}/unit-metrics Create accounts by account id unit metrics #
PUT /v1/accounts/{accountId}/unit-metrics/{id} Replace accounts by account id unit metrics by id #
DELETE /v1/accounts/{accountId}/unit-metrics/{id} Delete accounts by account id unit metrics by id #
GET /v1/accounts/{accountId}/unit-metrics/{id}/series Get accounts by account id unit metrics by id series #

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/plutus-cloud-com:plutus-cloud-com-unit-metrics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

plutus-cloud-com-unit-metrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Plutus Cloud Com Unit Metrics API
  version: 1.0.0
  description: 'Operations tagged unit-metrics across 2 of this provider''s published API definitions: console_openapi.json, plutus-cloud-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://console.plutus-cloud.com
security:
- bearerAuth: []
tags:
- name: unit-metrics
paths:
  /v1/accounts/{accountId}/unit-metrics:
    get:
      tags:
      - unit-metrics
      parameters:
      - schema:
          type: string
        in: path
        name: accountId
        required: true
      responses:
        '200':
          description: Default Response
      summary: Get accounts by account id unit metrics
      x-summary-source: derived
      operationId: getV1AccountsByAccountIdUnitMetrics
      x-operation-id-source: derived
    post:
      tags:
      - unit-metrics
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - name
              - numerator_scope
              - denominator_metric
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 200
                numerator_scope:
                  type: string
                  enum:
                  - account
                  - cost_source
                  - tag
                numerator_ref:
                  type:
                  - string
                  - 'null'
                  maxLength: 200
                numerator_tag_key:
                  type:
                  - string
                  - 'null'
                  maxLength: 200
                denominator_metric:
                  type: string
                  minLength: 1
                  maxLength: 200
                denominator_source_id:
                  type:
                  - string
                  - 'null'
                  maxLength: 100
                denominator_scale:
                  type: integer
                  enum:
                  - 1
                  - 1000
                  - 1000000
                denominator_mode:
                  type: string
                  enum:
                  - total
                  - per_customer
                denominator_dimension_key:
                  type:
                  - string
                  - 'null'
                  maxLength: 64
                target_unit_cost:
                  type:
                  - number
                  - 'null'
                  minimum: 0
                anomaly_enabled:
                  type: boolean
                revenue_source_ids:
                  type:
                  - array
                  - 'null'
                  maxItems: 2
                  uniqueItems: true
                  items:
                    type: string
                    enum:
                    - stripe-revenue
                    - netsuite-revenue
      parameters:
      - schema:
          type: string
        in: path
        name: accountId
        required: true
      responses:
        '200':
          description: Default Response
      summary: Create accounts by account id unit metrics
      x-summary-source: derived
      operationId: postV1AccountsByAccountIdUnitMetrics
      x-operation-id-source: derived
    servers:
    - url: https://console.plutus-cloud.com
  /v1/accounts/{accountId}/unit-metrics/{id}:
    put:
      tags:
      - unit-metrics
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - name
              - numerator_scope
              - denominator_metric
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 200
                numerator_scope:
                  type: string
                  enum:
                  - account
                  - cost_source
                  - tag
                numerator_ref:
                  type:
                  - string
                  - 'null'
                  maxLength: 200
                numerator_tag_key:
                  type:
                  - string
                  - 'null'
                  maxLength: 200
                denominator_metric:
                  type: string
                  minLength: 1
                  maxLength: 200
                denominator_source_id:
                  type:
                  - string
                  - 'null'
                  maxLength: 100
                denominator_scale:
                  type: integer
                  enum:
                  - 1
                  - 1000
                  - 1000000
                denominator_mode:
                  type: string
                  enum:
                  - total
                  - per_customer
                denominator_dimension_key:
                  type:
                  - string
                  - 'null'
                  maxLength: 64
                target_unit_cost:
                  type:
                  - number
                  - 'null'
                  minimum: 0
                anomaly_enabled:
                  type: boolean
                revenue_source_ids:
                  type:
                  - array
                  - 'null'
                  maxItems: 2
                  uniqueItems: true
                  items:
                    type: string
                    enum:
                    - stripe-revenue
                    - netsuite-revenue
      parameters:
      - schema:
          type: string
        in: path
        name: accountId
        required: true
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
      summary: Replace accounts by account id unit metrics by id
      x-summary-source: derived
      operationId: putV1AccountsByAccountIdUnitMetricsById
      x-operation-id-source: derived
    delete:
      tags:
      - unit-metrics
      parameters:
      - schema:
          type: string
        in: path
        name: accountId
        required: true
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
      summary: Delete accounts by account id unit metrics by id
      x-summary-source: derived
      operationId: deleteV1AccountsByAccountIdUnitMetricsById
      x-operation-id-source: derived
    servers:
    - url: https://console.plutus-cloud.com
  /v1/accounts/{accountId}/unit-metrics/{id}/series:
    get:
      tags:
      - unit-metrics
      parameters:
      - schema:
          type: string
          maxLength: 30
        in: query
        name: start_date
        required: false
      - schema:
          type: string
          maxLength: 30
        in: query
        name: end_date
        required: false
      - schema:
          type: string
          enum:
          - hour
          - day
          - week
          - month
          - quarter
        in: query
        name: group_by
        required: false
      - schema:
          type: string
          enum:
          - billed
          - amortized
        in: query
        name: cost_metric
        required: false
      - schema:
          type: string
        in: path
        name: accountId
        required: true
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
      summary: Get accounts by account id unit metrics by id series
      x-summary-source: derived
      operationId: getV1AccountsByAccountIdUnitMetricsByIdSeries
      x-operation-id-source: derived
    servers:
    - url: https://console.plutus-cloud.com
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
x-refined-from:
- console_openapi.json
- plutus-cloud-com-openapi.json