Collections

Request collections in Insomnia

Collections are a way to group requests in Insomnia. You can use them to:

Image of a collection

Send requests

With Insomnia, you can send requests via HTTP, gRPC, GraphQL, and WebSockets. You can send a single request or run a series of requests in a specific order.

Image of a request

Write scripts

The pre-request and after-response scripts allows you to interact with the request and its response. You can use these to:

  • Set or unset variables
  • Update the contents of the request
  • Dynamically update request bodies
  • Test the response
Image of an after-response script

Frequently asked questions

Documents are a data object that can contain an API spec, a collection of API requests, and tests. Collections are simply a series of API requests that you intend to interact with Insomnia.

Yes, you can create requests in collections by importing:

  • Postman collections
  • Swagger/OpenAPI specifications
  • cURL commands
  • Insomnia files
  • HAR files
  • WSDL files

Yes, you can use the inso run collection command in Inso CLI to run a collection automatically.

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!