In Insomnia, requests are contained in collections. Before you can create a request, you need to create a collection. To do that, click Create > Request collection in your Insomnia project.
Once your collection is created, there are several ways to create requests. Click the + button and select an option:
|
Option |
Steps |
|---|---|
| Create a request from scratch | Select the type or request to create (HTTP, Event Stream, GraphQL, gRPC, or WebSocket). |
| Import a cURL command | Select cURL, paste your command, and click Import. Insomnia converts the command into a request and opens it automatically. |
| Import from a file (Postman collection, Swagger, OpenAPI, HAR, WSDL) | Click From File, select an import option (file, URL, or clipboard), specify the file to import, then click Scan and Import. |
After creating or importing a request, Insomnia automatically opens it in the editor so you can review and send it immediately.