Quick answer: Yes, Insomnia supports a design-first workflow through a native OpenAPI editor, but it is a code-first text editor for raw YAML or JSON rather than a form-based or drag-and-drop designer. You write the spec in the center pane, read a rendered preview on the right, and get automatic linting as you type. The spec stays the source of truth, and requests, mocks, tests, and code snippets are generated from it instead of being authored in parallel.
Where the editor lives and what the panes do
In current Insomnia releases (v13.3 and later), one API Collection holds your spec, requests, and environments together, replacing the old split between a design document and a request collection. Open a collection and click the Spec tab. On older releases, you create a Design Document and switch between Design, Debug, and Test modes. The Insomnia comparison hub covers the editor alongside the client.
The editor is laid out in three panes, and knowing which one is editable saves time.
| Pane | What it shows | Can you edit here? |
|---|---|---|
| Left sidebar | Spec metadata: servers, request bodies, schemas | No, it is a structured outline |
| Center | The OpenAPI YAML or JSON source | Yes, this is where you write |
| Right | A rendered preview of paths and operations | No, it is read-only |
The right pane re-renders as you type, and you can fire a request from it once an operation is valid. It is not a design canvas: you cannot drag a resource onto it or fill a form, so every change happens as text in the center.
What linting catches and what it misses
The center pane is linted on every edit. Problems appear along the bottom with an error type, line number, and message, so a broken reference points you to the line. The same engine powers the Inso CLI, so the rules run in CI against a Git repository, and you can add custom rules on top of the built-in set.
Linting gives you structural and stylistic correctness: malformed YAML, dangling references, invalid types, and style-rule violations. It cannot confirm the document matches the running service. A spec can be valid OpenAPI and still describe behavior the backend does not have.
A valid spec is not a correct contract. If the document says a missing resource returns 500 but the live service returns 404, linting reports nothing because both are legal codes. Only sending the request and comparing the result exposes that drift.
That gap is why design and debug go together. The spec fixes the shape of the API, but you need real calls against a running service to learn whether the shape holds.
Generated requests are a one-way build
When the spec is ready, Insomnia can generate a request for every declared operation, plus mocks, tests, and client code in over a dozen languages. Treat these as build outputs: a generated request reflects what the spec says at the moment you generate it, and the contract stays the source of truth.
The direction matters. Editing a generated request by hand does not write back to the spec, so a manual tweak creates drift. The safer habit is to change the spec and regenerate, then delete stale requests, rather than keeping two versions of the truth. To verify the contract beyond individual calls, a local-first tool such as Powerduck lets you import the same OpenAPI file and run ordered scenarios with assertions on status, headers, and fields on the desktop.
You can do all of this before any backend exists. Writing or importing a spec never deploys a server, and a mock derived from the document returns canned responses so front-end work can start early, but it does not replace the real implementation.
Frequently asked questions
Is the Insomnia OpenAPI editor visual or code-based? Code-based. You write YAML or JSON in the center pane; the right pane is a read-only preview with no form or drag-and-drop editing.
Can I design a spec with no backend running? Yes. The editor and linting work offline against the text. You can add a mock for sample responses, but it is a local helper, not a deployed service.
If I edit a generated request, does the spec update? No. Generation flows from spec to request, not back. Edit the spec and regenerate instead of changing the request directly.
Does a clean lint run mean my API matches the spec? No. Lint checks structure and style, not runtime behavior. A document can pass lint while disagreeing with the real service, so live requests and assertions are still required.
The bottom line
Insomnia's design-first support is real, but it asks you to write OpenAPI by hand and stay honest about what the tooling proves. Lint says the document is well formed, not that the contract is true. The spec earns trust only after you generate requests, run them against a live service, and hold the results against assertions, so design first and verify right after.
Top comments (0)