Every Arazzo file uses the same top-level sections.
Spec
The arazzo field at the top of the file declares the Arazzo Specification version: this example uses 1.0.1, and version 1.1.0 was released in May 2026.
Info
Similar to OpenAPI, Arazzo uses info to describe the API.
Source Descriptions
The sourceDescriptions section lists the API descriptions your workflows reference. It is a list of objects, each containing a name, a url (path to the OpenAPI file), and a type. In Arazzo 1.0.1 the type is openapi or arazzo, and Arazzo 1.1 adds asyncapi.
Workflows
The workflows section defines the sequences of API calls. It is a list of objects, each containing a workflowId, an optional summary and description, and a list of steps. The next section covers workflows in detail.
This specific workflow is based on the "Lost Invention Mission".
Steps
The steps section lists the API calls in a workflow. Each step contains a stepId, an optional description, and the operation to call. A later section covers steps in detail.
An Arazzo description can contain multiple workflows. This example contains only a single workflow (with multiple steps).
Workflow: Lost Invention
The missionLostInvention workflow sets a unique workflowId, a short summary, and a description of the mission.
Workflow: Lost Invention - Inputs
The inputs section defines the values a caller passes into the workflow. It is a JSON Schema object describing each input. This specific API requires a token input. We'll pass the token into the Arazzo workflow runner using an input parameter (or environment variable).
Workflow: Lost Invention - Parameters
The parameters section defines parameters shared across the workflow's requests. It is a list of objects, each containing a name, an in property, and a value property. Here, the value prefixes Bearer and a space to the token input and sends it in the Authorization header.
A workflow can contain multiple steps. Each step contains a stepId, an optional description, and a reference to an operation in the API (an operationId or operationPath) or to another workflow (workflowId).
Steps
The stepId is required and used to uniquely identify the step. It's a good practice to give each step a meaningful description.
Operation ID
The operationId identifies which API operation the step calls. A step can reference an operation by operationId or operationPath. Here, the operationId references the setAnchor operation in the api-reference API. Prefixing operationId with the source description name (here, api-reference) tells apart operations that share an ID or path across different APIs.
Outputs
The outputs section extracts values from a step's response for later steps to use. It does not describe the full API response.
Here, the anchor_id output passes the ID of the anchor to the next step. Its value, $response.body#/id, reads the id field from the response body.
outputs is a map where each key is the output name and each value is an Arazzo runtime expression.
Runtime expression following an ABNF syntax
expression = ( "$url" / "$method" / "$statusCode" / "$request." source / "$response." source / "$inputs." name / "$outputs." name / "$steps." name / "$workflows." name / "$sourceDescriptions." name / "$components." name / "$components.parameters." parameter-name)
parameter-name = name ; Reuses 'name' rule for parameter names
source = ( header-reference / query-reference / path-reference / body-reference )
header-reference = "header." token
query-reference = "query." name
path-reference = "path." name
body-reference = "body" ["#" json-pointer ]
json-pointer = *( "/" reference-token )
reference-token = *( unescaped / escaped )
unescaped = %x00-2E / %x30-7D / %x7F-10FFFF
; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'
escaped = "~" ( "0" / "1" )
; representing '~' and '/', respectively
name = *( CHAR )
token = 1*tchar
tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA
Request Body
The requestBody section sets the payload sent with a step's request. You can supply a payload object to pass data to the API. In this case, we're using the requestBody to pass the timeline_id and proposed_changes to the API. You can "hardcode" the values or use the outputs from previous steps.
Using outputs from previous steps
Here, the returnToPresent step passes the anchor_id output captured in setAnchorToCurrentTime.
You can define optional successCriteria on each step.
Success Criteria
The successCriteria section defines the checks that must pass for a step to succeed. It is a list of objects, each containing a condition and a context. The condition is a boolean expression that describes the success criteria. The context sets the runtime expression that the condition evaluates against.
Respect runs Arazzo workflows as tests against your API.
It checks that the API is working as expected by validating the API responses against the success criteria. Even if you don't define success criteria, or your criteria aren't exhaustive, Respect still validates the API responses (headers, status code, and body schemas) against the linked OpenAPI source description.
To run the workflow yourself, download warp.arazzo.yaml and warp.openapi.yaml into the same folder. Open that folder in your terminal and run the following command. Any token value works because the example targets a mock server.
npx @redocly/cli@latest respect warp.arazzo.yaml --input token=your-token-here --server api-reference=https://warp-multi-sidebars.redocly.app/_mock/apis/
Read more about Respect in Testing Arazzo Workflows.
# How to run workflows: npx @redocly/cli@latest respect ./apis/warp.arazzo.yaml --input token=abc --server api-reference=https://warp-multi-sidebars.redocly.app/_mock/apis/
arazzo: 1.0.1
info:
title: Warp API
version: 1.0.0
sourceDescriptions:
- name: api-reference
type: openapi
url: warp.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
format: password
description: JWT Bearer token
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: createTimelineTo1889
operationId: api-reference.createTimeline
description: Create a timeline to 1889.
outputs:
timeline_id: $response.body#/id
- stepId: travelTo1889
operationId: api-reference.timeTravel
description: Travel to 1889.
requestBody:
payload:
destination: $steps.createTimelineTo1889.outputs.timeline_id
- stepId: findAndRegisterBlueprint
operationId: api-reference.registerItem
description: Find the blueprints. Then, register them using the `registerItem` API call.
requestBody:
payload:
description: Tesla's blueprint
outputs:
item_id: $response.body#/id
- stepId: avoidParadox
operationId: api-reference.checkParadox
description: Check for paradoxes.
requestBody:
payload:
timeline_id: $steps.createTimelineTo1889.outputs.timeline_id
proposed_changes:
- event: Sneak in to retrieve Tesla's blueprint
time: "1889-03-10T23:50:00Z"
- item_id: $steps.findAndRegisterBlueprint.outputs.item_id
successCriteria:
- condition: $statusCode == 200
- condition: $[?@.is_stable == true]
context: $response.body
type: jsonpath
- stepId: returnToPresent
operationId: api-reference.timeTravel
description: Return to the present.
requestBody:
payload:
destination: $steps.setAnchorToCurrentTime.outputs.anchor_id
items:
- $steps.findAndRegisterBlueprint.outputs.item_id