> 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/k/kandji.md).

# Kandji

Kandji is an Apple device management platform. OctoXLabs reads the enrolled devices and adds them to the device inventory.

## Use cases

* **Find Kandji devices without an EDR agent.** List Kandji managed devices that CrowdStrike does not report.

```
Adapters = kandji AND NOT Adapters = falcon-crowdstrike
```

* **Find devices that have not checked in.** Last seen comes from `last_check_in`.

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

* **List outdated macOS versions.** Filter on the OS major version.

```
Adapters = kandji AND OS.Type = macOS AND OS.Major < 14
```

## Before you begin

### Network

| Source              | Destination                                                                      | Port | Protocol |
| ------------------- | -------------------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | api.kandji.io (IP or Domain parameter; tenant-specific API URL for some tenants) | 443  | HTTPS    |

The baseline says the default domain is `api.kandji.io`. After you create your first token, Kandji shows your tenant-specific API URL. Use it if it differs.

### Required permissions

Kandji lets you set the API permissions of each token. The baseline does not list the required ones. Not verified: the token needs read access to the devices list.

## Create credentials in Kandji

{% stepper %}
{% step %}

### Open Access settings

Log in to Kandji and click **Settings**, then the **Access** tab.
{% endstep %}

{% step %}

### Add a token

Click **Add API Token**. Enter a name and a description and click **Create**.
{% endstep %}

{% step %}

### Copy the token

Kandji shows the token in a dialog. Use the visibility symbol or **Copy Token** and store it safely. You cannot see the token details again. Click **Next**.
{% endstep %}

{% step %}

### Set permissions

Click **Configure** to set the API permissions for this token, or **Skip** to change them later. Click **Save**.
{% endstep %}

{% step %}

### Note the API URL

After the first token, Kandji shows your tenant-specific API URL. Use its host as **IP or Domain** if it is not `api.kandji.io`.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter    | Required | Type    | Default       | Description                                                 |
| ------------ | -------- | ------- | ------------- | ----------------------------------------------------------- |
| IP or Domain | No       | String  | api.kandji.io | Domain or IP address of the Kandji API.                     |
| Token        | Yes      | String  | None          | Kandji API token. Sent as a Bearer token.                   |
| Proxy        | No       | String  | None          | Proxy address, used as `http://<value>` for HTTP and HTTPS. |
| Is Secure?   | No       | Boolean | True          | Connect over HTTPS.                                         |
| Timeout      | No       | Integer | 30            | Seconds to wait for an API response.                        |

## Troubleshooting

| Error message                                                  | Cause                                                                                   | Fix                                                                                            |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The API answered with a status other than 200. This is the shared REST connector error. | Read the status code and body in the message, then check the credentials, permissions and URL. |

## Change history

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