Run API mocks to build and ship APIs faster
Leverage native API mocking to create mocks manually from your collections and OpenAPI specs, or auto-generate them from API responses.

API mocks for collections
Create visual API mocks to unblock developers. Ship faster while reducing any unnecessary team coordination.
Auto-generation
Upload an OpenAPI spec to automatically create API mocks, or generate them from API responses.
Locally or in the cloud
Run a self-hosted API mock server in your infrastructure, or easily publish it to the cloud.

Mock any endpoint
Create API mocks intuitively using the Insomnia application with support for custom endpoints using any HTTP Archive (HAR) response object, all standard HTTP methods, and method overriding.

JSON, XML, YAML, HTML + CORS
Insomnia supports output in JSON, YAML, and XML, as well as an HTML view for in-browser testing. Insomnia dynamically generates Cross-Origin headers to debug your front-end JavaScript HTTP calls from any domain.

From OpenAPI to API Mock
Simplify the creation of API mocks. Upload your OpenAPI specification and let Insomnia do the work for you by autogenerating API mocks for each route in the specification.

Cloud hosting and collaboration
Keep your API mocks private. Or allow your collaborators to access them instantly in the cloud without needing access to your machine to support coordination between frontend and backend developers.

Log and inspect calls
Log and inspect incoming calls to your custom endpoints by preserving the full history of requests that your API mocks are receiving. Identify client errors before they happen in production.
Ready to mock your APIs?
Discover an easier way to build and use APIs — with Kong Insomnia