Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Insomnia Mock Routes API

Manage individual routes within a mock server.

Insomnia Mock Routes API is one of 4 APIs that Insomnia publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 3 JSON Schema definitions.

Tagged areas include Mock Routes. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 3 JSON Schemas.

This API exposes 4 operations across 2 paths, and defines 2 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0.

Requests are made against 2 base URLs: https://mock.insomnia.rest, http://localhost:4010.

4 operations 2 paths 2 schemas 1 DELETE1 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Servers
https://mock.insomnia.rest
http://localhost:4010
Authentication
HTTP Bearer
Contact
License
Resource Areas
1

Authentication & Security 1

Insomnia Mock Routes API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — Insomnia cloud authentication token for accessing mock server management endpoints.

Paths & Operations 4

Across 2 paths, the API surfaces 4 operations — 1 DELETE, 1 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Mock Routes 4

Manage individual routes within a mock server.

GET
/mock-servers/{mockServerId}/routes
Insomnia List Mock Routes
listMockRoutes 1 param → 200404
POST
/mock-servers/{mockServerId}/routes
Insomnia Create Mock Route
createMockRoute 1 param body → 201400404
PUT
/mock-servers/{mockServerId}/routes/{routeId}
Insomnia Update Mock Route
updateMockRoute 2 params body → 200404
DELETE
/mock-servers/{mockServerId}/routes/{routeId}
Insomnia Delete Mock Route
deleteMockRoute 2 params → 204404

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are MockRoute (9 properties), MockRouteCreate (7 properties). Each schema is shown below with its type and property counts.

MockRouteCreate
object
7 properties 3 required
MockRoute
object
9 properties 5 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

insomnia-mock-routes-api-openapi.yml Raw ↑

Other APIs Insomnia publishes across the network.

Insomnia
Insomnia Mock Logs API
Insomnia Mock Servers API