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

# Connect Dynatrace with Platform Token – StackOne Hub

> Link a Dynatrace account in the StackOne Hub using Platform Token. End-user guide to authorize the integration and start using Dynatrace actions.

## Find your Environment ID

Your Environment ID identifies your Dynatrace environment and is the first part of its URL.

**1. Copy the Environment ID**

Sign in to [Dynatrace Account Management](https://myaccount.dynatrace.com), then open **Settings** > **Environments**.

<ul>
  <li>Copy the value in the **Environment** column across to **Environment ID**.</li>
  <li>Format: `https://{Environment ID}.apps.dynatrace.com`</li>
  <li>Example: if your environment URL is `https://abc12345.apps.dynatrace.com`, your **Environment ID** is `abc12345`</li>
</ul>

![The Environments page in Dynatrace Account Management with the environment highlighted in the Environment column.](https://mintcdn.com/stackone-60/mdOJcsWd0VMTPEB8/connectors/dynatrace/images/mcp_access_token-config-environment-id.png?fit=max\&auto=format\&n=mdOJcsWd0VMTPEB8\&q=85\&s=fd5025c7b814234a6cfd7041c8ffc5a8)

## Creating a platform token

The platform token works within the permissions of the Dynatrace user it is assigned to.

**1. Enter the token details**

In Account Management, open the **Account** menu at the top right and select **Platform tokens**.

<ul>
  <li>Click **Create token**.</li>
  <li>**Token name**: `StackOne Integration`</li>
  <li>**Never expires**: select it, or set an **Expire on** date</li>
  <li>**Select account**: your Dynatrace account</li>
  <li>**Select environments**: the environment you are connecting</li>
  <li>**Assign to**: **Myself**</li>
</ul>

![The Generate platform token page with the Token name, Never expires, Select account and Select environments fields highlighted.](https://mintcdn.com/stackone-60/mdOJcsWd0VMTPEB8/connectors/dynatrace/images/mcp_access_token-config-token-details.png?fit=max\&auto=format\&n=mdOJcsWd0VMTPEB8\&q=85\&s=5eff3c5dfc9e474c739a370adb1395d7)

**2. Select the token scopes**

Under **Select token scopes**, use **Search by scope** to find each of these scopes and select its checkbox:

```
mcp-gateway:servers:invoke
mcp-gateway:servers:read
ai:operator:execute
davis-copilot:conversations:execute
davis-copilot:nl2dql:execute
davis-copilot:document-search:execute
davis-copilot:dql2nl:execute
davis:analyzers:read
davis:analyzers:execute
document:documents:read
storage:bizevents:read
storage:buckets:read
storage:entities:read
storage:events:read
storage:files:read
storage:logs:read
storage:metrics:read
storage:security.events:read
storage:smartscape:read
storage:spans:read
storage:system:read
storage:user.events:read
storage:user.replays:read
storage:user.sessions:read
```

<ul>
  <li>Click **Generate**.</li>
</ul>

![The Select token scopes section filtered by mcp-gateway, with both MCP gateway scopes selected.](https://mintcdn.com/stackone-60/mdOJcsWd0VMTPEB8/connectors/dynatrace/images/mcp_access_token-config-token-scopes.png?fit=max\&auto=format\&n=mdOJcsWd0VMTPEB8\&q=85\&s=d5f0ff7e57ddd53d57821197d492b098)

**3. Copy the token**

Copy the **Token** across to **Platform Token**. Dynatrace shows the token only once.

<ul>
  <li>Click **Finish and exit**.</li>
</ul>

![The token created page with the copy button beside the Token field highlighted.](https://mintcdn.com/stackone-60/mdOJcsWd0VMTPEB8/connectors/dynatrace/images/mcp_access_token-config-copy-token.png?fit=max\&auto=format\&n=mdOJcsWd0VMTPEB8\&q=85\&s=6a97ce49cfc351667f5c9f439780c4d6)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.