Skip to main content

Arazzo workflows

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: arazzo-workflows · 8 operations

GET /v1/workflows/{tenant_slug}/catalog/{item_id}​

List Catalog Item Workflows

List the Arazzo workflows of a catalog item's latest revision.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug. item_id: The catalog item UUID. auth_data: Authentication data (injected by dependency).

Returns: The latest revision's workflows; version_id is null and workflows empty when the item has no revisions yet.

Raises: HTTPException: 400 for a malformed id; 404 when the id is not a catalog item in this tenant (a publishable Project is read through the versions route instead).

Operation id: list_catalog_item_workflows_v1_workflows__tenant_slug__catalog__item_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
item_idpathstringyesCatalog item identifier.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list catalog item workflows.application/json ArazzoWorkflowsResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/workflows/{tenant_slug}/catalog/{item_id}/revisions/{version_id}​

List Catalog Revision Workflows

List the Arazzo workflows of one revision of a catalog item.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug. item_id: The catalog item UUID. version_id: The revision (versions.id) UUID; it must belong to item_id. auth_data: Authentication data (injected by dependency).

Returns: That revision's workflows, shaped like the latest-revision read.

Raises: HTTPException: 400 for a malformed id; 404 when the id is not a catalog item in this tenant, or the revision is not one of its revisions.

Operation id: list_catalog_revision_workflows_v1_workflows__tenant_slug__catalog__item_id__revisions__version_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
item_idpathstringyesCatalog item identifier.
version_idpathstringyesVersion identifier or semantic version label, depending on the route.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list catalog revision workflows.application/json ArazzoWorkflowsResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/workflows/{tenant_slug}/operations/{path_operation_id}​

Get Workflow Step Operation

Read the operation an Arazzo step calls, for the step drawer.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug. path_operation_id: The path_operation.id a step resolved to. auth_data: Authentication data (injected by dependency).

Returns: The operation's method, route, summary, owning project and revision, parameters and declared responses.

Raises: HTTPException: 400 for a malformed id; 404 when the operation is not in this tenant.

Operation id: get_workflow_step_operation_v1_workflows__tenant_slug__operations__path_operation_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
path_operation_idpathstringyesPath parameter identifying the path operation id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get workflow step operation.application/json ArazzoOperationDetailOut
422Validation Errorapplication/json HTTPValidationError

GET /v1/workflows/{tenant_slug}/versions/{version_id}​

List Version Workflows

List the Arazzo workflows persisted for a revision.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug. version_id: The revision (versions.id) UUID. auth_data: Authentication data (injected by dependency).

Returns: The revision's workflows in declaration order, each with its ordered steps, the operation each step resolved to, and its source-description status. An empty workflows list means the revision holds no Arazzo document.

Raises: HTTPException: 400 for a malformed id; 404 when the revision is not in this tenant.

Operation id: list_version_workflows_v1_workflows__tenant_slug__versions__version_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
version_idpathstringyesVersion identifier or semantic version label, depending on the route.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list version workflows.application/json ArazzoWorkflowsResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/workflows/{tenant_slug}/versions/{version_id}/workflows/{workflow_id}​

Get Version Workflow

Read one persisted Arazzo workflow of a revision.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug. version_id: The revision (versions.id) UUID. workflow_id: The workflow's Arazzo workflowId. auth_data: Authentication data (injected by dependency).

Returns: The workflow with its ordered steps and their resolution state, plus every source the document declares.

Raises: HTTPException: 400 for a malformed id; 404 when the revision is not in this tenant or has no such workflow.

Operation id: get_version_workflow_v1_workflows__tenant_slug__versions__version_id__workflows__workflow_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
version_idpathstringyesVersion identifier or semantic version label, depending on the route.
workflow_idpathstringyesPath parameter identifying the workflow id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get version workflow.application/json ArazzoWorkflowDetailResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/workflows/{tenant_slug}/versions/{version_id}/workflows/{workflow_id}/run​

Run an Arazzo workflow against a verification target

Execute one stored workflow end to end against an ECA-1.2 verification target (a deployment, or a mock environment target): steps run in order, each request built from the workflow inputs and earlier steps' outputs through runtime expressions; each step's successCriteria are judged as assertions with expected-vs-actual values; onSuccess / onFailure end, goto and retry actions are followed.

Safe by default (CTG-4.3). A step that sends POST/PUT/PATCH/DELETE runs only when the target policy allows mutating methods, verification.allow_mutating is set and a fixture names the step's operation (or the step, by case_id). Otherwise the run is refused before anything is sent: 200 with ok: false and every reason in refusals (also used for unresolved steps, nested-workflow steps and inputs that fail the workflow's inputs schema).

An executed run is recorded as immutable ECA-1.3 evidence (201; 200 on an idempotent replay) whatever its outcome. 404 when the revision or workflow is unknown; target faults are 400/404; evidence faults are 400.

Operation id: run_version_workflow_v1_workflows__tenant_slug__versions__version_id__workflows__workflow_id__run_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
version_idpathstringyesVersion identifier or semantic version label, depending on the route.
workflow_idpathstringyesPath parameter identifying the workflow id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for run an arazzo workflow against a verification target.

Responses

StatusDescriptionBody
200Successful response for run an arazzo workflow against a verification target.application/json ArazzoWorkflowRunResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/workflows/{tenant_slug}/versions/{version_id}/workflows/{workflow_id}/steps​

List Version Workflow Steps

List the steps of one persisted Arazzo workflow, in source order.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug. version_id: The revision (versions.id) UUID. workflow_id: The workflow's Arazzo workflowId. auth_data: Authentication data (injected by dependency).

Returns: The ordered steps, each with its operationRef / operationId, resolution state and resolved operation, and the steps counted by resolution state.

Raises: HTTPException: 400 for a malformed id; 404 when the revision is not in this tenant or has no such workflow.

Operation id: list_version_workflow_steps_v1_workflows__tenant_slug__versions__version_id__workflows__workflow_id__steps_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
version_idpathstringyesVersion identifier or semantic version label, depending on the route.
workflow_idpathstringyesPath parameter identifying the workflow id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list version workflow steps.application/json ArazzoWorkflowStepsResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/workflows/{tenant_slug}/versions/{version_id}/workflows/{workflow_id}/steps/{step_id}​

Get Version Workflow Step

Read one step of a persisted Arazzo workflow.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug. version_id: The revision (versions.id) UUID. workflow_id: The workflow's Arazzo workflowId. step_id: The step's Arazzo stepId. auth_data: Authentication data (injected by dependency).

Returns: The step with its target, resolution state, resolved operation and actions.

Raises: HTTPException: 400 for a malformed id; 404 when the revision is not in this tenant, or has no such workflow or step.

Operation id: get_version_workflow_step_v1_workflows__tenant_slug__versions__version_id__workflows__workflow_id__steps__step_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
version_idpathstringyesVersion identifier or semantic version label, depending on the route.
workflow_idpathstringyesPath parameter identifying the workflow id segment.
step_idpathstringyesPath parameter identifying the step id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get version workflow step.application/json ArazzoWorkflowStepOut
422Validation Errorapplication/json HTTPValidationError

Schemas used​

ArazzoOperationDetailOut​

One path operation with its parameters and responses (the step drawer).

PropertyTypeRequiredDescription
path_operation_idstringyespath_operation.id the step targets
methodstringyesUpper-case HTTP method
pathstringyesRoute template, e.g. /pets/{petId}
path_idstringyesversion_path.id holding the route
summarystring or nullnoShort summary suitable for navigation and reference docs.
descriptionstring or nullnoFree-text description.
operation_idstring or nullnoThe operation's operationId, if any
version_idstringyesRevision (versions.id) holding the operation
version_labelstring or nullnoDisplay version string of that revision
project_idstringyesProject or catalog item holding the operation
project_namestring or nullnoProject Name.
project_publishablebooleannoTrue for a Project, false for a catalog item
parametersarray of ArazzoOperationParameterOutnoParameters.
responsesarray of ArazzoOperationResponseOutnoResponses.

ArazzoWorkflowDetailResponse​

One persisted Arazzo workflow of a revision, with the revision it was read from.

PropertyTypeRequiredDescription
version_idstringyesThe revision read
project_idstringyesProject or catalog item owning the revision
sourcesarray of ArazzoSourceDescriptionOutnoEvery source the document declares
workflowArazzoWorkflowOutyesWorkflow.

ArazzoWorkflowRunRequest​

Which target to run a workflow against, with what inputs, and how much it may touch.

PropertyTypeRequiredDescription
target_refstringyesVerification target slug or id (ECA-1.2) — a deployment, or a mock environment target pointing at an Apiome mock.
inputsobjectnoWorkflow inputs ($inputs.…). Checked against the workflow's inputs schema after its property defaults are applied. The run hashes them into the digest and does not store them; a criterion that compares with an input quotes its value as evidence.
verificationArazzoRunOptionsnoWhat the run may send. Safe methods only by default; a mutating step needs the target policy, allow_mutating and a fixture naming its operation.
idempotency_keystring or nullnoEvidence retry key; forwarded to the verification-runs store.
contextobjectnoNon-secret CI context (commit, branch, workflow URL). Never credentials.

ArazzoWorkflowRunResponse​

The outcome of one workflow run attempt.

PropertyTypeRequiredDescription
okbooleanyesWhether the workflow executed (whatever its outcome).
version_idstringyesThe revision the workflow was read from.
workflow_idstringyesThe workflow's workflowId.
digeststring or nullnoDigest of the compiled run plan and its inputs.
reportArazzoWorkflowRunReport or nullnoThe per-step report when ok is true.
refusalsarray of ArazzoRunRefusalnoEverything that kept the run from starting; nothing was sent when non-empty.
fixture_findingsarray of FixtureFindingnoFixtures that matched no mutating step.
runVerificationRunRecord or nullnoThe immutable ECA-1.3 evidence behind the report.
createdboolean or nullnoTrue when evidence was newly written; False on replay.
errorArazzoRunErrorOut or nullnoPopulated when ok is false.

ArazzoWorkflowStepOut​

One step of a workflow, in source order, with what it calls and where it goes next.

PropertyTypeRequiredDescription
step_idstringyesStep ID.
order_indexintegeryesOrder Index.
descriptionstring or nullnoFree-text description.
target_kindenum "operation", "workflow", "none"yesWhether the step calls an operation, another workflow, or nothing
target_workflow_idstring or nullnoCalled workflowId, if any
operation_refstring or nullnoRaw operationRef / operationPath
operation_idstring or nullnoRaw operationId
resolution_statusstringyesresolved, unresolved, not_applicable or parse_error
resolution_reasonstring or nullnoResolution Reason.
operationArazzoStepOperationOut or nullnoThe resolved operation; null when unresolved or since deleted
source_namesarray of stringnoDeclared sources the step's target points into
parametersarray of anynoParameters.
request_bodyany or nullnoRequest Body.
success_criteriaarray of anynoSuccess Criteria.
on_successarray of anynoonSuccess actions, verbatim
on_failurearray of anynoonFailure actions, verbatim
outputsobjectnoOutputs.
depends_onarray of anynoDepends On.

ArazzoWorkflowStepsResponse​

The ordered steps of one persisted Arazzo workflow.

PropertyTypeRequiredDescription
version_idstringyesThe revision read
workflow_idstringyesThe Arazzo workflowId the steps belong to
step_resolutionmap of integernoSteps counted by resolution_status
stepsarray of ArazzoWorkflowStepOutnoSteps.

ArazzoWorkflowsResponse​

The Arazzo workflows persisted for one revision.

PropertyTypeRequiredDescription
version_idstring or nullnoThe revision read; null for a catalog item with no revisions
project_idstring or nullnoProject identifier the resource belongs to.
sourcesarray of ArazzoSourceDescriptionOutnoEvery source the document declares
workflowsarray of ArazzoWorkflowOutnoWorkflows.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.