> 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/s/sophos-endpoint-protection.md).

# Sophos Endpoint Protection

Sophos Endpoint Protection provides anti-malware, exploit prevention and ransomware protection for endpoints. OctoXLabs reads the endpoints from the Sophos Central API gateway using an API token, and adds them to the device inventory. Use the separate Sophos Central page if you want to authenticate with a Client ID and Client Secret.

## Use cases

* **Find devices without Sophos coverage.** How devices are matched depends on your device merge settings.

```
Adapters = active-directory AND NOT Adapters = sophos-ep
```

* **Find Sophos endpoints that are missing from other sources.**

```
Adapters = sophos-ep AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                                | Port | Protocol                         |
| ------------------- | ------------------------------------------ | ---- | -------------------------------- |
| OctoXLabs connector | API Access URL host (API Domain parameter) | 443  | HTTPS (HTTP if Is Secure is off) |

The connector does not verify the TLS certificate.

### Required permissions

| Scope or role | Permission   | Needed for        |
| ------------- | ------------ | ----------------- |
| API token     | Not verified | Listing endpoints |

The baseline does not name a role or token scope.

## Create credentials in Sophos Central

{% stepper %}
{% step %}

### Open token management

Log in to Sophos Central Admin and go to **Global Settings > API Token Management**.
{% endstep %}

{% step %}

### Add a token

Click **Add Token**, enter a **Token Name** and click **Save**. The API Token Summary is shown.
{% endstep %}

{% step %}

### Copy the values

Copy the **API Access URL**, the **X-Api-Key** and the **Authorization** value.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default | Description                                                                            |
| ------------- | -------- | ------- | ------- | -------------------------------------------------------------------------------------- |
| API Domain    | Yes      | String  | None    | Host of the API Access URL from the token summary, without a scheme.                   |
| X-API-Key     | Yes      | String  | None    | X-Api-Key value.                                                                       |
| Authorization | Yes      | String  | None    | Authorization value from the token summary. The connector sends it as `Basic <value>`. |
| Is Secure     | No       | Boolean | True    | Use 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. | Check the API Domain, X-API-Key and Authorization values. |

## Change history

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