MockLab API

MockLab API as documented publicly: 11 operations. Contract generated from the documentation by API Evangelist (2026-10-21); not the provider's own document.

Operations 11

GET /.well-known/openid-configuration Initiate the Client #
GET /__admin/ext/imports GET /__admin/ext/imports #
POST /__admin/ext/imports POST /__admin/ext/imports #
GET /__admin/ext/jobs/8e2f3641-5f0a-45a2-9d1b-39cf16b2d0e7 GET /__admin/ext/jobs/8e2f3641-5f0a-45a2-9d1b-39cf16b2d0e7 #
GET /__admin/mappings GET /__admin/mappings #
DELETE /baskets/1/items DELETE /baskets/1/items #
POST /baskets/1/items POST /baskets/1/items #
DELETE /baskets/1/items/2 DELETE /baskets/1/items/2 #
GET /baskets/1/items/{itemid} GET /baskets/1/items/{itemId} #
GET /baskets/{basketid}/items GET /baskets/1/items #
GET /v1 How to use the WireMock Cloud REST API #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/mocklab:mocklab-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

mocklab-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: MockLab API
  version: '2026-10-21'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-21: 11 operation(s) read from 4 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; MockLab has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 11
    documentation: 0
    pages-with-code: 2
    pages-read: 4
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-21'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.wiremock.io/import-export/api.md
  - https://docs.wiremock.io/api-getting-started.md
  - https://docs.wiremock.io/device-authorization-flow.md
  - https://docs.wiremock.io/dynamic-state/basket-example.md
servers:
- url: https://my-api.wiremockapi.cloud
paths:
  /.well-known/openid-configuration:
    get:
      operationId: get_well_known_openid_configuration
      tags:
      - API
      summary: Initiate the Client
      x-source: https://docs.wiremock.io/device-authorization-flow.md
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWellKnownOpenidConfigurationResponse'
      x-evidence:
        kind: documentation
  /__admin/ext/imports:
    get:
      operationId: get_admin_ext_imports
      tags:
      - Admin
      summary: GET /__admin/ext/imports
      x-source: https://docs.wiremock.io/import-export/api.md
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAdminExtImportsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -v  --data-binary @my-swagger-spec.yaml  -H ''Authorization:Token my-api-token''  https://my-api.wiremockapi.cloud/__admin/ext/imports

          ```'
    post:
      operationId: post_admin_ext_imports
      tags:
      - Admin
      summary: POST /__admin/ext/imports
      x-source: https://docs.wiremock.io/import-export/api.md
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostAdminExtImportsResponse'
      x-evidence:
        kind: code-example
        language: python
        snippet: "requests.post(\n        'https://my-api.wiremockapi.cloud/__admin/ext/imports',\n        headers={'Authorization': 'Token my-api-token'},\n\
          \        data=spec\n    )"
  /__admin/ext/jobs/8e2f3641-5f0a-45a2-9d1b-39cf16b2d0e7:
    get:
      operationId: get_admin_ext_jobs_8e2f3641_5f0a_45a2_9d1b_39cf16b2d0e7
      tags:
      - Admin
      summary: GET /__admin/ext/jobs/8e2f3641-5f0a-45a2-9d1b-39cf16b2d0e7
      x-source: https://docs.wiremock.io/import-export/api.md
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAdminExtJobs8E2F36415F0A45A29D1B39Cf16B2D0E7Response'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -v  -H ''Authorization:Token my-api-token''  https://my-api.wiremockapi.cloud/__admin/ext/jobs/8e2f3641-5f0a-45a2-9d1b-39cf16b2d0e7

          ```'
  /__admin/mappings:
    get:
      operationId: get_admin_mappings
      tags:
      - Admin
      summary: GET /__admin/mappings
      x-source: https://docs.wiremock.io/import-export/api.md
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAdminMappingsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl --output my-stubs.json  -H ''Authorization:Token my-api-token''  https://my-api.wiremockapi.cloud/__admin/mappings

          ```'
  /baskets/1/items:
    delete:
      operationId: delete_baskets_1_items
      tags:
      - Baskets
      summary: DELETE /baskets/1/items
      x-source: https://docs.wiremock.io/dynamic-state/basket-example.md
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteBaskets1ItemsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -v -X DELETE  'https://my-basket-demo.wiremockapi.cloud/baskets/1/items'  \n```"
    post:
      operationId: post_baskets_1_items
      tags:
      - Baskets
      summary: POST /baskets/1/items
      x-source: https://docs.wiremock.io/dynamic-state/basket-example.md
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostBaskets1ItemsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -v -X POST  -d ''{ "id": "1", "item": "Socks", "quantity": 5 }''  ''https://my-basket-demo.wiremockapi.cloud/baskets/1/items'''
  /baskets/1/items/2:
    delete:
      operationId: delete_baskets_1_items_2
      tags:
      - Baskets
      summary: DELETE /baskets/1/items/2
      x-source: https://docs.wiremock.io/dynamic-state/basket-example.md
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteBaskets1Items2Response'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -v -X DELETE  'https://my-basket-demo.wiremockapi.cloud/baskets/1/items/2'  \n```"
  /baskets/1/items/{itemid}:
    get:
      operationId: get_baskets_1_items_itemid
      tags:
      - Baskets
      summary: GET /baskets/1/items/{itemId}
      x-source: https://docs.wiremock.io/dynamic-state/basket-example.md
      parameters:
      - name: itemid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBaskets1ItemsItemidResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -v ''https://my-basket-demo.wiremockapi.cloud/baskets/1/items/56''

          ```'
  /baskets/{basketid}/items:
    get:
      operationId: get_baskets_basketid_items
      tags:
      - Baskets
      summary: GET /baskets/1/items
      x-source: https://docs.wiremock.io/dynamic-state/basket-example.md
      parameters:
      - name: basketid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBasketsBasketidItemsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -v ''https://my-basket-demo.wiremockapi.cloud/baskets/1/items''

          ```'
        collapsed_from: 2 example path(s) differing only at basketId
  /v1:
    get:
      operationId: get_v1
      tags:
      - Api
      summary: How to use the WireMock Cloud REST API
      description: Retrieves the root resource of the WireMock Cloud API. Authentication is required via one of the supported methods (API Token,
        Basic, or OAuth 2.0).
      x-source: https://docs.wiremock.io/api-getting-started.md
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    GetWellKnownOpenidConfigurationResponse:
      type: object
      properties:
        token_endpoint:
          type: string
          description: Fully qualified URL of the token endpoint
        device_authorization_endpoint:
          type: string
          description: Fully qualified URL of the device authorization endpoint
        revocation_endpoint:
          type: string
          description: Fully qualified URL of the revocation endpoint
    GetAdminExtImportsResponse:
      type: object
      properties:
        Authorization:
          type: string
    PostAdminExtImportsResponse:
      type: object
      properties:
        Authorization:
          type: string
    GetAdminExtJobs8E2F36415F0A45A29D1B39Cf16B2D0E7Response:
      type: object
      properties:
        id:
          type: string
        jobType:
          type: string
        status:
          type: string
        started:
          type: string
          format: date-time
        finished:
          type: string
          format: date-time
        elapsed:
          type: string
        links:
          type: object
          properties:
            self:
              type: string
        outcome:
          type: object
          properties:
            mappings:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
    GetAdminMappingsResponse:
      type: object
      properties:
        headers:
          type: object
          properties:
            Authorization:
              type: string
    DeleteBaskets1ItemsResponse:
      type: object
      properties:
        items:
          type: array
          items: {}
        total:
          type: integer
    PostBaskets1ItemsRequest:
      type: object
      properties:
        id:
          type: string
        item:
          type: string
        quantity:
          type: integer
    DeleteBaskets1Items2Response:
      type: object
      properties:
        items:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              item:
                type: string
              quantity:
                type: integer
        total:
          type: integer
    GetBaskets1ItemsItemidResponse:
      type: object
      properties:
        error:
          type: string
    GetBasketsBasketidItemsResponse:
      type: object
      properties:
        items:
          type: array
          items: {}
        total:
          type: integer
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
security:
- apiKey: []
tags:
- name: API
- name: Admin
- name: Api
- name: Baskets