Amazon API Gateway · Arazzo Workflow

AWS API Gateway Decommission an HTTP API

Version 1.0.0

Confirm an HTTP API, check for published stages, and delete the API when it is safe to remove.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub API GatewayCloudRESTHTTPWebSocketServerlessMCPAgentCoreDeveloper PortalArazzoWorkflows

Provider

aws-api-gateway

Workflows

decommission-http-api
Delete an API only when it has no published stages.
Confirms an API, lists its stages, and branches to delete the API when no stages are present.
3 steps inputs: apiId outputs: apiName, deleteStatus, stages
1
confirmApi
Confirm the API exists before attempting teardown.
2
listStages
List stages to decide whether the API is safe to delete.
3
deleteApi
Delete the API now that no stages remain.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: AWS API Gateway Decommission an HTTP API
  summary: Confirm an HTTP API, check for published stages, and delete the API when it is safe to remove.
  description: >-
    A guarded teardown of an Amazon API Gateway V2 API. The workflow confirms the
    API exists, lists its stages, and branches: when no stages are published it
    deletes the API, and when stages still exist it stops at the inventory so an
    operator can decide. Because getStages collides with the V1 description it is
    addressed through the V2 source. 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: apisApi
  url: ../openapi/aws-api-gateway-apis-api-openapi.yml
  type: openapi
- name: stagesApi
  url: ../openapi/aws-api-gateway-stages-api-openapi.yml
  type: openapi
workflows:
- workflowId: decommission-http-api
  summary: Delete an API only when it has no published stages.
  description: >-
    Confirms an API, lists its stages, and branches to delete the API when no
    stages are present.
  inputs:
    type: object
    required:
    - apiId
    properties:
      apiId:
        type: string
        description: Identifier of the API to decommission.
  steps:
  - stepId: confirmApi
    description: Confirm the API exists before attempting teardown.
    operationId: getApi
    parameters:
    - name: api_id
      in: path
      value: $inputs.apiId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      apiName: $response.body#/Name
  - stepId: listStages
    description: List stages to decide whether the API is safe to delete.
    operationId: $sourceDescriptions.stagesApi.getStages
    parameters:
    - name: api_id
      in: path
      value: $inputs.apiId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      stages: $response.body#/Items
    onSuccess:
    - name: noStages
      type: goto
      stepId: deleteApi
      criteria:
      - context: $response.body
        condition: $.Items.length == 0
        type: jsonpath
    - name: stagesExist
      type: end
      criteria:
      - context: $response.body
        condition: $.Items.length > 0
        type: jsonpath
  - stepId: deleteApi
    description: Delete the API now that no stages remain.
    operationId: deleteApi
    parameters:
    - name: api_id
      in: path
      value: $inputs.apiId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      statusCode: $statusCode
  outputs:
    apiName: $steps.confirmApi.outputs.apiName
    stages: $steps.listStages.outputs.stages
    deleteStatus: $steps.deleteApi.outputs.statusCode

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/aws-api-gateway-decommission-http-api-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.