Resources · n8n integration

TheHive 5 n8n integrationAutomate TheHive 5 with n8n.

The TheHive 5 n8n integration is what stops incident response from being a copy and paste job. The node exposes 48 operations across 8 resources, from alerts and cases to comments, observables and task logs, and the trigger listens to 20 events. Written for SOC and IT teams who run TheHive themselves.

Verified Trustpilot reviews · AI, automation & growth agency

Why automate

What does a TheHive 5 n8n integration actually give you?

TheHive 5 exposes a REST API, and n8n ships a node that speaks it. Instead of clicking through the web interface to raise an alert, attach a report or close a case, the sequence gets built once in n8n and runs on its own. The node covers 8 resources and 48 operations, and a companion trigger node starts a workflow the moment something moves in TheHive.

Start with the scene every SOC knows. A detection rule fires, and someone retypes the details into TheHive. With the node, the detection tool posts to a workflow, the workflow creates the alert with its observables already attached, and the analyst opens something that an enrichment step has looked at first. Nothing was retyped.

Second scene, the write-up that never gets written. A case closes and the report waits. A workflow started by the case event pulls the timeline, formats it, and drops the result into Google Sheets or a row in Postgres where the monthly review reads it. Two published templates show the shape: one saves Qualys reports into TheHive through an HTTP Request node, the other announces every new case in Slack.

Third, keeping people informed. Comments, task logs and status changes are what a case is made of, and they stay invisible to anyone who does not open the interface. A workflow mirrors them where the team already works, a channel or a Gmail thread, then writes the answers back as comments so the case stays the single record.

Where the node stops, the HTTP Request node takes over. The 48 operations cover the objects you touch daily, alerts, cases, comments, observables, tasks, task logs and pages, plus a query operation for reading through TheHive's own query language. Anything outside that list is still one HTTP call away, with the same credential reused through predefined authentication. Our n8n review goes into what that trade-off feels like over a year.

The limits are worth knowing before you build. Searches paginate, so Return All decides whether a report is complete or cut short. The trigger reacts to the 20 events it knows and to nothing else. And this node speaks the version 5 API only: an instance still on version 3 or 4 uses the other TheHive node instead.

Connect

How do you connect n8n to TheHive 5 ?

  1. 01

    Generate an API key in TheHive

    TheHive 5 authenticates with an API key, and only accounts holding the orgAdmin or superAdmin role can create one. With an orgAdmin account, open Organization > Create API Key and pick the user the key belongs to. With superAdmin, the same action sits under Users > Create API Key. The key carries that user's permissions, so choose an account allowed to do what the workflow will do, and nothing beyond it.

  2. 02

    Create the credential in n8n

    In n8n, open Credentials and add a TheHive 5 credential, which is the stored login the node reuses. Paste the API Key you just generated, then fill URL with the address of your TheHive server. If that server answers on a self-signed certificate, common on an internal instance, turn on Ignore SSL Issues so n8n connects even when certificate validation fails. Save it once and every TheHive node offers it in its dropdown.

  3. 03

    Test it on a read operation first

    Add a TheHive 5 node, choose the Case resource and the Search operation, leave the filters empty, and run the node on its own. A list of cases coming back means the key, the URL and the network path are all fine. Starting with a read is the whole point: if something is off, nothing has been written into TheHive. Once it answers, swap in the operation you actually need.

Triggers

What starts a TheHive workflow?

TheHive 5 Trigger is the node that starts a workflow when something happens in TheHive 5. It listens to 20 events, listed below by family. Pick one or several, activate the workflow: n8n registers the webhook on your TheHive 5 account.

What you see in n8n

Every event, by family

One row per object, one chip per action. The event to tick in the node is object.action; hover a chip to read exactly when it fires.

alert_create.*1
  • alert_create.
    • alert_create
alert_delete.*1
  • alert_delete.
    • alert_delete
alert_update.*1
  • alert_update.
    • alert_update
case_create.*1
  • case_create.
    • case_create
case_delete.*1
  • case_delete.
    • case_delete
case_update.*1
  • case_update.
    • case_update
comment_create.*1
  • comment_create.
    • comment_create
comment_delete.*1
  • comment_delete.
    • comment_delete
comment_update.*1
  • comment_update.
    • comment_update
log_create.*1
  • log_create.
    • log_create
log_delete.*1
  • log_delete.
    • log_delete
log_update.*1
  • log_update.
    • log_update
observable_create.*1
  • observable_create.
    • observable_create
observable_delete.*1
  • observable_delete.
    • observable_delete
observable_update.*1
  • observable_update.
    • observable_update
page_create.*1
  • page_create.
    • page_create
page_delete.*1
  • page_delete.
    • page_delete
page_update.*1
  • page_update.
    • page_update
task_create.*1
  • task_create.
    • task_create
task_update.*1
  • task_update.
    • task_update

The trigger also accepts * (any event). Handy for logging, dangerous in production.

Configuration notes

01Set up the TheHive 5 TriggerThe trigger node starts a workflow when something happens in TheHive. It works by webhook, a URL that TheHive calls the moment an event fires, so the workflow reacts within seconds and no schedule is involved. n8n registers that URL with TheHive when you activate the workflow.

The trigger node starts a workflow when something happens in TheHive. It works by webhook, a URL that TheHive calls the moment an event fires, so the workflow reacts within seconds and no schedule is involved. n8n registers that URL with TheHive when you activate the workflow.

Key parameters

  • Events: the list of events that wake the workflow. Tick the ones you care about, or use the wildcard entry * to receive all 20 and sort them out further down the workflow.
  • Filters: conditions applied to the incoming event, each built from a Field, an Operator and a Value. Events that do not match are dropped before anything runs.
  • Output Only Data: turned on, the trigger hands the next node the event data alone and leaves the headers out.
When to use it
whenever the workflow has to react to analysts working inside TheHive, rather than the other way round.
02Alert eventsThree events follow the life of an alert: alert_create when one appears, alert_update when it changes, alert_delete when it goes away. Most workflows start here, because an alert is the first thing an automated detection pushes into TheHive.

Three events follow the life of an alert: alert_create when one appears, alert_update when it changes, alert_delete when it goes away. Most workflows start here, because an alert is the first thing an automated detection pushes into TheHive.

Key parameters

  • Events: tick the three alert entries on their own to keep the workflow out of case traffic.
  • Filters: paired with alert_update, a condition on the field that changed stops the workflow waking up on every small edit.
Use cases
on alert_create, a workflow enriches the observables against a threat intelligence source and posts the verdict as a comment, so the analyst opens an alert that already carries an opinion. On alert_delete, it writes one audit line and nothing more, which is enough to answer the question nobody can answer three months later, who removed that alert and when.
03Case eventsCases have the same three moments, case_create, case_update and case_delete. A case is what a confirmed incident looks like in TheHive, so these are the events the rest of the company wants to hear about, not the alert noise upstream.

Cases have the same three moments, case_create, case_update and case_delete. A case is what a confirmed incident looks like in TheHive, so these are the events the rest of the company wants to hear about, not the alert noise upstream.

Key parameters

  • Events: the three case entries alone give you a clean incident feed.
  • Output Only Data: leave it on when the next node maps the event straight into a message, since the headers add nothing there.
Use cases
case_create opens a channel and posts the summary, which is exactly the shape of the published template that notifies a Slack workspace. case_update keeps an on-call roster in sync with reality, and case_delete archives the channel instead of leaving an orphan thread behind in the workspace.
04Task, log, observable, comment and page eventsThe remaining events follow the work happening inside a case. Tasks fire task_create and task_update. Task logs fire log_create, log_update and log_delete. Observables, comments and pages each have their own create, update and delete event, which lets a workflow watch one object type and ignore everything else.

The remaining events follow the work happening inside a case. Tasks fire task_create and task_update. Task logs fire log_create, log_update and log_delete. Observables, comments and pages each have their own create, update and delete event, which lets a workflow watch one object type and ignore everything else.

Key parameters

  • Events: tick only the object you follow. A single workflow listening to all of them becomes painful to debug.
  • Filters: earn their place here, since comment and log events fire constantly on an active case.
Use cases
task_update drives a checklist, so a finished task moves a card on the board the team already uses. observable_create sends every new indicator to an enrichment routine. comment_create mirrors analyst notes into the incident channel.
Actions

What can the TheHive node do?

The TheHive 5 node exposes 48 operations across 8 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.

Resources × operations matrix
ResourceCreateGetUpdateCreateAdd AttachmentDeleteDelete AttachmentDelete CaseDeleteDeleteDeleteDeleteDeleteExecute AnalyzerExecute QueryExecute ResponderGet AttachmentGet TimelineMerge Into CasePromote to CaseSearchUpdate Status
Alert
Case
Comment
Observable
Page
Query
Task
Task Log

Alert

9 operations
01

Create an alert

alert.create

What you see in n8n

Notes & use cases

Pushes a new alert into TheHive from whatever raised it, a SIEM query, a reporting mailbox or a scanner, and returns the created alert so the rest of the workflow can act on it.

Key parameters

  • Fields: the resource mapper lists the alert properties TheHive expects and lets you map each one, either to a fixed value or to an expression such as {{ $json.field }} reading the previous node.
  • Observables: optional, attaches observables at creation time instead of a second call.
Use cases
a mailbox workflow parses reported phishing messages and files one alert per report, with the sender and the links already in place through Observables.
02

Delete an alert

alert.deleteAlert

What you see in n8n

Notes & use cases

Removes an alert from TheHive for good. It is the operation for noise that never deserved a triage queue, such as the same scanner finding arriving twice a day.

Key parameters

  • Alert: the resource locator, meaning you either pick the alert from the list n8n loads or pass its identifier from an earlier node.
Use cases
a nightly cleanup searches the alerts matching a known false positive pattern and deletes them one by one, so the queue an analyst sees in the morning only holds what needs a human.
03

Execute responder on an alert

alert.executeResponder

What you see in n8n

Notes & use cases

Fires one of the responders registered on your instance against an alert, so the reaction happens inside the workflow instead of a manual click.

Key parameters

  • Alert: the alert the responder runs on, chosen in the list or resolved from a previous node.
  • Responder Name or ID: pick the responder by name in the dropdown, or pass its ID with an expression when the choice depends on what the alert contains.
Use cases
an alert carrying a malicious sender triggers the responder that blocks the address, and the workflow moves on to record what happened.
04

Get an alert

alert.get

What you see in n8n

Notes & use cases

Reads a single alert and returns its current state, which is how a workflow checks what changed before deciding anything.

Key parameters

  • Alert: the alert to read, selected in the list or passed as an identifier.
  • Include Similar Alerts: adds the alerts TheHive considers close to this one.
  • Include Similar Cases: adds the cases TheHive considers close to this one.
Use cases
before anything irreversible, the workflow reads the alert with both similarity options on and hands it to a human when TheHive already knows a close case.
05

Merge an alert into a case

alert.merge

What you see in n8n

Notes & use cases

Folds an existing alert into a case that is already open, so its observables and its context land in the investigation instead of a parallel queue.

Key parameters

  • Alert: the alert being absorbed.
  • Case: the destination case, picked from the list or resolved from a previous step.
Use cases
a second alert lands on a host already covered by an open case. A search finds that case, the merge sends the alert into it, and the team keeps one thread instead of two half-documented ones.
06

Promote an alert to a case

alert.promote

What you see in n8n

Notes & use cases

Turns an alert into a full case, the moment triage stops and the investigation starts.

Key parameters

  • Alert: the alert being promoted.
  • Case Template Name or ID: optional, applies one of your case templates so the new case opens with its tasks already laid out. Pick it in the list, or pass the ID through an expression when the template depends on the alert.
Use cases
an alert that an enrichment step flagged as confirmed gets promoted with the ransomware template, and the analyst finds the checklist waiting.
08

Update an alert

alert.update

What you see in n8n

Notes & use cases

Writes new values onto an alert that already exists, leaving everything you do not map untouched.

Key parameters

  • Fields: the resource mapper again, this time listing the alert properties that can be modified. Map only what changes, from a static value or from an expression like {{ $json.field }}.
Use cases
an enrichment node scores the sender reputation, and the update writes that score back onto the alert so triage sees it in the interface rather than in an execution log nobody opens.
09

Update an alert status

alert.status

What you see in n8n

Notes & use cases

Changes only the status of an alert, the lightest way to move it through triage.

Key parameters

  • Alert: the alert to move.
  • Status Name or ID: the target status, taken from the list your instance defines, or supplied as an ID by expression when the status depends on earlier logic.
Use cases
an automated check clears an alert as benign and sets it to the status your team uses for closed items, with no analyst click involved and a trace left in the workflow history.

Case

10 operations
10

Add attachment to a case

case.addAttachment

What you see in n8n

Notes & use cases

Uploads one or more files onto an open case, so the evidence sits next to the investigation rather than in a mailbox.

Key parameters

  • Case: the case receiving the files.
  • Attachments: the binary items to upload, listed one by one.
  • Attachment Field Name: the name of the binary field carrying the file in the incoming item.
  • Rename Files: on, a file whose name already exists on the case gets renamed instead of colliding.
Use cases
a scanner report downloaded by an HTTP Request node is attached to the matching case the same minute it lands.
11

Create a case

case.create

What you see in n8n

Notes & use cases

Opens a case in TheHive and returns it, which gives the workflow something to hang tasks, comments and observables on.

Key parameters

  • Fields: the resource mapper exposes the case properties TheHive expects, each mapped to a fixed value or to data coming from the node before it.
Use cases
a monitoring alarm on a production database opens a case at three in the morning, so the person on call starts from a filled record instead of a blank form and a half-remembered chat message.
12

Delete attachment from a case

case.deleteAttachment

What you see in n8n

Notes & use cases

Detaches a file from a case and deletes it.

Key parameters

  • Case: the case holding the file.
  • Attachment Name or ID: the attachment itself, chosen from the list n8n loads for that case, or given as an ID through an expression.
Use cases
a sample that should never have been uploaded gets removed as soon as a reviewer flags it, and the same workflow leaves a note on the case so the removal is not a mystery three weeks later.
13

Delete an case

case.deleteCase

What you see in n8n

Notes & use cases

Deletes an entire case from TheHive, along with the tasks, comments and attachments hanging off it. There is no undo, so most teams put a manual approval step in front of it.

Key parameters

  • Case: the case to delete, picked in the list or resolved from an identifier carried by the previous node.
Use cases
a workflow that opens throwaway cases while a detection rule is being tuned deletes each one at the end of the run, which keeps the instance readable.
14

Execute responder on a case

case.executeResponder

What you see in n8n

Notes & use cases

Runs a responder against a whole case rather than a single alert or observable.

Key parameters

  • Case: the case the responder acts on.
  • Responder Name or ID: the responder to run, selected by name or resolved as an ID with an expression.
Use cases
closing a confirmed incident runs the responder that notifies the affected business unit, and the workflow waits for its result before it moves on to the reporting step.
15

Get a case

case.get

What you see in n8n

Notes & use cases

Fetches one case and returns its fields as they stand right now.

Key parameters

  • Case: the case to read, taken from the list or from an identifier passed by an earlier node.
Use cases
a chat command sends a case reference to n8n, the workflow reads the case and answers in the channel with its current state, so nobody has to open the interface just to check where things stand.
16

Get attachment from a case

case.getAttachment

What you see in n8n

Notes & use cases

Downloads a file stored on a case and hands it to the next node as binary data.

Key parameters

  • Case: the case holding the file.
  • Attachment Name or ID: which attachment to download.
  • File Name: renames the file as it is downloaded.
  • Data Property Name: the binary field the file is written to, which is the name the next node has to read.
Use cases
a malware sample is pulled from a case and forwarded to an external sandbox by an HTTP Request node.
17

Get timeline of a case

case.getTimeline

What you see in n8n

Notes & use cases

Returns the chronology TheHive keeps for a case, so a workflow reads what happened and when without rebuilding it from separate queries.

Key parameters

  • Case: the case whose timeline you want.
Use cases
at closing time the workflow pulls the timeline and writes it into the post-incident report, which removes the copy and paste pass an analyst usually does at the worst possible moment, right after a long night.
19

Update a case

case.update

What you see in n8n

Notes & use cases

Applies changes to a case that already exists, field by field.

Key parameters

  • Fields: the resource mapper lists what can be modified on a case. Anything you leave unmapped stays as it was, and the rest takes a value or an expression such as {{ $json.field }}.
Use cases
once a task log records that containment is done, the workflow updates the case so its state matches reality, instead of waiting for someone to remember at the end of the shift.

Comment

4 operations
20

Create a comment in a case or alert

comment.add

What you see in n8n

Notes & use cases

Posts a comment, which is how an automated step leaves a readable trace for whoever picks the file up later.

Key parameters

  • Add to: whether the comment lands on a case or on an alert.
  • Case: the target, resolved from the list or from an identifier.
  • Message: the text itself, usually assembled from the nodes before it.
Use cases
after an enrichment call, the workflow comments the verdict so triage reads it in context rather than in a separate tool.
21

Delete a comment

comment.deleteComment

What you see in n8n

Notes & use cases

Removes a comment from the case or alert it was posted on.

Key parameters

  • Comment: the comment to delete, selected from the list or resolved as an identifier by an earlier step.
Use cases
an automated comment that duplicated a note already written by an analyst gets cleaned up on the spot, so the discussion thread stays readable for whoever joins the case tomorrow morning.
23

Update a comment

comment.update

What you see in n8n

Notes & use cases

Rewrites the text of a comment that is already posted.

Key parameters

  • Comment: the comment to rewrite.
  • Message: the new text, which replaces the old one entirely.
Use cases
a placeholder comment posted when a sandbox analysis starts gets rewritten with the verdict once the report comes back, so the case carries one clear line instead of a running commentary nobody rereads.

Observable

7 operations
24

Create an observable

observable.create

What you see in n8n

Notes & use cases

Adds an observable to a case or an alert, so the indicator sits inside the investigation instead of a chat thread.

Key parameters

  • Case: the case that receives the observable, picked from the list or passed as an expression like {{ $json.field }}.
  • Data Type: the kind of indicator, chosen from the list the node loads from your server.
  • Data: the value itself.
  • Attachments: files carried with the observable, added one entry at a time.
  • Fields: the resource mapper where the remaining observable fields get their values.
  • Create in: optional, switches the target between Case and Alert.
Use cases
a phishing mailbox workflow extracts the sender domain and writes it as an observable with the matching Data Type.
25

Delete an observable

observable.deleteObservable

What you see in n8n

Notes & use cases

Removes one observable from TheHive for good. Nothing else in the case moves, only that indicator disappears from the list.

Key parameters

  • Observable: the observable to remove, selected in the picker or built from an expression such as {{ $json.field }} when the identifier arrives from an earlier node.
Use cases
an enrichment workflow finds that an IP belongs to your own monitoring range, so it deletes the observable before an analyst spends time on it. Run a lookup first if you want to keep a trace of what was removed, because the operation is not reversible.
26

Execute analyzer on an observable

observable.executeAnalyzer

What you see in n8n

Notes & use cases

Runs one or more analyzers against an observable and hands the job to TheHive instead of a human clicking through the interface.

Key parameters

  • Observable: the observable to analyze.
  • Analyzer Names or IDs: one or several analyzers, picked from the list or given as identifiers through an expression.
  • Data Type: optional, the type of the observable, useful when the analyzer list depends on it.
Use cases
every hash dropped into a case gets sent to the analyzers you selected, and the workflow moves on without waiting for an analyst to open the observable.
27

Execute responder on an observable

observable.executeResponder

What you see in n8n

Notes & use cases

Fires a responder, the action side of TheHive, from a single observable. The responder does the work outside n8n and the node reports that it was launched.

Key parameters

  • Observable: the observable the responder acts on.
  • Responder Name or ID: the responder to run, chosen from the list or passed as an identifier with an expression.
Use cases
a malicious domain confirmed by an analyst goes to the blocking responder, and the same workflow then posts the result to the on-call channel.
28

Get an observable

observable.get

What you see in n8n

Notes & use cases

Reads a single observable back from TheHive, which is how a workflow checks what is currently stored before deciding anything.

Key parameters

  • Observable: the observable to read, selected in the picker or resolved from an expression such as {{ $json.field }}.
Use cases
a scheduled workflow reads the observable an hour after an analyzer ran, compares what it finds with the values it stored earlier, and stops there when nothing changed. Useful as a first step before an update, so the workflow does not overwrite work an analyst did in the meantime.
30

Update an observable

observable.update

What you see in n8n

Notes & use cases

Changes the values already stored on an observable. Only the fields you map are touched, the rest stays as the analyst left it.

Key parameters

  • Fields: the resource mapper that lists the observable fields and the value each one receives, typically an expression pointing at the item coming in.
Use cases
once an analyzer comes back on a suspicious URL, the workflow maps the verdict into the observable so the case reflects it without an analyst retyping anything. Map only what genuinely changed, since anything you fill is written over the current value.

Page

4 operations
31

Create a page

page.create

What you see in n8n

Notes & use cases

Writes a documentation page, either attached to a case or filed in the knowledge base, so procedures stop living in someone's notes.

Key parameters

  • Case: the case the page belongs to.
  • Title: the page name shown in the list.
  • Category: the grouping the page falls under.
  • Content: the body text, often built from data collected earlier in the workflow.
  • Create in: optional, Case or Knowledge Base.
Use cases
at the end of a containment run, the workflow assembles what happened into Content and files the page on the case.
32

Delete a page

page.deletePage

What you see in n8n

Notes & use cases

Takes a page out of a case or out of the knowledge base. The case itself is untouched, only that page and its content go away.

Key parameters

  • Case: the case the page currently sits in.
  • Page: the page to remove, picked from the list or resolved through an expression.
  • Delete From ...: optional, tells the node whether to look in the case or in the knowledge base.
Use cases
a cleanup workflow removes the draft page a previous automation created once the final version has been published.
34

Update a page

page.update

What you see in n8n

Notes & use cases

Edits a page that already exists, which keeps a procedure current instead of piling up near-identical copies.

Key parameters

  • Case: the case holding the page.
  • Page: the page to edit.
  • Update in: optional, Case or Knowledge Base.
  • Content: optional, the new body text.
  • Category, Title and Order: optional, the grouping, the name and the position of the page in the list.
Use cases
a nightly workflow rebuilds the Content of the on-call page from the current rota, and moves it up with Order so responders see it first.

Query

1 operation
35

Execute a query

query.executeQuery

What you see in n8n

Notes & use cases

Sends a raw query to TheHive Query API, which is the way out when the dedicated operations stop short of what you need.

Key parameters

  • Query: the query itself, an array of operations with the selection you want and, optionally, filtering, sorting and pagination.
Use cases
a reporting workflow asks for a cross-object selection no single operation covers, then loads the answer into the reporting database. Build the query against TheHive API documentation first, because a malformed one comes back as an error rather than an empty list.

Task

6 operations
36

Create a task

task.create

What you see in n8n

Notes & use cases

Opens a task inside a case, so the next step of an investigation is assigned and visible rather than implied.

Key parameters

  • Case: the case the task is created in, picked from the list or built from an expression such as {{ $json.field }}.
  • Fields: the resource mapper listing the task fields and the value each one takes.
Use cases
as soon as an alert is promoted, the workflow creates the three tasks the playbook always calls for, on the right case, with the same wording every time.
37

Delete an task

task.deleteTask

What you see in n8n

Notes & use cases

Pulls a task out of its case permanently. Use it on tasks an automation created, not on ones an analyst filled in.

Key parameters

  • Task: the task to remove, selected in the picker or resolved with an expression when the identifier comes from a search step.
Use cases
a playbook opened a containment task, the incident turned out to be a false positive, and the cleanup branch deletes the task so the case closes with an accurate history. There is no undo, so guard the branch with a condition.
38

Execute responder on a task

task.executeResponder

What you see in n8n

Notes & use cases

Launches a responder from a task rather than from an observable, which fits the actions a playbook step is supposed to trigger.

Key parameters

  • Task: the task the responder runs on.
  • Responder Name or ID: the responder to launch, chosen from the list or given as an identifier through an expression.
Use cases
the notification task of a playbook triggers the responder that warns the affected team, and the workflow continues to the next step without waiting for anyone to click.
39

Get a task

task.get

What you see in n8n

Notes & use cases

Fetches one task by its identifier, which is how a branch checks where a playbook step actually stands.

Key parameters

  • Task: the task to read, selected from the list or passed as an expression like {{ $json.field }}.
Use cases
a reminder workflow reads the task each morning and only sends a message when it is still open, which keeps the channel quiet on the days the team is ahead. Reading before writing also avoids racing an analyst who edited the task minutes earlier.
41

Update a task

task.update

What you see in n8n

Notes & use cases

Moves a task forward by changing its status or its owner, without touching anything else in the case.

Key parameters

  • Fields: the resource mapper that lists the task fields and the value each one receives, usually expressions pointing at the incoming item.
Use cases
when the responder of a playbook step reports back, the workflow maps the outcome onto the task so the case board reflects reality instead of an analyst updating it by hand later. Map only the fields that changed, since every field you fill overwrites what is there.

Task Log

7 operations
42

Add attachment to a task log

log.addAttachment

What you see in n8n

Notes & use cases

Evidence usually arrives after the note that describes it. This operation pushes one or more files onto a task log that already exists in TheHive, so the proof sits next to the write-up instead of in a shared drive nobody opens.

Key parameters

  • Task Log: the log that receives the files, picked from the list or passed as an ID through an n8n expression, a value read from the incoming item such as {{ $json.id }}.
  • Attachments: the collection of files to upload, one entry per file carried by the item.
Use cases
a sandbox report pulled by an HTTP Request node lands on the Task Log that opened the malware analysis.
43

Create a task log

log.create

What you see in n8n

Notes & use cases

Analysts type task logs by hand while they work a case. This operation writes one from the workflow, so an automated enrichment leaves the same visible trace inside the task as a human note.

Key parameters

  • Task: the task the new log belongs to, chosen from the list or given as an ID like {{ $json.taskId }}.
  • Fields: a resource mapper that fills the log content from the incoming item, field by field, with no hand-written JSON.
  • Attachments: optional files sent in the same call, so the note and its supporting file arrive together.
Use cases
a reputation lookup returns a verdict, and the workflow drops it into the triage Task as a fresh log.
44

Delete task log

log.deleteLog

What you see in n8n

Notes & use cases

Wrong task, duplicated note, leftover from a test run: removing a task log is sometimes the cleanest fix. The operation deletes the log itself, text and all, and there is nothing to undo afterwards.

Key parameters

  • Task Log: the log to remove, selected from the list or resolved by ID when the workflow already carries it from a previous step.
Use cases
a retry that fired twice leaves two identical entries on the same task, and a cleanup branch drops the second Task Log before the analyst opens the case.
45

Delete attachment from a task log

log.deleteAttachment

What you see in n8n

Notes & use cases

A log can lose one file and keep its text. That is what this operation does: it detaches a single file from a task log, while the note stays readable in the task timeline.

Key parameters

  • Task Log: the log holding the file, picked from the list or passed as an ID.
  • Attachment Name or ID: the file to detach, chosen from the list n8n loads for that log, or given as an ID through an expression.
Use cases
a sample uploaded to the wrong investigation is removed through Attachment Name or ID, and the analyst note explaining the mistake stays in place.
46

Execute responder on a task log

log.executeResponder

What you see in n8n

Notes & use cases

Responders are the actions TheHive can run on an object. Here the object is a task log, so a note written during an investigation becomes the input of an automated response instead of a dead end.

Key parameters

  • Task Log: the log the responder runs against, selected from the list or resolved by ID.
  • Responder Name or ID: the responder to run, picked from the list your instance exposes, or set with an expression when the choice depends on the incoming item.
Use cases
a log carrying a confirmed indicator triggers the blocking responder without anyone opening the Task Log by hand.
47

Get a task log

log.get

What you see in n8n

Notes & use cases

Reading one log back is what makes the rest of a workflow decidable. The operation returns a single task log, and the following nodes branch on what it contains.

Key parameters

  • Task Log: the log to read, chosen from the list or passed as an ID, typically one collected earlier in the run.
Use cases
a scheduled workflow fetches the Task Log written at the end of a containment step and posts its content to the on-call channel. Reference the returned values with {{ $json.field }}, replacing field with the key you see in the node output panel.
Need help

Need help automating TheHive 5 with n8n?

A person reads every message.

FAQ

TheHive and n8n, common questions

01Is the TheHive 5 n8n integration free?
Yes on the n8n side. The TheHive 5 node and its trigger ship with n8n, so there is nothing to install and no add-on to buy, whether you run n8n Cloud or a self-hosted instance under the Community Edition and its Sustainable Use licence. A workflow built on one runs on the other without a single change. What TheHive itself costs is a separate question this page does not answer, since it depends on how you run your own server. The credential you create for the node is reusable across workflows, so the second automation costs you nothing but the time to pick it from a dropdown.
02What credentials do you need to connect TheHive 5 to n8n?
An API key and a URL. TheHive 5 authenticates with an API key, which an account holding the orgAdmin or superAdmin role generates: with orgAdmin, go to Organization > Create API Key for the user you want; with superAdmin, the same action lives under Users > Create API Key. The URL is the address of your TheHive server. A third setting, Ignore SSL Issues, lets n8n connect even when certificate validation fails, which is what you need on an internal instance with a self-signed certificate. The key inherits the permissions of its user, so create it on an account allowed to read and write what your workflows touch.
03What are the limits of the TheHive node in n8n?
Two of them matter in practice. The node covers 48 operations across 8 resources, which is broad but not the entire API: anything outside that list goes through the HTTP Request node, which calls any TheHive endpoint while reusing the same credential through predefined authentication. The second is pagination. A search returns one page unless Return All is on, and with it off, Limit caps the result, which on a busy instance is the difference between a complete report and a truncated one. The node also ships an Execute Query operation when a plain search is not expressive enough for what you are after.
04Does the TheHive trigger react in real time?
Yes. The TheHive 5 Trigger works by webhook, meaning TheHive calls an n8n URL instead of n8n asking TheHive over and over on a timer. n8n registers that URL when you activate the workflow, and each event reaches the workflow within seconds, with no polling and no interval to tune. You decide which of the 20 events wake it in the Events parameter, and a wildcard entry catches all of them when you would rather sort things out later. Filters then drop the events whose field does not match your value, so a busy instance never floods a workflow built for one narrow case.
05n8n or Make for TheHive?
It depends on where the data has to stay. TheHive usually runs inside the perimeter, and n8n can run there too, in Docker or from npm, so alerts and observables never leave your network. Make is hosted only, with no self-hosting option, and billed per operation, which is predictable at low volume and much less so the night a noisy detection rule fires for hours. Make's visual editor is friendlier on day one. n8n asks a bit more at the start and gives you expressions, code and a self-hosted instance in return. For a SOC running TheHive on its own server, that usually settles it.
Hack'celeration Lab

Get our weekly integration tips.

No spam. Unsubscribe anytime.