Skip to content
TheHive logo

Connectors / Security and compliance · HTTP Connector

Automate TheHive with Tray.ai

Create an alert, create a case and create a task in a case in TheHive. Connect TheHive to the rest of your security and compliance stack with Tray.ai.

What can you do with TheHive on Tray.ai?

TheHive is a security incident response platform from StrangeBee where security teams collect alerts, open and work cases, track tasks and record observables during investigations. Tray.ai connects to TheHive through the HTTP Connector, so your workflows can call the TheHive API alongside the rest of your stack.

  • Create an alert in TheHive when your monitoring tool detects suspicious activity.
  • Create a case from an alert and notify the security on-call in your team chat.
  • When your help desk logs a phishing report, create a task in a case for the security analyst.
Connects through
HTTP Connector
Authentication
A bearer token

Set it up

Connect TheHive to Tray.ai

Each step uses TheHive's own API details, from its documentation.

Step 1

Save TheHive's API token

Save the token TheHive issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.

Step 2

Import a request from TheHive's docs

Add an HTTP Client step and paste a cURL example from TheHive's API docs. Tray.ai fills in the method, URL, headers, and query.

Step 3

Start with “Get an alert”

It's one of 22 documented actions, under Alerts. The response comes back as data the next step can map into your other apps.

Step 4

Hand it to an AI agent

Wrap “Create an alert” and “Update an alert” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with TheHive

Each one uses actions and events from TheHive's own API documentation.

Create TheHive alerts from Datadog monitors

When

A monitor triggers in Datadog

Then

  1. Create an alert with the monitor details
  2. Add an observable to an alert for the affected host

With Datadog

Update TheHive cases when Jira fixes are resolved

When

An issue is resolved in Jira

Then

  1. Update a task in the linked case as done
  2. Add a comment to a case with the fix details

With Jira

Open TheHive cases for ServiceNow security incidents

When

A security incident is created in ServiceNow

Then

  1. Create a case with the incident details
  2. Create a task in a case for triage

With ServiceNow

Apps you can build on TheHive data

Internal tools your team can build with an AI assistant, each one using TheHive calls from its API documentation.

Alert triage queue

Opens a security alert and lets an analyst update it, comment on it or turn it into a case.

Case task tracker

Shows a case's tasks and lets analysts add tasks, update status and add comments.

Indicator lookup

Opens an observable on a case and lets an analyst update its details.

Give your AI agents TheHive tools

Build an MCP server on TheHive in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Create an alert
  • Create a case
  • Create a task in a case
  • Add an observable to a case
  • Add a comment to a case
  • Get an alert
  • Update an alert
  • Delete an alert

What the TheHive API covers

5 resources and 22 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Alerts

  • Create an alert
  • Get an alert
  • Update an alert
  • Delete an alert
  • Create a case from an alert

Cases

  • Create a case
  • Get a case
  • Update a case
  • Delete a case
  • Merge cases

Tasks

  • Create a task in a case
  • Get a task
  • Update a task
  • Delete a task

Observables

  • Add an observable to a case
  • Add an observable to an alert
  • Get an observable
  • Update an observable

Comments

  • Add a comment to a case
  • Add a comment to an alert
  • Update a comment
  • Delete a comment

Checked against TheHive's own documentation on 2026-10-22

docs.strangebee.com/thehive/api-docs

Frequently asked questions

What can a Tray.ai workflow do in TheHive?

+

The TheHive API documents 22 actions across 5 resources (Alerts, Cases, Tasks, Observables, Comments). For example: Create an alert; Create a case; Create a task in a case. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with TheHive?

+

The TheHive API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See TheHive working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.