APIMatic · Arazzo Workflow

APIMatic Import, Validate and Publish Portal

Version 1.0.0

Import an API spec, lint it, and generate a docs portal when it is valid.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub API TransformationCode GenerationDeveloper ExperienceDocumentationSDK GenerationArazzoWorkflows

Provider

apimatic

Workflows

import-validate-generate-portal
Import a spec, validate it, then build a docs portal if the spec is valid.
Creates an API entity from an uploaded specification, lints it, and generates a developer documentation portal only when validation reports the definition as valid.
3 steps inputs: authorization, file outputs: apiEntityId, portalDownloadUrl, valid
1
importSpec
Upload the API specification file as multipart form data to create a new API entity in APIMatic.
2
validateSpec
Validate and lint the imported definition, capturing whether it is valid along with any warnings.
3
generatePortal
Generate a developer documentation portal for the validated API entity and return the download URL.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: APIMatic Import, Validate and Publish Portal
  summary: Import an API spec, lint it, and generate a docs portal when it is valid.
  description: >-
    A documentation-publishing pipeline. The workflow imports an API
    specification file to create an API entity, validates and lints the
    resulting definition, and branches on the validation result: when the
    definition is valid it generates a developer documentation portal and
    returns the download URL, and when it is invalid it stops so a broken
    portal is never published. 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/apimatic-apis-api-openapi.yml
  type: openapi
- name: portalsApi
  url: ../openapi/apimatic-portals-api-openapi.yml
  type: openapi
- name: validationApi
  url: ../openapi/apimatic-validation-api-openapi.yml
  type: openapi
workflows:
- workflowId: import-validate-generate-portal
  summary: Import a spec, validate it, then build a docs portal if the spec is valid.
  description: >-
    Creates an API entity from an uploaded specification, lints it, and
    generates a developer documentation portal only when validation reports the
    definition as valid.
  inputs:
    type: object
    required:
    - authorization
    - file
    properties:
      authorization:
        type: string
        description: API key passed in the Authorization header.
      file:
        type: string
        description: The API specification file contents to import.
  steps:
  - stepId: importSpec
    description: >-
      Upload the API specification file as multipart form data to create a new
      API entity in APIMatic.
    operationId: importApiDefinition
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authorization
    requestBody:
      contentType: multipart/form-data
      payload:
        file: $inputs.file
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      apiEntityId: $response.body#/id
  - stepId: validateSpec
    description: >-
      Validate and lint the imported definition, capturing whether it is valid
      along with any warnings.
    operationId: validateApiDefinition
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authorization
    - name: apiEntityId
      in: path
      value: $steps.importSpec.outputs.apiEntityId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      valid: $response.body#/valid
      warnings: $response.body#/warnings
    onSuccess:
    - name: specIsValid
      type: goto
      stepId: generatePortal
      criteria:
      - context: $response.body
        condition: $.valid == true
        type: jsonpath
    - name: specIsInvalid
      type: end
      criteria:
      - context: $response.body
        condition: $.valid == false
        type: jsonpath
  - stepId: generatePortal
    description: >-
      Generate a developer documentation portal for the validated API entity and
      return the download URL.
    operationId: generatePortal
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authorization
    - name: apiEntityId
      in: path
      value: $steps.importSpec.outputs.apiEntityId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      downloadUrl: $response.body#/downloadUrl
      expiresAt: $response.body#/expiresAt
  outputs:
    apiEntityId: $steps.importSpec.outputs.apiEntityId
    valid: $steps.validateSpec.outputs.valid
    portalDownloadUrl: $steps.generatePortal.outputs.downloadUrl

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/apimatic-import-validate-generate-portal-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.