Postman · Arazzo Workflow

Postman Create a Mock Server from a Collection

Version 1.0.0

Create a collection, stand up a mock server from it, and read the mock back.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub AI Agent BuilderAI AgentsAPI CatalogAPI ClientAPI DesignAPI DevelopmentAPI DocumentationAPI GovernanceAPI LifecycleAPI MonitoringAPI NetworkAPI PlatformAPI TestingAudit LogsAutomationCI/CDCollaborationCollectionComplianceDiscoveryEnvironmentsFlowsGraphQLgRPCHTTPInsightsMCPMCP GeneratorMock ServersMockingMonitorsNewmanOpenAPIPlatformPrivate API NetworkPublic API NetworkSecret ScanningSpec HubSpecificationsSSOTestingVaultWebSocketWorkflowsWorkspacesArazzoWorkflows

Provider

postman

Workflows

create-mock-from-collection
Create a collection and a mock server backed by it.
Creates a collection, creates a mock server that serves the collection's examples, and reads the mock back to obtain its mock URL.
3 steps inputs: collectionName, mockName, workspace outputs: collectionId, mockId, mockUrl
1
createCollection
Create the collection whose example responses the mock server will serve.
2
createMock
Create a mock server backed by the new collection, kept private by default.
3
getMock
Read the mock server back to confirm its configuration and capture the mock URL.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Postman Create a Mock Server from a Collection
  summary: Create a collection, stand up a mock server from it, and read the mock back.
  description: >-
    The standard path to a working mock server: a collection supplies the
    example responses that the mock serves. This workflow creates a collection,
    creates a mock server backed by that collection, and reads the mock back to
    capture its public mock URL. Each step spells out its request inline so the
    flow can be read and executed without opening the underlying OpenAPI
    descriptions.
  version: 1.0.0
sourceDescriptions:
- name: collectionsApi
  url: ../openapi/postman-collections-api-openapi.yml
  type: openapi
- name: mocksApi
  url: ../openapi/postman-mocks-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-mock-from-collection
  summary: Create a collection and a mock server backed by it.
  description: >-
    Creates a collection, creates a mock server that serves the collection's
    examples, and reads the mock back to obtain its mock URL.
  inputs:
    type: object
    required:
    - collectionName
    - mockName
    properties:
      collectionName:
        type: string
        description: The name of the collection to create and mock.
      mockName:
        type: string
        description: The name of the mock server.
      workspace:
        type: string
        description: Optional workspace ID to create the collection and mock in.
  steps:
  - stepId: createCollection
    description: >-
      Create the collection whose example responses the mock server will serve.
    operationId: createCollection
    parameters:
    - name: workspace
      in: query
      value: $inputs.workspace
    requestBody:
      contentType: application/json
      payload:
        collection:
          info:
            name: $inputs.collectionName
            schema: https://schema.getpostman.com/json/collection/v2.1.0/collection.json
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      collectionId: $response.body#/collection/id
  - stepId: createMock
    description: >-
      Create a mock server backed by the new collection, kept private by
      default.
    operationId: createMock
    parameters:
    - name: workspace
      in: query
      value: $inputs.workspace
    requestBody:
      contentType: application/json
      payload:
        mock:
          name: $inputs.mockName
          collection: $steps.createCollection.outputs.collectionId
          private: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      mockId: $response.body#/mock/id
      mockUrl: $response.body#/mock/mockUrl
  - stepId: getMock
    description: >-
      Read the mock server back to confirm its configuration and capture the
      mock URL.
    operationId: getMock
    parameters:
    - name: mockId
      in: path
      value: $steps.createMock.outputs.mockId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      mockUrl: $response.body#/mock/mockUrl
  outputs:
    collectionId: $steps.createCollection.outputs.collectionId
    mockId: $steps.createMock.outputs.mockId
    mockUrl: $steps.getMock.outputs.mockUrl

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/postman-create-mock-from-collection-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.