> For the complete documentation index, see [llms.txt](https://docs.teleskope.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.teleskope.ai/connectors/saas/business-tools/zendesk.md).

# Zendesk

Teleskope supports two Zendesk authentication modes:

1. OAuth client credentials (recommended)
2. API token

In Teleskope, go to **Settings** → **Connectors** → **Zendesk** and click **Enroll**. Step 1 asks for a **Zendesk Instance Name**. Step 2 asks you to choose between **API token** and **OAuth client credentials**, then enter the credentials for that mode.

## OAuth Client Credentials (recommended)

Teleskope's Zendesk OAuth support uses the `client_credentials` grant type. It does not use an authorization-code redirect flow and does not require a refresh token.

### Create the OAuth client in Zendesk

In Zendesk Admin Center:

1. Go to `Apps and integrations` -> `APIs` -> `OAuth clients`.
2. Create or edit an OAuth client.
3. Set `Client kind` to `Confidential`.

Zendesk attributes actions taken with this client to the user who created it. We recommend creating the client while signed in as a dedicated service account with the access Teleskope needs.

If you configure allowed scopes on the client, they must include the scope you enter in Teleskope. Otherwise Zendesk rejects the token request with an `invalid_scope` error. Teleskope doesn't check this at enrollment, so it shows up as failed scans after you enroll.

Capture the following values from the Zendesk OAuth client:

| Zendesk UI Label | Teleskope Field | Notes                                                                                                   |
| ---------------- | --------------- | ------------------------------------------------------------------------------------------------------- |
| Identifier       | Client ID       | Zendesk uses `Identifier` as the OAuth `client_id`.                                                     |
| Secret           | Client Secret   | Zendesk OAuth client secret. Zendesk shows the secret only once, so copy it when you create the client. |

Also provide:

| Field     | Value                                                                                                                                               |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| Subdomain | Your Zendesk subdomain. For `https://acme.zendesk.com`, use `acme`.                                                                                 |
| Scope     | `read` for scan-only, or `read write` for scanning plus remediation. Always enter a scope. If the field is left blank, Zendesk grants `read write`. |

### Recommended scopes

| Teleskope Usage          | Scope        |
| ------------------------ | ------------ |
| Scanning only            | `read`       |
| Scanning and remediation | `read write` |

`impersonate` is not required.

### Enrollment values in Teleskope

When selecting **OAuth client credentials** in the Zendesk enrollment flow, enter:

| Teleskope Field | Value                             |
| --------------- | --------------------------------- |
| Client ID       | Zendesk OAuth client `Identifier` |
| Client Secret   | Zendesk OAuth client `Secret`     |
| Subdomain       | Zendesk subdomain                 |
| Scope           | `read` or `read write`            |

### Token behavior

Teleskope exchanges the client credentials for a bearer token at Zendesk's token endpoint:

`https://{subdomain}.zendesk.com/oauth/tokens`

No manual access token entry is required during enrollment.

## API Token

Zendesk is retiring API tokens and no longer lets accounts create new ones; all remaining tokens stop working on April 30, 2027. Use OAuth for new connections. See Zendesk's [migration guide](https://developer.zendesk.com/documentation/authentication/oauth-migration/).

Provide the following values during enrollment:

| Field     | Value                                                                                                                                                                     |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Subdomain | Your Zendesk subdomain. For `https://acme.zendesk.com`, use `acme`.                                                                                                       |
| Email     | The Zendesk user email associated with the API token.                                                                                                                     |
| API Key   | Zendesk API token created for that user. Follow Zendesk's [instructions](https://support.zendesk.com/hc/en-us/articles/4408889192858-Managing-access-to-the-Zendesk-API). |
