# TheHive node

Use the TheHive node to automate work in TheHive, and integrate TheHive with other applications. n8n has built-in support for a wide range of TheHive features, including creating alerts, counting tasks logs, cases, and observables.

On this page, you'll find a list of operations the TheHive node supports and links to more resources.

TheHive and TheHive 5

n8n provides two nodes for TheHive. Use this node (TheHive) if you want to use TheHive's version 3 or 4 API. If you want to use version 5, use [TheHive 5](../n8n-nodes-base.thehive5/).

Credentials

Refer to [TheHive credentials](../../credentials/thehive/) for guidance on setting up authentication.

## Operations

The available operations depend on your API version. To see the operations list, create your credentials, including selecting your API version. Then return to the node, select the resource you want to use, and n8n displays the available operations for your API version.

- Alert
- Case
- Log
- Observable
- Task

## Templates and examples

**Analyze emails with S1EM**

by v1d1an

[View template details](https://n8n.io/workflows/1602-analyze-emails-with-s1em/)

**Weekly Shodan Query - Report Accidents**

by n8n Team

[View template details](https://n8n.io/workflows/1977-weekly-shodan-query-report-accidents/)

**Create, update and get a case in TheHive**

by Harshil Agrawal

[View template details](https://n8n.io/workflows/808-create-update-and-get-a-case-in-thehive/)

[Browse TheHive integration templates](https://n8n.io/integrations/thehive/), or [search all templates](https://n8n.io/workflows/)

## What to do if your operation isn't supported

If this node doesn't support the operation you want to do, you can use the [HTTP Request node](../../core-nodes/n8n-nodes-base.httprequest/) to call the service's API.

You can use the credential you created for this service in the HTTP Request node:

1. In the HTTP Request node, select **Authentication** > **Predefined Credential Type**.
1. Select the service you want to connect to.
1. Select your credential.

Refer to [Custom API operations](../../../custom-operations/) for more information.

## Related resources

n8n provides a trigger node for TheHive. You can find the trigger node docs [here](../../trigger-nodes/n8n-nodes-base.thehivetrigger/).

Refer to TheHive's documentation for more information about the service:

- [Version 3](https://docs.thehive-project.org/thehive/legacy/thehive3/api/)
- [Version 4](https://docs.thehive-project.org/cortex/api/api-guide/)
