Vantage · Arazzo Workflow

Vantage Fetch Costs for an Existing Cost Report

Version 1.0.0

List existing Cost Reports and pull cost data for the first one, branching when none exist.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub BudgetsCloud PricingCost ManagementCostsFinOpsArazzoWorkflows

Provider

vantage

Workflows

fetch-costs-for-existing-report
List Cost Reports and fetch costs for the first available one.
Lists accessible Cost Reports, branches on whether any exist, and retrieves the cost data for the first report over the requested date range.
2 steps inputs: apiToken, endDate, startDate outputs: costs, firstReportToken
1
listReports
List the Cost Reports the token can access and branch on whether any were returned.
2
getCosts
Retrieve the cost line items for the first Cost Report over the date range.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Vantage Fetch Costs for an Existing Cost Report
  summary: List existing Cost Reports and pull cost data for the first one, branching when none exist.
  description: >-
    A Vantage read-only analysis pattern for working with reports that already
    exist. The workflow lists the Cost Reports the token can access and branches:
    when at least one report is present it retrieves that report's cost line
    items for a date range, and when none are present it ends without attempting
    a costs call. Every step spells out its request inline — including the Bearer
    token — so the flow can be read and executed without opening the underlying
    OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: costReportsApi
  url: ../openapi/vantage-cost-reports-api-openapi.yml
  type: openapi
- name: costsApi
  url: ../openapi/vantage-costs-api-openapi.yml
  type: openapi
workflows:
- workflowId: fetch-costs-for-existing-report
  summary: List Cost Reports and fetch costs for the first available one.
  description: >-
    Lists accessible Cost Reports, branches on whether any exist, and retrieves
    the cost data for the first report over the requested date range.
  inputs:
    type: object
    required:
    - apiToken
    properties:
      apiToken:
        type: string
        description: Vantage API token used as the Bearer credential.
      startDate:
        type: string
        description: Start date for the cost data (YYYY-MM-DD).
      endDate:
        type: string
        description: End date for the cost data (YYYY-MM-DD).
  steps:
  - stepId: listReports
    description: >-
      List the Cost Reports the token can access and branch on whether any were
      returned.
    operationId: getCostReports
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstReportToken: $response.body#/cost_reports/0/token
    onSuccess:
    - name: reportsExist
      type: goto
      stepId: getCosts
      criteria:
      - context: $response.body
        condition: $.cost_reports.length > 0
        type: jsonpath
    - name: noReports
      type: end
      criteria:
      - context: $response.body
        condition: $.cost_reports.length == 0
        type: jsonpath
  - stepId: getCosts
    description: Retrieve the cost line items for the first Cost Report over the date range.
    operationId: getCosts
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiToken
    - name: cost_report_token
      in: query
      value: $steps.listReports.outputs.firstReportToken
    - name: start_date
      in: query
      value: $inputs.startDate
    - name: end_date
      in: query
      value: $inputs.endDate
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      costs: $response.body#/costs
  outputs:
    firstReportToken: $steps.listReports.outputs.firstReportToken
    costs: $steps.getCosts.outputs.costs

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/vantage-fetch-costs-for-existing-report-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.