Amberflo · Arazzo Workflow

Amberflo Discover Meter and Query Usage

Version 1.0.0

List meter definitions then query aggregated usage for a selected meter.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Usage-Based BillingMeteringFinOpsAI Cost ManagementBillingMonetizationArazzoWorkflows

Provider

amberflo

Workflows

discover-meter-and-query-usage
List meters then query usage for a chosen meter.
Retrieves all meter definitions and queries aggregated usage for the requested meter over the supplied window.
2 steps inputs: apiKey, endTimeInSeconds, meterApiName, startTimeInSeconds outputs: clientMeters, meters
1
listMeters
List all configured meter definitions in the account.
2
queryUsage
Query aggregated usage for the requested meter over the supplied window.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amberflo Discover Meter and Query Usage
  summary: List meter definitions then query aggregated usage for a selected meter.
  description: >-
    A reporting flow that discovers the configured meters and then reads usage
    against one of them. It lists all meter definitions, confirms the requested
    meter is present, and queries aggregated usage for it over a time window.
    Every step spells out its request inline so the flow can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: meterDefinitionsApi
  url: ../openapi/amberflo-meter-definitions-api-openapi.yml
  type: openapi
- name: usageQueriesApi
  url: ../openapi/amberflo-usage-queries-api-openapi.yml
  type: openapi
workflows:
- workflowId: discover-meter-and-query-usage
  summary: List meters then query usage for a chosen meter.
  description: >-
    Retrieves all meter definitions and queries aggregated usage for the
    requested meter over the supplied window.
  inputs:
    type: object
    required:
    - apiKey
    - meterApiName
    - startTimeInSeconds
    - endTimeInSeconds
    properties:
      apiKey:
        type: string
        description: Amberflo API key supplied in the X-API-KEY header.
      meterApiName:
        type: string
        description: The meter to query usage for.
      startTimeInSeconds:
        type: integer
        description: Usage query start time in Unix seconds.
      endTimeInSeconds:
        type: integer
        description: Usage query end time in Unix seconds.
  steps:
  - stepId: listMeters
    description: >-
      List all configured meter definitions in the account.
    operationId: listMeterDefinitions
    parameters:
    - name: X-API-KEY
      in: header
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      meters: $response.body
      firstMeterApiName: $response.body#/0/meterApiName
  - stepId: queryUsage
    description: >-
      Query aggregated usage for the requested meter over the supplied window.
    operationId: queryUsage
    parameters:
    - name: X-API-KEY
      in: header
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        meterApiName: $inputs.meterApiName
        startTimeInSeconds: $inputs.startTimeInSeconds
        endTimeInSeconds: $inputs.endTimeInSeconds
        aggregation: SUM
        timeGroupingInterval: DAY
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      clientMeters: $response.body#/clientMeters
  outputs:
    meters: $steps.listMeters.outputs.meters
    clientMeters: $steps.queryUsage.outputs.clientMeters

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/amberflo-discover-meter-and-query-usage-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?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.