TheHive
SOC incident response: cases, alerts, tasks and observables
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- TheHive URLRequiredHTTPS URL
- API keySecretRequired
- OrganizationOptional
Where to find them
- For TheHive 5.
- An organization administrator creates a “Service” type user (“Organization” → “Users” → “+”) with the minimum profile needed (e.g. read-only or analyst).
- On the page of the user click “Create” in the “API key” section and copy the key. With your own user: user menu → “Settings” → “API key”. The server must use https with a valid certificate.
Tools (3)
TheHive API request
THEHIVE_SEND_REQUESTAuthenticated call to the TheHive API ({url}/api/v1). Any endpoint of the API is allowed. Queries with POST /query {"query": [{"_name": "listCase"}, {"_name": "filter", "_eq": {"_field": "stage", "_value": "New"}}, {"_name": "sort", "_fields": [{"_createdAt": "desc"}]}, {"_name": "page", "from": 0, "to": 20}]} (also listAlert, listObservable; filters _and, _or, _not, _like, _in, _gte, _between…); observables of a case: [{"_name": "getCase", "idOrName": "…"}, {"_name": "observables"}] (or "tasks"). Others: GET /case/{id}, GET /alert/{id}, POST /case (creates a case), PATCH /case/{id}, POST /case/{id}/observable, POST /alert, POST /alert/{id}/case (turns it into a case).
Required scopes
No scopes required
Input
TheHive API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Recent cases
THEHIVE_LIST_CASESCases from newest to oldest (number, title, severity, status, stage, TLP, tags, assignee and date), filterable by stage, minimum severity and title text.
Required scopes
No scopes required
Input
Recent cases input Name Type Description stagestringOne of: New,InProgress,Closedmin_severityintegerMinimum severity: 1 low, 2 medium, 3 high, 4 critical textstringText contained in the title maxintegerDefault: 25offsetintegerDefault: 0Recent alerts
THEHIVE_LIST_ALERTSAlerts from newest to oldest (title, type, source and reference, severity, status, stage, number of observables, associated case, tags and date), filterable by stage, minimum severity and title text.
Required scopes
No scopes required
Input
Recent alerts input Name Type Description stagestringOne of: New,InProgress,Imported,Closedmin_severityintegerMinimum severity: 1 low, 2 medium, 3 high, 4 critical textstringText contained in the title maxintegerDefault: 25offsetintegerDefault: 0

