> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/h/hexnode.md).

# Hexnode

Hexnode is a unified endpoint management (MDM) platform. OctoXLabs reads the enrolled devices with their installed applications and the Hexnode users.

## Use cases

* Find Hexnode devices that have not reported recently.

```
Adapters = hexnode AND NOT LastSeen last now-30d/d
```

* List the managed devices per operating system.

```
Adapters = hexnode AND OS.Type = Windows
```

## Before you begin

### Network

| Source              | Destination               | Port | Protocol |
| ------------------- | ------------------------- | ---- | -------- |
| OctoXLabs connector | `<portal>.hexnodemdm.com` | 443  | HTTPS    |

### Required permissions

| Scope or role | Permission   | Needed for                         |
| ------------- | ------------ | ---------------------------------- |
| API token     | Read devices | Devices and installed applications |
| API token     | Read users   | Users                              |

## Create credentials in Hexnode

{% stepper %}
{% step %}

### Enable API access

In the Hexnode Admin Portal go to **Admin** > **API**.
{% endstep %}

{% step %}

### Generate the token

Generate an API token and copy it.
{% endstep %}

{% step %}

### Find the portal name

The portal name is the first part of your login URL. If you sign in at `mycompany.hexnodemdm.com`, the portal name is `mycompany`.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter    | Required | Type    | Default | Description                                                                                  |
| ------------ | -------- | ------- | ------- | -------------------------------------------------------------------------------------------- |
| Portal Name  | Yes      | Text    | None    | Portal name from your Hexnode login URL. API URLs use `https://<portal>.hexnodemdm.com/api`. |
| Api Token    | Yes      | Text    | None    | API token, sent in the `Authorization` header.                                               |
| Https Proxy  | No       | Text    | None    | Proxy URL for HTTPS requests (optional).                                                     |
| Thread Count | No       | Integer | `32`    | Parallel threads for device details (1 to 32).                                               |
| Timeout      | No       | Integer | `30`    | Seconds to wait for API responses.                                                           |

## Troubleshooting

| Error message                                  | Cause                                                  | Fix                                                                        |
| ---------------------------------------------- | ------------------------------------------------------ | -------------------------------------------------------------------------- |
| `Failed to fetch devices: <status>`            | The device list call returned a status other than 200. | Check the token and API access in the Admin Portal.                        |
| `Failed to fetch users: <status>`              | The user list call returned a status other than 200.   | Check the token and API access.                                            |
| `Request failed after 5 retries for url <url>` | The API kept returning HTTP 429.                       | Run discovery again later. The connector waits 60 seconds between retries. |

## Change history

{% hint style="info" %}
Available starting from version 6.2.1.
{% endhint %}
