Reference: Integration with Insomnia API Client
You can upload a Tanium Gateway example requests json file to the Insomnia API client, configure communications between Insomnia and the Tanium Server, and submit example requests and receive responses. Insomnia can also parse the example requests and generate code samples based on the requests.
Prerequisites
-
Download the Insomnia API client and install it on an endpoint that can bidirectionally communicate with the Tanium Server. Ensure that your Insomnia API client version supports importing the Insomnia v4 json file format.
-
Download one of the following JSON files that contains Tanium Gateway Insomnia example requests:
-
Tanium Gateway Insomnia example requests collection (json file) through January 2026
-
new Tanium Gateway Insomnia example requests (json file) added after February 2025 (as of August 2025)
-
Tanium Gateway Insomnia example requests collection (json file) through August 2025
-
Tanium Gateway Insomnia example requests collection (json file) through January 2025
-
new Tanium Gateway Insomnia example requests (json file) added after August 2024 (as of January 2025)
-
Tanium Gateway Insomnia example requests collection (json file) through November 2024
-
new Tanium Gateway Insomnia example requests (json file) added after May 2024 (as of August 2024)
-
Tanium Gateway Insomnia example requests collection (json file) through August 2024
-
-
In Tanium Console, create a user account for the integration. Add this user to the Gateway User role, and any other roles based on the Tanium solutions against which you want to submit requests. For more information about how to create a user, see Managing users. For more information about supported Tanium solutions, see Solution dependencies.
Note: If you create an integration user in Tanium Console, you must also create a matching integration user in the identity provider that you use for Tanium. For more information, see Create a user and User authentication. -
In Tanium Console, create an API token for this user account and copy the token to your clipboard. For more information, see Create an API token.
Configure Insomnia to communicate with Tanium
Verify integration
Generate code example from example request
- In the Insomnia client, right-click an example, then select Generate Code.
- Select a language from the dropdown list, then an associated library from the dropdown list. The code example updates as you select a language and library.