Kong Insomnia 9.0 is now generally available for download. It ships with many new features and improvements — over one hundred improvements in total

Introducing Insomnia 9.0 with Pre-request Scripting, Improved Offline Access, API Mocking, and 100+ Improvements

submited by
Style Pass
2024-04-24 13:30:06

Kong Insomnia 9.0 is now generally available for download. It ships with many new features and improvements — over one hundred improvements in total!

This new version of Kong Insomnia also makes it much easier to migrate from other products with a more reliable “import” experience, while improving the speed of using the product and making it more customizable. Let’s dive into all the notable features.

Insomnia 9.0 ships with the much anticipated pre-request scripting capability, allowing you to write a custom script in JavaScript before testing a request in a collection.

The pre-request scripting capability allows you to be in full control of a request lifecycle by programmatically building more complex behavior. This includes the ability to make other HTTP requests to retrieve an authentication token from a third party before submitting the original request, or orchestrating multiple requests together. It also allows users to modify the current requests programmatically in a variety of ways by accessing parameters and environment variables directly.

Insomnia’s pre-request scripts are compatible with Postman. This means that, in most scenarios, you’ll be able to copy-paste your existing pre-request scripts from Postman into Insomnia, and they'll work seamlessly.

Leave a Comment