Can I migrate my pre-request scripts from another API client, like Postman, to Insomnia?
Yes, you can copy and paste your pre-request scripts directly from Postman into an Insomnia pre-request script.
Can I run pre-request scripts without an API Collection?
No, pre-request scripts run on the requests inside an API Collection. Every API Collection supports them, including one that holds an OpenAPI spec.
Can I use variables in request paths?
Yes. Insomnia supports variables in request paths through template tags and environment variables.
Define variables in your environment, then reference them directly in a request URL using Liquid syntax, for example:
https://api.example.com/users/{{ user_id }}For detailed usage examples, go to Requests and Pre-request scripts.