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 Servers API

Manage mock server instances.

Insomnia Mock Servers 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 Servers. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 3 JSON Schemas.

This API exposes 5 operations across 2 paths, and defines 3 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.

5 operations 2 paths 3 schemas 1 DELETE2 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 Servers 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 5

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

Mock Servers 5

Manage mock server instances.

GET
/mock-servers
Insomnia List Mock Servers
listMockServers 1 param → 200401
POST
/mock-servers
Insomnia Create Mock Server
createMockServer body → 201400401
GET
/mock-servers/{mockServerId}
Insomnia Get Mock Server
getMockServer 1 param → 200404
PUT
/mock-servers/{mockServerId}
Insomnia Update Mock Server
updateMockServer 1 param body → 200400404
DELETE
/mock-servers/{mockServerId}
Insomnia Delete Mock Server
deleteMockServer 1 param → 204404

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are MockServer (8 properties), MockServerCreate (4 properties), MockServerUpdate (3 properties). Each schema is shown below with its type and property counts.

MockServerCreate
object
4 properties 2 required
MockServer
object
8 properties 5 required
MockServerUpdate
object
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

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

Other APIs Insomnia publishes across the network.

Insomnia
Insomnia Mock Logs API
Insomnia Mock Routes API