Amberflo · Arazzo Workflow

Amberflo Ingest and Query Usage

Version 1.0.0

Ingest a meter event for a customer then query aggregated usage for that meter.

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

Provider

amberflo

Workflows

ingest-and-query-usage
Ingest a usage event and then read back aggregated usage.
Ingests a meter event for the supplied meter and customer, then runs a usage query over the requested time window aggregated and grouped by customer.
2 steps inputs: apiKey, customerId, endTimeInSeconds, meterApiName, meterTimeInMillis, meterValue, startTimeInSeconds, uniqueId outputs: clientMeters, ingestResult
1
ingestEvent
Ingest a single meter event for the customer against the meter.
2
queryUsage
Query aggregated usage for the meter over the supplied window, summed and grouped by customer.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amberflo Ingest and Query Usage
  summary: Ingest a meter event for a customer then query aggregated usage for that meter.
  description: >-
    Verifies the end-to-end metering pipeline by ingesting a usage event for a
    customer and then querying aggregated usage for the same meter over a time
    window, grouped by customer. 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: eventIngestionApi
  url: ../openapi/amberflo-event-ingestion-api-openapi.yml
  type: openapi
- name: usageQueriesApi
  url: ../openapi/amberflo-usage-queries-api-openapi.yml
  type: openapi
workflows:
- workflowId: ingest-and-query-usage
  summary: Ingest a usage event and then read back aggregated usage.
  description: >-
    Ingests a meter event for the supplied meter and customer, then runs a usage
    query over the requested time window aggregated and grouped by customer.
  inputs:
    type: object
    required:
    - apiKey
    - meterApiName
    - customerId
    - meterValue
    - meterTimeInMillis
    - startTimeInSeconds
    - endTimeInSeconds
    properties:
      apiKey:
        type: string
        description: Amberflo API key supplied in the X-API-KEY header.
      meterApiName:
        type: string
        description: The meter to ingest to and query.
      customerId:
        type: string
        description: Customer the event is attributed to and grouped by.
      meterValue:
        type: number
        description: The usage amount for the ingested event.
      meterTimeInMillis:
        type: integer
        description: Event timestamp in Unix milliseconds.
      uniqueId:
        type: string
        description: Optional idempotency identifier for the event.
      startTimeInSeconds:
        type: integer
        description: Usage query start time in Unix seconds.
      endTimeInSeconds:
        type: integer
        description: Usage query end time in Unix seconds.
  steps:
  - stepId: ingestEvent
    description: >-
      Ingest a single meter event for the customer against the meter.
    operationId: ingestMeterEvents
    parameters:
    - name: X-API-KEY
      in: header
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        meterApiName: $inputs.meterApiName
        customerId: $inputs.customerId
        meterValue: $inputs.meterValue
        meterTimeInMillis: $inputs.meterTimeInMillis
        uniqueId: $inputs.uniqueId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      ingestResult: $response.body
  - stepId: queryUsage
    description: >-
      Query aggregated usage for the meter over the supplied window, summed and
      grouped by customer.
    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
        groupBy:
        - customerId
        customerFilter:
        - $inputs.customerId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      clientMeters: $response.body#/clientMeters
  outputs:
    ingestResult: $steps.ingestEvent.outputs.ingestResult
    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-ingest-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.