TheHive 5 Trigger node
Use the TheHive 5 Trigger node to respond to events in TheHive and integrate TheHive with other applications. n8n has built-in support for a wide range of TheHive events, including alerts, cases, comments, pages, and tasks.
On this page, you’ll find a list of events the TheHive5 Trigger node can respond to and links to more resources.
Note
TheHive and TheHive 5 n8n provides two nodes for TheHive. Use this node (TheHive 5 Trigger) if you want to use TheHive’s version 5 API. If you want to use version 3 or 4, use TheHive Trigger.
Note
Examples and templates For usage examples and templates to help you get started, refer to n8n’s TheHive 5 Trigger integrations page.
Events
Alert
Created
Deleted
Updated
Case
Created
Deleted
Updated
Comment
Created
Deleted
Updated
Observable
Created
Deleted
Updated
Page
Created
Deleted
Updated
Task
Created
Deleted
Updated
Task log
Created
Deleted
Updated
Configure a webhook in TheHive
To configure the webhook for your TheHive instance:
Copy the testing and production webhook URLs from TheHive Trigger node.
Add the following lines to the
application.conffile. This is TheHive configuration file:notification.webhook.endpoints = [ { name: TESTING_WEBHOOK_NAME url: TESTING_WEBHOOK_URL version: 1 wsConfig: {} includedTheHiveOrganisations: ["ORGANIZATION_NAME"] excludedTheHiveOrganisations: [] }, { name: PRODUCTION_WEBHOOK_NAME url: PRODUCTION_WEBHOOK_URL version: 1 wsConfig: {} includedTheHiveOrganisations: ["ORGANIZATION_NAME"] excludedTheHiveOrganisations: [] } ]
Replace
TESTING_WEBHOOK_URLandPRODUCTION_WEBHOOK_URLwith the URLs you copied in the previous step.Replace
TESTING_WEBHOOK_NAMEandPRODUCTION_WEBHOOK_NAMEwith your preferred endpoint names.Replace
ORGANIZATION_NAMEwith your organization name.Execute the following cURL command to enable notifications:
curl -XPUT -uTHEHIVE_USERNAME:THEHIVE_PASSWORD -H 'Content-type: application/json' THEHIVE_URL/api/config/organisation/notification -d ' { "value": [ { "delegate": false, "trigger": { "name": "AnyEvent"}, "notifier": { "name": "webhook", "endpoint": "TESTING_WEBHOOK_NAME" } }, { "delegate": false, "trigger": { "name": "AnyEvent"}, "notifier": { "name": "webhook", "endpoint": "PRODUCTION_WEBHOOK_NAME" } } ] }'