Blog
  • AI Gateway
  • AI Security
  • AIOps
  • API Security
  • API Gateway
    • API Management
    • API Development
    • API Design
    • Automation
    • Service Mesh
    • Insomnia
  1. Home
  2. Blog
  3. Product Releases
  4. Introducing Insomnia 9.0 with Pre-request Scripting, Improved Offline Access, API Mocking, and 100+ Improvements
Product Releases
April 24, 2024
4 min read

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

Marco Palladino
CTO and Co-Founder of Kong
Topics
Insomnia
Share on Social

More on this topic

Videos

Keeping You Up (to Speed) With Insomnia

Videos

Insomnia Projects

See Kong in action

Accelerate deployments, reduce vulnerabilities, and gain real-time visibility. 

Get a Demo

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.

Pre-request scripting

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.

Improved offline access

In this new 9.0 release, we’ve significantly improved the offline usage of Insomnia for those users who are working in restricted environments or have an unreliable internet connection:

  • Users are not required to log in every time the application starts. Instead, we’ll remember the user session for 30 days in the desktop application and avoid requesting they log in again during that time frame.
  • We’ve also improved the experience when starting the application while being offline, by removing an application error that used to pop up when starting the application.

We've resolved an issue when starting Insomnia while offline.

Of course, the Scratch Pad is available for usage offline as well and without an account, and whether you decide to log in to your account or not, the data can be still stored fully locally based on your project settings. Data can be stored in the following backends on a per-project basis:

  • In the cloud via Cloud Sync for ease of collaboration and fully encrypted
  • Fully locally via Local Vault to keep data entirely local even after logging in
  • On a third-party Git repository via Git Sync that doesn’t require cloud access

ℹ️ Your data can be local even after logging in to Insomnia.

With Insomnia, you’re in full control of where your data — like collections and test and design documents — are stored.

Additionally, Insomnia organization owners can also fully mandate top-down storage backends for all an organization’s projects using Storage Control. By doing so, the collaborators of an organization are forced to store their data in the desired storage type.

API mocking

Insomnia's capabilities just got better with the release of our built-in API mocking feature that can be used in the cloud or locally. This means that you can now use Insomnia to:

  1. Design APIs
  2. Debug APIs
  3. Test APIs
  4. Mock APIs
  5. Implement CI/CD automation with the Insomnia CLI to run tests and linting for QA.

With API mocking, teams can reduce the coordination required between the backend and frontend by creating API mock routes with a predefined response and status code — on a custom route that we can configure — so that you can start building on top of an agreed-upon API interface even before the underlying API implementation is complete.

API mocks can be seamlessly hosted in the cloud by Insomnia for ease of sharing and collaboration, or they can run on a self-hosted mock server locally for full control.

Global search

When working across several different projects and organizations, it can be challenging to search for what you're looking for. To make it easier to find your collections, tests, design specs (and now API mocks too) we have introduced a new global search function that will search for your files across every Insomnia organization.

This capability will improve your productivity and make it even easier to immediately find what you're looking for.

Improved collaboration and more

When collaborating with either Cloud Sync or Git Sync, you can now better visualize what changes are being committed and pushed using the new in-app diff viewer.

Also, we're now automatically pulling files like collections, documents, mocks, and tests in the dashboard without the need to manually pull them yourself. These files will show as “Unsynced” and will be fully downloaded simply by clicking on them.

You can now also hide the “Organizations” sidebar by using the new toggle in the footer of Insomnia, and show it again by pressing the button again. This allows you to have more screen space to debug your collections.

The future of Insomnia

We have doubled down on the shipping velocity of Insomnia, and in the following months, you will see even more capabilities like:

🔮 Post-request scripting (shipping very soon)

🔮 Multiple tabs

🔮 Folder-level authentication and settings

🔮 Git Sync on a per-project basis

🔮 Global environment variables

🔮 A new YAML format for collaborating better in Insomnia

🔮 A more advanced RBAC for collaboration

🔮 A revamped plugin ecosystem

🔮 And more!

This wouldn’t have been possible without the changes made last year to drive the product to a path of sustainable development and growth, and we're driving the roadmap based on the feedback received on GitHub issues and discussions. So please send your feedback and suggestions, since there's a high likelihood that they will be built for the upcoming releases.

Get started for free with Kong Insomnia 9.0 today.

Topics
Insomnia
Share on Social
Marco Palladino
CTO and Co-Founder of Kong

Recommended posts

Kong Gateway Enterprise 3.8.x.x EOL

Kong Logo
Product ReleasesSeptember 23, 2025

As of September 2025, Kong Gateway Enterprise 3.8 will enter its End Of Life (EOL) phase and will no longer be fully supported by Kong. Following this, Kong Gateway Enterprise 3.8 will enter a 12-month sunset support period, focused on helping cus

Andrew Jessup

Kong Mesh 2.12: SPIFFE/SPIRE Support and Consistent XDS Resource Names

Kong Logo
Product ReleasesSeptember 18, 2025

We're very excited to announce Kong Mesh 2.12 to the world! Kong Mesh 2.12 delivers two very important features: SPIFFE / SPIRE support, which provides enterprise-class workload identity and trust models for your mesh, as well as a consistent Kuma R

Justin Davies

Announcing terraform-provider-konnect v3

Kong Logo
Product ReleasesAugust 22, 2025

It’s been almost a year since we released our  Konnect Terraform provider . In that time we’ve seen over 300,000 installs, have 1.7 times as many resources available, and have expanded the provider to include data sources to enable federated managem

Michael Heap

Announcing Kubernetes Ingress Controller 3.5

Kong Logo
Product ReleasesJuly 17, 2025

We're happy to announce the 3.5 release of Kong Ingress Controller (KIC).  This release includes the graduation of combined services to General Availability, support for connection draining, as well as the start of deprecating support for some Ingre

Justin Davies

Announcing Mesh Manager Support in Konnect Terraform Provider

Kong Logo
Product ReleasesJuly 17, 2025

We’re excited to announce the beta support for Mesh Manager in the Konnect Terraform Provider — a new tool that brings the power of infrastructure-as-code to Kong’s Service Mesh management platform. This provider enables engineering teams to decla

Krzysztof Słonka

Kong Gateway Enterprise 3.11 Makes APIs & Event Streams More Powerful

Kong Logo
Product ReleasesJuly 9, 2025

Update Includes Data Orchestration, CyberArk Support, Solace Integration, and Kafka Schema Validation We’re excited to bring you Kong Gateway Enterprise 3.11 with compelling new features to make your APIs and event streams even more powerful, includ

Anthony Gatti

Kong's Dedicated Cloud Gateways: A Deep Dive

Kong Logo
Product ReleasesJune 18, 2025

In case you missed it, we recently made a big announcement around beta GCP support for Kong’s Dedicated Cloud Gateways (DCGWs) . There’s a lot of good stuff in there, but TL;DR DCGWs now support all three of the major cloud service providers (CSPs)

Michael Field

Ready to see Kong in action?

Get a personalized walkthrough of Kong's platform tailored to your architecture, use cases, and scale requirements.

Get a Demo
Powering the API world

Increase developer productivity, security, and performance at scale with the unified platform for API management, AI gateways, service mesh, and ingress controller.

Sign up for Kong newsletter

Platform
Kong KonnectKong GatewayKong AI GatewayKong InsomniaDeveloper PortalGateway ManagerCloud GatewayGet a Demo
Explore More
Open Banking API SolutionsAPI Governance SolutionsIstio API Gateway IntegrationKubernetes API ManagementAPI Gateway: Build vs BuyKong vs PostmanKong vs MuleSoftKong vs Apigee
Documentation
Kong Konnect DocsKong Gateway DocsKong Mesh DocsKong AI GatewayKong Insomnia DocsKong Plugin Hub
Open Source
Kong GatewayKumaInsomniaKong Community
Company
About KongCustomersCareersPressEventsContactPricing
  • Terms•
  • Privacy•
  • Trust and Compliance•
  • © Kong Inc. 2025