Quick answer: Yes, Insomnia is both a REST and a GraphQL client, and the two request types live side by side in the same collection and share one set of environments and auth. REST requests work as multi-endpoint HTTP calls with method, params, and body controls; GraphQL requests use a single endpoint with schema-driven autocomplete, a query editor, and a JSON variables section. The main gotchas are that autocomplete depends on the server allowing introspection and that template tags work in variables, not inside the query text.

One collection, two mental models

REST and GraphQL do not work the same way, and Insomnia keeps that difference visible rather than hiding it. A REST request names a method and a path, so a resource might spread across GET /pets, POST /pets, and GET /pets/{id}, each with its own params, headers, and body. A GraphQL request usually posts to one endpoint, often /graphql, and the query itself decides which fields come back. You can create a GraphQL request directly from the new-request menu or switch an existing request to the GraphQL body type.

Keeping both in one collection helps when a service mixes the two, or when a flow starts with a REST login and then reads data through GraphQL. The requests share one tree and set of tabs, so no second application is needed for the GraphQL parts.

Aspect REST request GraphQL request
Endpoint A path per resource and method Usually one endpoint, often /graphql
Request body JSON, form, raw, and other encodings Built from query, variables, operationName
Field help No schema autocomplete Autocomplete from introspection
Validation Manual status and body checks Inline query validation and errors
Template tags Supported in URL, headers, body Variables only, not the query text
Variables Environment and request variables JSON Query Variables section

How GraphQL autocomplete actually works

When you open a GraphQL request or change its URL, Insomnia runs an introspection query against the server and uses the returned schema for autocomplete, inline validation, and the documentation browser. That is why field names appear as you type and Show Documentation can list the schema with no import.

Two limits follow from that design. If the server disables introspection, which is common in locked-down production environments, there is no schema to fetch, so autocomplete and the documentation browser stop working and you write the query by hand. The introspection call also carries the request's auth and headers, since a protected schema needs the same token, so switching requests is a real network call, not a local lookup.

The query editor accepts standard GraphQL syntax, arguments, comments, and fragments, but it does not accept Insomnia template tags. For a dynamic value, put it in Query Variables as a JSON object and reference it with a GraphQL variable. Leave that section empty and Insomnia omits the variables key from the payload.

Sharing environments and auth

Because REST and GraphQL requests sit in the same collection, they draw from the same environments, from globals and collection variables down to environment and local scope, and the same auth configuration can be reused. A token captured once can feed both kinds of request, and switching between staging and production changes the base URL for the whole set.

That sharing is convenient, but it is worth checking scope. A cookie or header meant for a REST path can be broader than you expect, and a GraphQL endpoint may want a different audience on the same token. Private sub-environments stay on the machine and are not exported or synced, which is the place for credentials you do not want in a shared environment or a Git repository. For the wider set of trade-offs against other tools, see the Insomnia comparison hub.

Frequently asked questions

Does a GraphQL 200 mean the request succeeded? No. GraphQL can return HTTP 200 with an errors array alongside partial data, so check both the data and errors fields instead of trusting the status alone.

Can I generate every query from the schema? The built-in client does not bulk-generate requests. Autocomplete and the documentation browser help you write them; community plugins exist for generating a collection from introspection, but they are third-party and not maintained by Insomnia.

Do GraphQL requests use the same proxy and certificates as REST? Yes, they run through the same application settings, including configured proxies and client certificates, because both are sent by the same client.

What is operationName in the payload? It is optional and is filled from the first named query when present, letting the server identify which operation to run when a document holds more than one.

The bottom line

Insomnia is a real multi-protocol client rather than a REST tool with GraphQL added on: the GraphQL side has introspection-driven autocomplete, validation, and a proper variables section, while both request types share environments and auth. Plan around the introspection dependency and the rule that template tags live in variables, not the query text, and treat a 200 with an errors array as a failure. For teams that want to chain a REST call and a GraphQL call into one ordered sequence with assertions at each step rather than sending each by hand, a local-first app such as Powerduck keeps the scenario and code review in one place.