Skip to content
Last updated

Arazzo basics: Structure and syntax

An Arazzo file uses YAML or JSON to describe API workflows on top of your existing OpenAPI descriptions. This guide covers the top-level sections of an Arazzo document and walks through a two-step workflow example.

The big picture

An Arazzo file describes sequences of API calls, their dependencies, and their expected outcomes in a format that both people and tools can read. It has these top-level sections:

  • arazzo: The version of the spec you're using (e.g., "1.0.1").
  • info: Metadata like the title and version of your workflow.
  • sourceDescriptions: Links to OpenAPI or Arazzo files your workflows rely on.
  • workflows: The sequences of API calls you want to describe.
  • components: Optional reusable bits you can reference elsewhere.

The anatomy of an Arazzo file

Here's what each section does, with a simple example to tie it together.

  1. arazzo (Required) Declares the Arazzo Specification version at the top of the file. The latest version is 1.1.0, released in May 2026; 1.0.1 is a patch over the 1.0.0 release from 2024. The examples in this guide use 1.0.1, which every Arazzo tool supports, so check your tools before you use 1.1 features:
arazzo: "1.0.1"
  1. info (Required) Metadata for the document. It requires a title and version, and you can add a description or summary:
info:
  title: "Simple Workflow"
  version: "1.0.0"
  description: "A basic workflow to buy a ticket and confirm it's valid."
  1. sourceDescriptions (Required) Links to the API descriptions your workflows use. Each entry specifies a name, a url, and a type (openapi or arazzo, plus asyncapi in Arazzo 1.1):
sourceDescriptions:
  - name: "warpAPI"
    url: "./warp/openapi.yaml"
    type: openapi
  1. workflows (Required) The workflows section is an array of workflow objects, each defining a sequence of API calls. Each workflow object uses these fields:
  • workflowId: A unique identifier.
  • summary: A human-friendly overview.
  • description: A detailed explanation of the workflow.
  • steps: The actual sequence of operations.
  • dependsOn: Which workflow(s) it relies on (optional).
  • inputs: Input parameters used by the workflow (optional).

Inside steps, each step has:

  • stepId: A unique name for the step.
  • operationId: Links to an OpenAPI operation (from your sourceDescriptions).
  • parameters: Inputs for the call (static or dynamic).
  • outputs: What data it produces (optional).

Steps run in sequence by default, with each step using data from previous steps through runtime expressions.

  1. components (Optional) Reusable objects, such as parameters or steps, that you can reference across workflows, similar to OpenAPI's components section. The example below omits components.

A simple example

This example defines a basic workflow for a time-travel API that sets an anchor in time. Assume you have an OpenAPI file with the setAnchor operation.

arazzo: 1.0.1
info:
  title: Warp API
  version: 1.0.0
sourceDescriptions:
  - name: api-reference
    type: openapi
    url: openapi.yaml
workflows:
  - workflowId: missionLostInvention
    summary: Lost invention
    description: |-
      Travel back to the year 1889 and retrieve the blueprint for Nikola Tesla's lost invention before it's destroyed in a mysterious fire.
    inputs:
      type: object
      properties:
        token:
          type: string
          description: JWT Bearer token
          format: password
    parameters:
      - name: Authorization
        in: header
        value: "Bearer {$inputs.token}"
    steps:
      - stepId: setAnchorToCurrentTime
        operationId: api-reference.setAnchor
        description: Set an anchor to the current time.
        outputs:
          anchor_id: $response.body#/id
      - stepId: jumpTo1889
        operationId: api-reference.timeTravel
        description: "Travel to 1889 using the created timeline."
        requestBody:
          payload:
            destination: $steps.setAnchorToCurrentTime.outputs.anchor_id
# to be continued -- see a full walkthrough of this example in the next article

What's happening here?

  1. Top Level: We declare Arazzo 1.0.1 and give our workflow a title and version.
  2. Source: We link to Warp's OpenAPI file.
  3. Workflow: We define one workflow, missionLostInvention.
    • Step 1: setAnchorToCurrentTime calls setAnchor to set an anchor point in time.
    • Step 2: jumpTo1889 calls timeTravel to travel to 1889 using the created timeline.

The $ syntax is a runtime expression: a placeholder that reads data dynamically when the workflow runs.

How it ties to OpenAPI

Arazzo builds on your OpenAPI description rather than duplicating it. The operationId in each step (setAnchor and timeTravel) matches an operationId in the linked api-reference source.