Postman · Arazzo Workflow

Postman Publish a Mock and Add a Custom Response

Version 1.0.0

Publish an existing mock server, add a custom server response, and verify it.

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

publish-mock-and-add-response
Publish a mock server and attach a custom server response.
Publishes a mock server, creates a custom server response on it, and lists the server responses to confirm the addition.
3 steps inputs: mockId, responseBody, responseName, statusCode outputs: mockId, serverResponseId
1
publishMock
Publish the mock server so it is publicly accessible without authentication.
2
createServerResponse
Create a custom server response on the mock server.
3
listServerResponses
List the mock server's custom responses to confirm the new response is present.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Postman Publish a Mock and Add a Custom Response
  summary: Publish an existing mock server, add a custom server response, and verify it.
  description: >-
    Once a mock server exists you often want to make it publicly accessible and
    layer custom responses on top of the collection examples. This workflow
    publishes a mock server, creates a custom server response on it, and lists
    the mock's server responses to confirm the new response is present. Each
    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: mocksApi
  url: ../openapi/postman-mocks-api-openapi.yml
  type: openapi
- name: serverResponsesApi
  url: ../openapi/postman-server-responses-api-openapi.yml
  type: openapi
workflows:
- workflowId: publish-mock-and-add-response
  summary: Publish a mock server and attach a custom server response.
  description: >-
    Publishes a mock server, creates a custom server response on it, and lists
    the server responses to confirm the addition.
  inputs:
    type: object
    required:
    - mockId
    - responseName
    - statusCode
    properties:
      mockId:
        type: string
        description: The mock server's unique ID or UID.
      responseName:
        type: string
        description: The name of the custom server response.
      statusCode:
        type: integer
        description: The HTTP status code the custom response should return.
      responseBody:
        type: string
        description: The body content of the custom response.
  steps:
  - stepId: publishMock
    description: >-
      Publish the mock server so it is publicly accessible without
      authentication.
    operationId: publishMock
    parameters:
    - name: mockId
      in: path
      value: $inputs.mockId
    successCriteria:
    - condition: $statusCode == 200
  - stepId: createServerResponse
    description: >-
      Create a custom server response on the mock server.
    operationId: createServerResponse
    parameters:
    - name: mockId
      in: path
      value: $inputs.mockId
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.responseName
        statusCode: $inputs.statusCode
        body: $inputs.responseBody
        language: json
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      serverResponseId: $response.body#/id
  - stepId: listServerResponses
    description: >-
      List the mock server's custom responses to confirm the new response is
      present.
    operationId: getMockServerResponses
    parameters:
    - name: mockId
      in: path
      value: $inputs.mockId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstResponseId: $response.body#/0/id
  outputs:
    mockId: $inputs.mockId
    serverResponseId: $steps.createServerResponse.outputs.serverResponseId

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-publish-mock-and-add-response-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.