> 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/f/freshdesk.md).

# Freshdesk

Freshdesk is a cloud customer support platform. OctoXLabs reads the agents of your Freshdesk account and adds them to the user inventory.

## Use cases

* List all Freshdesk agents.

```
Adapters = freshdesk
```

* Find Freshdesk agents that are not in Active Directory.

```
Adapters = freshdesk AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination           | Port | Protocol |
| ------------------- | --------------------- | ---- | -------- |
| OctoXLabs connector | Your Freshdesk domain | 443  | HTTPS    |

### Required permissions

| Scope or role               | Permission                | Needed for |
| --------------------------- | ------------------------- | ---------- |
| Agent whose API key is used | Access to the agents list | Users      |

The exact role is Not verified. The API key is shown only when the agent is verified.

## Create credentials in Freshdesk

{% stepper %}
{% step %}

### Open the profile settings

Log in to your account. Click your profile picture at the top right and select **Profile Settings**.
{% endstep %}

{% step %}

### View the API key

In the right pane, click **View API key** and complete the captcha verification. Copy the key.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter   | Required | Type             | Default | Description                            |
| ----------- | -------- | ---------------- | ------- | -------------------------------------- |
| Domain      | Yes      | Text             | None    | Your Freshdesk domain, without scheme. |
| Api key     | Yes      | Text (sensitive) | None    | The agent API key.                     |
| Https proxy | No       | Text             | Empty   | Proxy URL.                             |
| Timeout     | No       | Integer          | 30      | Seconds to wait for API responses.     |

## Troubleshooting

| Error message                                                  | Cause                                     | Fix                           |
| -------------------------------------------------------------- | ----------------------------------------- | ----------------------------- |
| `Failed to fetch users: <status>`                              | The agent list returned a non-200 status. | Check the API key and domain. |
| `Invalid JSON response while fetching users (status=<status>)` | The response was not JSON.                | Check the domain value.       |
| `Request failed after 5 retries for url <url>`                 | The API kept answering HTTP 429.          | Wait and retry.               |

## Change history

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