Adobe Analytics · Arazzo Workflow

Adobe Analytics Create a Calculated Metric and Run a Report

Version 1.0.0

List a report suite's metrics, create a calculated metric, then run a report using it.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub AdobeAnalyticsBusiness IntelligenceCustomer IntelligenceDigital MarketingMarketingWeb AnalyticsArazzoWorkflows

Provider

adobe-analytics

Workflows

create-calculated-metric-and-run-report
Create a calculated metric and run a report that uses it.
Lists the metrics in the report suite, creates a calculated metric from the supplied formula definition, and runs a report whose metric container references the newly created calculated metric.
3 steps inputs: accessToken, apiKey, calculatedMetricDefinition, calculatedMetricDescription, calculatedMetricName, calculatedMetricType, dateRange, dimension, locale, rsid outputs: calculatedMetricId, rows
1
listMetrics
List the metrics in the report suite so the formula can reference real metric IDs.
2
createCalculatedMetric
Create a calculated metric from the supplied formula definition.
3
runReport
Run a report that reports on the newly created calculated metric.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Adobe Analytics Create a Calculated Metric and Run a Report
  summary: List a report suite's metrics, create a calculated metric, then run a report using it.
  description: >-
    Builds a derived metric and immediately puts it to work. The workflow lists
    the metrics available in a report suite so the caller can reference real
    metric IDs inside the calculated metric formula, creates the calculated
    metric, and then runs a date-ranged report that reports on the newly created
    calculated metric. Every step spells out its request inline, including the
    Adobe IMS bearer token and Developer Console API key headers.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-610.50
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-610.50
      capability_name: Analytics & BI Management
      spec: adobe-analytics-reports-api-openapi.yml
      confidence: 0.8
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: calculatedMetricsApi
  url: ../openapi/adobe-analytics-calculated-metrics-api-openapi.yml
  type: openapi
- name: metricsApi
  url: ../openapi/adobe-analytics-metrics-api-openapi.yml
  type: openapi
- name: reportsApi
  url: ../openapi/adobe-analytics-reports-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-calculated-metric-and-run-report
  summary: Create a calculated metric and run a report that uses it.
  description: >-
    Lists the metrics in the report suite, creates a calculated metric from the
    supplied formula definition, and runs a report whose metric container
    references the newly created calculated metric.
  inputs:
    type: object
    required:
    - accessToken
    - apiKey
    - rsid
    - calculatedMetricName
    - calculatedMetricDefinition
    - dateRange
    properties:
      accessToken:
        type: string
        description: Adobe IMS OAuth 2.0 access token (sent as a Bearer token).
      apiKey:
        type: string
        description: Adobe Developer Console API key (x-api-key header).
      rsid:
        type: string
        description: The report suite ID the calculated metric and report are based on.
      locale:
        type: string
        description: Locale for response labels (e.g. en_US).
        default: en_US
      calculatedMetricName:
        type: string
        description: Display name for the new calculated metric.
      calculatedMetricDescription:
        type: string
        description: Description of what the calculated metric measures.
        default: Created via Arazzo workflow.
      calculatedMetricDefinition:
        type: object
        description: The formula definition combining existing metrics.
      calculatedMetricType:
        type: string
        description: The metric output type.
        default: DECIMAL
        enum:
        - DECIMAL
        - TIME
        - PERCENT
        - CURRENCY
      dimension:
        type: string
        description: The primary dimension ID for the report (e.g. variables/page).
        default: variables/page
      dateRange:
        type: string
        description: ISO 8601 date range for the global date filter.
  steps:
  - stepId: listMetrics
    description: List the metrics in the report suite so the formula can reference real metric IDs.
    operationId: listMetrics
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: x-api-key
      in: header
      value: $inputs.apiKey
    - name: rsid
      in: query
      value: $inputs.rsid
    - name: locale
      in: query
      value: $inputs.locale
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstMetricId: $response.body#/0/id
  - stepId: createCalculatedMetric
    description: Create a calculated metric from the supplied formula definition.
    operationId: createCalculatedMetric
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: x-api-key
      in: header
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.calculatedMetricName
        description: $inputs.calculatedMetricDescription
        rsid: $inputs.rsid
        definition: $inputs.calculatedMetricDefinition
        type: $inputs.calculatedMetricType
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      calculatedMetricId: $response.body#/id
  - stepId: runReport
    description: Run a report that reports on the newly created calculated metric.
    operationId: runReport
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: x-api-key
      in: header
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        rsid: $inputs.rsid
        locale: $inputs.locale
        globalFilters:
        - type: dateRange
          dateRange: $inputs.dateRange
        metricContainer:
          metrics:
          - id: $steps.createCalculatedMetric.outputs.calculatedMetricId
            columnId: "0"
        dimension: $inputs.dimension
        settings:
          limit: 50
          page: 0
          nonesBehavior: exclude-nones
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      rows: $response.body#/rows
      totalPages: $response.body#/totalPages
  outputs:
    calculatedMetricId: $steps.createCalculatedMetric.outputs.calculatedMetricId
    rows: $steps.runReport.outputs.rows

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/adobe-analytics-create-calculated-metric-and-run-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.