Use the TheHive integration to manage cases and create alerts in Torq workflows.
Get an API Key from TheHive
Log into your Hive account.
Go to My profile > API info.
Copy the generated API key.
Create a Hive Steps Integration in Torq
In Torq, go to Build > Integrations > Steps > TheHive.
Click Add.
Give your integration a unique and relevant name.
Enter your Hive API Key.
Use The Hive Steps in Torq
List All Cases
Enter the URL for your Hive environment.
The step will return a list of all your cases, which will most likely be used as an input parameter for subsequent steps, such as Get a case or Update a case.
Delete a Case
In the Case ID field, enter ##{{$.list_all_cases.api_object.X._id}}
Enter your Hive URL.
The specific case will be deleted.
Search Cases
Enter your Hive URL.
Click on Manage Parameters.
Add and fill out the parameters that are important to your search, such as:
Search Description: Returns cases with this description (must be an exact match).
Search Severity: Returns cases with this severity level.
Search Tags: Returns cases with these tags.
Create an Alert
The following are required for this step:
Alert Desc: Enter a description for the alert.
Alert Source: Enter where the alert will be coming from.
Alert Source Ref: A unique value identifying the source.
Alert Type: What type of event this alert functions for.
Additionally, you can give the alert a title.
Enter your Hive URL.