I’m having a problem connecting to the TheHive API. I don’t understand how exactly I’m supposed to fill in the “YOUR_TOKEN_HERE” field. I’ve already tried different ways, but it doesn’t seem to recognize my token… Could you provide some example of how this should be done?
so the issue here is that theHive API expects the token in a specific format. the token field usually needs just your actual API key/token value - no extra “YOUR_TOKEN_HERE” wrapper or anything like that.
here’s what you should do:
1. **get your token from theHive** - log into your theHive instance, go to admin settings or user profile, and generate an API key. you’ll get something like a long alphanumeric string
2. **in n8n**, when you’re setting up the theHive HTTP request (or if using a custom integration):
-
for the auth header, it typically goes as: `Authorization: Bearer YOUR_ACTUAL_TOKEN_HERE`
-
just paste your actual token value where it says YOUR_ACTUAL_TOKEN_HERE
-
dont include the quotes or any other text
3. **common mistakes i see**:
-
copying the whole example including “Bearer” prefix when the field already expects just the token
-
not regenerating the token if you’re testing (sometimes they expire or get invalidated)
-
using the wrong theHive instance URL
if youre using an HTTP Request node directly, your headers should look like:
```
{
“Authorization”: “Bearer YOUR_ACTUAL_API_TOKEN_VALUE_HERE”
}
```
lmk what error message youre getting when you try to connect - that’ll help me figure out if its a token format issue or something else. also what version of theHive are you running? some older versions had different auth methods.
Hey @Free Please refer to this document and it will help you fix this issue and make the API authorization simple! Hope this helps!
