Amplitude · Arazzo Workflow

Amplitude Variant Evaluation

Version 1.0.0

Download flag configurations for local evaluation, then remotely evaluate variant assignments for a user.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub A/B TestingAnalyticsExperimentationFeature FlagsProduct AnalyticsUser BehaviorArazzoWorkflows

Provider

amplitude

Workflows

evaluate-user-variants
Fetch flag configurations and remotely evaluate variant assignments for a user.
Downloads the flag configurations for local evaluation, then remotely evaluates the active experiments and flags for a single user, returning their variant assignments.
2 steps inputs: deploymentKey, deviceId, userId, userProperties outputs: flagConfigurations, variants
1
getFlagConfigs
Download all flag configurations for local evaluation including targeting rules, variants, and segment definitions.
2
evaluateUser
Remotely evaluate all active experiments and feature flags for the supplied user, returning the variant assignments. Amplitude tracks an assignment event for each evaluation.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amplitude Variant Evaluation
  summary: Download flag configurations for local evaluation, then remotely evaluate variant assignments for a user.
  description: >-
    Bootstraps and exercises the Amplitude Experiment Evaluation API. The
    workflow first downloads the full flag configuration set used for local
    evaluation and edge bootstrapping, then performs a remote evaluation for a
    specific user to retrieve their variant assignments across all active
    experiments and flags. Both steps authenticate with a deployment key passed
    as an Api-Key authorization header. 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: evaluationApi
  url: ../openapi/amplitude-evaluation-api-openapi.yml
  type: openapi
- name: flagsApi
  url: ../openapi/amplitude-flags-api-openapi.yml
  type: openapi
workflows:
- workflowId: evaluate-user-variants
  summary: Fetch flag configurations and remotely evaluate variant assignments for a user.
  description: >-
    Downloads the flag configurations for local evaluation, then remotely
    evaluates the active experiments and flags for a single user, returning
    their variant assignments.
  inputs:
    type: object
    required:
    - deploymentKey
    properties:
      deploymentKey:
        type: string
        description: The deployment key used as the Authorization value (without the Api-Key prefix).
      userId:
        type: string
        description: The user ID to evaluate variants for.
      deviceId:
        type: string
        description: The device ID to evaluate variants for.
      userProperties:
        type: object
        description: User properties used for targeting rule evaluation.
  steps:
  - stepId: getFlagConfigs
    description: >-
      Download all flag configurations for local evaluation including targeting
      rules, variants, and segment definitions.
    operationId: getFlags
    parameters:
    - name: Authorization
      in: header
      value: "Api-Key $inputs.deploymentKey"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      flagConfigurations: $response.body
  - stepId: evaluateUser
    description: >-
      Remotely evaluate all active experiments and feature flags for the
      supplied user, returning the variant assignments. Amplitude tracks an
      assignment event for each evaluation.
    operationId: evaluateVariants
    parameters:
    - name: Authorization
      in: header
      value: "Api-Key $inputs.deploymentKey"
    requestBody:
      contentType: application/json
      payload:
        user_id: $inputs.userId
        device_id: $inputs.deviceId
        user_properties: $inputs.userProperties
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      variants: $response.body
  outputs:
    flagConfigurations: $steps.getFlagConfigs.outputs.flagConfigurations
    variants: $steps.evaluateUser.outputs.variants

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/amplitude-variant-evaluation-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.