> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Dynatrace - How do I link my account?

# Overview

To authenticate with Dynatrace, you need:

1. **Environment ID** - The subdomain of your Dynatrace SaaS environment.
2. **API Token** - A Dynatrace API token with the required scopes.

This guide walks you through generating an API token in Dynatrace and connecting your account.

### Prerequisites

* Access to a Dynatrace SaaS environment
* Permission to manage access tokens (requires the `apiTokens.write` scope or an admin account)

### Instructions

#### Step 1: Find your environment ID

Your Dynatrace environment URL follows the pattern:

```
https://<environmentId>.apps.dynatrace.com
```

If you have more than one environment, select the one you want to connect to first. For example, if your URL is `https://abc12345.apps.dynatrace.com`, your environment ID is `abc12345`.

#### Step 2: Generate an API token

1. Log in to your Dynatrace account. If you have more than one environment, select the one you want to connect to.
2. Use the search bar to find **Access Tokens**.

<img src="https://mintcdn.com/nango/lWhxpUwXluhpU1Qj/api-integrations/dynatrace/search_bar.png?fit=max&auto=format&n=lWhxpUwXluhpU1Qj&q=85&s=054316d8207769081acabbf3b0dbb6ef" width="1917" height="737" data-path="api-integrations/dynatrace/search_bar.png" />

3. Select **Generate new token**.

<img src="https://mintcdn.com/nango/lWhxpUwXluhpU1Qj/api-integrations/dynatrace/generate_api_key.png?fit=max&auto=format&n=lWhxpUwXluhpU1Qj&q=85&s=bd70053a277c07ac7770feeec02f38f5" width="1917" height="711" data-path="api-integrations/dynatrace/generate_api_key.png" />

4. Enter a name for your token. Use a meaningful name that identifies the application using it.
5. Select the required scopes for your integration. For common scopes, see the [full scope reference](https://docs.dynatrace.com/docs/dynatrace-api/basics/dynatrace-api-authentication#token-scopes) for all available scopes.
6. Select **Generate token**.

<img src="https://mintcdn.com/nango/lWhxpUwXluhpU1Qj/api-integrations/dynatrace/api_key_form.png?fit=max&auto=format&n=lWhxpUwXluhpU1Qj&q=85&s=7a6e4ab9e871167995e2a4ac77674713" width="1912" height="859" data-path="api-integrations/dynatrace/api_key_form.png" />

7. Copy the generated token immediately.

<img src="https://mintcdn.com/nango/lWhxpUwXluhpU1Qj/api-integrations/dynatrace/generated_api_key.png?fit=max&auto=format&n=lWhxpUwXluhpU1Qj&q=85&s=d0cb6805ecff15cec40e20bc0242f1ff" width="1917" height="649" data-path="api-integrations/dynatrace/generated_api_key.png" />

<Note>
  The token is shown only once. Copy it and store it securely — it cannot be retrieved after you close the dialog. If lost, you must generate a new token.
</Note>

#### Step 3: Enter credentials in the Connect UI

1. Open the form where you need to authenticate with Dynatrace.
2. Enter your **Environment ID** and **API Token** in their respective fields.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango/lWhxpUwXluhpU1Qj/api-integrations/dynatrace/form.png?fit=max&auto=format&n=lWhxpUwXluhpU1Qj&q=85&s=1c1b9df7abcf742f3b8ec47f4f3fbece" style={{maxWidth: "450px" }} width="502" height="699" data-path="api-integrations/dynatrace/form.png" />

You are now connected to Dynatrace.
