# \#tokens

**URL:** https://community.dynatrace.com/tag/tokens/455.md

[Latest](https://community.dynatrace.com/latest.md) · [Categories](https://community.dynatrace.com/categories.md) · [Tags](https://community.dynatrace.com/tags.md)

---

## [How can I fetch all Kubernetes events for the past month using the Dynatrace API](https://community.dynatrace.com/t/how-can-i-fetch-all-kubernetes-events-for-the-past-month-using-the-dynatrace-api/56185)

<div class="topic-metadata">

**Author:** [@Arunkumarbnp](https://community.dynatrace.com/u/Arunkumarbnp)\
**Replies:** 7\
**Last updated:** [June 17, 2026, 6:48am UTC](https://community.dynatrace.com/t/how-can-i-fetch-all-kubernetes-events-for-the-past-month-using-the-dynatrace-api/56185 "2026-06-17T06:48:53Z")

</div>

I’m trying to retrieve Kubernetes events from the last month using the Dynatrace API, but I can only get 20 events at a time. How can I fetch all events for the past month? api details: {{baseUrl}}/it\_prod-dynatrace-envi…

---

## [token error using API "401 could not parse JWT"](https://community.dynatrace.com/t/token-error-using-api-401-could-not-parse-jwt/55507)

<div class="topic-metadata">

**Author:** [@dcbarry](https://community.dynatrace.com/u/dcbarry)\
**Replies:** 1\
**Last updated:** [April 9, 2026, 5:11am UTC](https://community.dynatrace.com/t/token-error-using-api-401-could-not-parse-jwt/55507 "2026-04-09T05:11:17Z")

</div>

Performing what should be a simple DQL query via API, I get a 401 - Could not parse JWT". I understand this to be an token issue. The confusion is that the token is fully usable in a different api call. (I intentiona…

---

## [AI tools integration with Dynatrace](https://community.dynatrace.com/t/ai-tools-integration-with-dynatrace/55248)

<div class="topic-metadata">

**Author:** [@abhishek\_shedge](https://community.dynatrace.com/u/abhishek_shedge)\
**Replies:** 1\
**Last updated:** [March 13, 2026, 1:41pm UTC](https://community.dynatrace.com/t/ai-tools-integration-with-dynatrace/55248 "2026-03-13T13:41:51Z")

</div>

Hello, I am trying to integrate my Dynatrace dashboard with AI tools like Microsoft Co-Pilot Studio/M365 Co-Pilot/ MCP server, etc., with the help of the Dynatrace API. The goal is to create a chat assistant that can gi…

---

## [Classic Environment API with Platform Token](https://community.dynatrace.com/t/classic-environment-api-with-platform-token/55231)

<div class="topic-metadata">

**Author:** [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Replies:** 0\
**Last updated:** [March 10, 2026, 10:14pm UTC](https://community.dynatrace.com/t/classic-environment-api-with-platform-token/55231 "2026-03-10T22:14:26Z")

</div>

You can also use Dynatrace platform tokens\[1\] against classic endpoints such as Settings Objects\[2\]. Give your platform token the permission to access the specific account and environment and at least following scopes: …

---

## [Token is missing required scope](https://community.dynatrace.com/t/token-is-missing-required-scope/55185)

<div class="topic-metadata">

**Author:** [@mlw53688](https://community.dynatrace.com/u/mlw53688)\
**Replies:** 3\
**Last updated:** [March 9, 2026, 4:32pm UTC](https://community.dynatrace.com/t/token-is-missing-required-scope/55185 "2026-03-09T16:32:28Z")

</div>

Token is missing required scope. Use one of: metrics.read (Read metrics) Hello. I’m testing Dynatrace with Keda. I created a trial account. I can’t find the option to create a token that has metrics.read to use in th…

---

## [Scopes empty decoding the bearer token](https://community.dynatrace.com/t/scopes-empty-decoding-the-bearer-token/54950)

<div class="topic-metadata">

**Author:** [@MaximilianoML](https://community.dynatrace.com/u/MaximilianoML)\
**Replies:** 0\
**Last updated:** [February 10, 2026, 4:08pm UTC](https://community.dynatrace.com/t/scopes-empty-decoding-the-bearer-token/54950 "2026-02-10T16:08:31Z")

</div>

Hello guys, I’m trying to request a Bearer Token via n8n workflow using the oAuth Client, and everything looks good on the Reqs, For example the response from the oAuth Client is: \[ { "scope": "app-engine:functions:r…

---

## [OneAgent specific version download](https://community.dynatrace.com/t/oneagent-specific-version-download/54539)

<div class="topic-metadata">

**Author:** [@IgnacioAyerra](https://community.dynatrace.com/u/IgnacioAyerra)\
**Replies:** 2\
**Last updated:** [January 7, 2026, 7:08am UTC](https://community.dynatrace.com/t/oneagent-specific-version-download/54539 "2026-01-07T07:08:11Z")

</div>

I’ve been trying to download a specific version of the One Agent via de Dynatrace V1 API. I generated the token and I can see the available versions of the OA via this endpoint /deployment/boshrelease/versions/{osType} (…

---

## [Query Logs from Remote Clients Using DQL for Better Visibility](https://community.dynatrace.com/t/query-logs-from-remote-clients-using-dql-for-better-visibility/53926)

<div class="topic-metadata">

**Author:** [@SimeonP](https://community.dynatrace.com/u/SimeonP)\
**Replies:** 1\
**Last updated:** [October 29, 2025, 5:27pm UTC](https://community.dynatrace.com/t/query-logs-from-remote-clients-using-dql-for-better-visibility/53926 "2025-10-29T17:27:24Z")

</div>

Hi, I am trying to query the Dynatrace logs my company creates, from a command line utility written in either Python or C#. It seems that the access method - platform vs API token - changed over time, the old examples …

---

## [403 forbidden-Account management API](https://community.dynatrace.com/t/403-forbidden-account-management-api/53847)

<div class="topic-metadata">

**Author:** [@Archana567](https://community.dynatrace.com/u/Archana567)\
**Replies:** 1\
**Last updated:** [October 24, 2025, 9:01am UTC](https://community.dynatrace.com/t/403-forbidden-account-management-api/53847 "2025-10-24T09:01:55Z")

</div>

We are receiving a 403 forbidden resources error when calling the following account management Api endpoint: https://api.dynatrace.com/iam/v1/accounts/\<account-uuid\>/users This API is used in our automation process to …

---

## [Getting Access Token Usage Information](https://community.dynatrace.com/t/getting-access-token-usage-information/37355)

<div class="topic-metadata">

**Author:** [@Raj](https://community.dynatrace.com/u/Raj)\
**Replies:** 5\
**Last updated:** [August 20, 2025, 10:44pm UTC](https://community.dynatrace.com/t/getting-access-token-usage-information/37355 "2025-08-20T22:44:18Z")

</div>

This question is in reference to monitor the access token usage where we have the option for extracting the last used time for a token however, there is no option to check how many times a token was used within a month a…

---

## [OAuth authentication failed with status code 400](https://community.dynatrace.com/t/oauth-authentication-failed-with-status-code-400/45532)

<div class="topic-metadata">

**Author:** [@Hazard](https://community.dynatrace.com/u/Hazard)\
**Replies:** 17\
**Last updated:** [June 16, 2025, 8:27am UTC](https://community.dynatrace.com/t/oauth-authentication-failed-with-status-code-400/45532 "2025-06-16T08:27:50Z")

</div>

Hi guys, I have a problem using the rest api for oauth authentication. As described in your documentation I used POST in the request to the following endpoint: https://sso.dynatrace.com/sso/oauth2/token I executed th…

---

## [API Token required scope not always correct in API](https://community.dynatrace.com/t/api-token-required-scope-not-always-correct-in-api/51909)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 1\
**Last updated:** [June 11, 2025, 9:09am UTC](https://community.dynatrace.com/t/api-token-required-scope-not-always-correct-in-api/51909 "2025-06-11T09:09:07Z")

</div>

Nice to know, you also need settings.read to execute… Maybe this should be updated (-; Thanks @joep, @henri

---

## [When generating personal access tokens, the required scope logs.read (Read logs) is missing](https://community.dynatrace.com/t/when-generating-personal-access-tokens-the-required-scope-logs-read-read-logs-is-missing/51963)

<div class="topic-metadata">

**Author:** [@HARUTYM](https://community.dynatrace.com/u/HARUTYM)\
**Replies:** 1\
**Last updated:** [June 5, 2025, 8:35pm UTC](https://community.dynatrace.com/t/when-generating-personal-access-tokens-the-required-scope-logs-read-read-logs-is-missing/51963 "2025-06-05T20:35:02Z")

</div>

When I generate a Personal Access Token, it does not include the required logs.read (Read logs) scope. Even when I create a token with all available scopes, I receive the following error when calling the “/logs/export” …

---

## [Exploring Dynatrace Environment API – With a Real-Time Use Case!](https://community.dynatrace.com/t/exploring-dynatrace-environment-api-with-a-real-time-use-case/51892)

<div class="topic-metadata">

**Author:** [@VPraveen\_SRE](https://community.dynatrace.com/u/VPraveen_SRE)\
**Replies:** 0\
**Last updated:** [May 31, 2025, 4:57pm UTC](https://community.dynatrace.com/t/exploring-dynatrace-environment-api-with-a-real-time-use-case/51892 "2025-05-31T16:57:16Z")

</div>

Hi Dynatrace Community! I’m excited to share a recent hands-on project where I explored the Dynatrace Environment API to solve a real-world automation challenge. To make it more accessible for others, I’ve created a ste…

---

## [One more small question about AWS Dynatrace connection](https://community.dynatrace.com/t/one-more-small-question-about-aws-dynatrace-connection/46263)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 2\
**Last updated:** [May 19, 2025, 3:39pm UTC](https://community.dynatrace.com/t/one-more-small-question-about-aws-dynatrace-connection/46263 "2025-05-19T15:39:46Z")

</div>

See below setup screen: So you have to generate your accountid once ? On the first create. I assume you can bring your own? The API also will accept the accountid once? Can you add or delete these token(s) Last o…

---

## [Automation of Generating the API token](https://community.dynatrace.com/t/automation-of-generating-the-api-token/51516)

<div class="topic-metadata">

**Author:** [@smartpraseetha](https://community.dynatrace.com/u/smartpraseetha)\
**Replies:** 2\
**Last updated:** [May 7, 2025, 6:59pm UTC](https://community.dynatrace.com/t/automation-of-generating-the-api-token/51516 "2025-05-07T18:59:22Z")

</div>

Hello All, I am wondering if there is a any way to automate the token creation via a script without revealing the token?. I am aware that we can use the respective Environment APIs like POST/PUT etc. But in order to h…

---

## [Can't assign iam:groups:read policy to oauth2 client](https://community.dynatrace.com/t/cant-assign-iamread-policy-to-oauth2-client/47617)

<div class="topic-metadata">

**Author:** [@DaveOps](https://community.dynatrace.com/u/DaveOps)\
**Replies:** 5\
**Last updated:** [February 11, 2025, 6:12am UTC](https://community.dynatrace.com/t/cant-assign-iamread-policy-to-oauth2-client/47617 "2025-02-11T06:12:26Z")

</div>

Can’t assign \`iam:groups:read\` policy to oauth2 client to be able to get a bearer token via sso which allows me to interact with the \`/platform/iam/v1\` api. Received the following response: { "error": { "…

---

## [Kubernetes Observability - "error making post request to dynatrace api: Post \\"https://{environmentid}.live.dynatrace.com/api"](https://community.dynatrace.com/t/kubernetes-observability-error-making-post-request-to-dynatrace-api-post-https-environmentid-live-dynatrace-com-api/49151)

<div class="topic-metadata">

**Author:** [@lperroni](https://community.dynatrace.com/u/lperroni)\
**Replies:** 2\
**Last updated:** [January 2, 2025, 9:46pm UTC](https://community.dynatrace.com/t/kubernetes-observability-error-making-post-request-to-dynatrace-api-post-https-environmentid-live-dynatrace-com-api/49151 "2025-01-02T21:46:36Z")

</div>

I am deploying Dynatrace as Kubernetes Observability method on my AKS and I am receiving this error: "error making post request to dynatrace api: Post \\“https://{environmentid}.live.dynatrace.com/api” when I tried to ap…

---

## [Platform API authentication with access tokens support](https://community.dynatrace.com/t/platform-api-authentication-with-access-tokens-support/49126)

<div class="topic-metadata">

**Author:** [@wefsacsdf](https://community.dynatrace.com/u/wefsacsdf)\
**Replies:** 2\
**Last updated:** [January 2, 2025, 4:59pm UTC](https://community.dynatrace.com/t/platform-api-authentication-with-access-tokens-support/49126 "2025-01-02T16:59:42Z")

</div>

According to the docs I should be able to call the platform API (specifically the openpipeline API) using an access token with the correct scope: curl --request GET --url https://{environmentid}.apps.dynatrace.com/platf…

---

## [Migrating historical data between dynatrace tenants](https://community.dynatrace.com/t/migrating-historical-data-between-dynatrace-tenants/49036)

<div class="topic-metadata">

**Author:** [@JhonU](https://community.dynatrace.com/u/JhonU)\
**Replies:** 3\
**Last updated:** [November 24, 2024, 7:23pm UTC](https://community.dynatrace.com/t/migrating-historical-data-between-dynatrace-tenants/49036 "2024-11-24T19:23:38Z")

</div>

Hello everyone, in the organization we are migrating to a new tenant, the need arose to migrate historical data from the previous tenant to the new one, such as neologic metrics and indicators such as SLO. I would like …

---

## [Failed to generate download token](https://community.dynatrace.com/t/failed-to-generate-download-token/48575)

<div class="topic-metadata">

**Author:** [@blade](https://community.dynatrace.com/u/blade)\
**Replies:** 8\
**Last updated:** [October 31, 2024, 5:43am UTC](https://community.dynatrace.com/t/failed-to-generate-download-token/48575 "2024-10-31T05:43:47Z")

</div>

We are trying to install an Activegate and noticed that the installation setup has changed. 1. We opened the Hub and looked for Activegate. 2. After finding the installer, we were taken to a different UI, which no long…

---

## [Token rotation dynatrace operator, oneAgents, activeGates for dynatrace managed.](https://community.dynatrace.com/t/token-rotation-dynatrace-operator-oneagents-activegates-for-dynatrace-managed/48497)

<div class="topic-metadata">

**Author:** [@ac300](https://community.dynatrace.com/u/ac300)\
**Replies:** 2\
**Last updated:** [October 23, 2024, 4:47pm UTC](https://community.dynatrace.com/t/token-rotation-dynatrace-operator-oneagents-activegates-for-dynatrace-managed/48497 "2024-10-23T16:47:09Z")

</div>

Hi,We have a dynatrace environment in dynatrace managed, in which we have environment activeGates, oneAgents to monitor VMs and, dynatrace operator installed in K8s clusters with it´s own active gates.We generated some t…

---

## [How can I save the logs from the Dynatrace Audit Logs API?](https://community.dynatrace.com/t/how-can-i-save-the-logs-from-the-dynatrace-audit-logs-api/44255)

<div class="topic-metadata">

**Author:** [@badgerfifteen](https://community.dynatrace.com/u/badgerfifteen)\
**Replies:** 2\
**Last updated:** [August 27, 2024, 9:22am UTC](https://community.dynatrace.com/t/how-can-i-save-the-logs-from-the-dynatrace-audit-logs-api/44255 "2024-08-27T09:22:25Z")

</div>

I have access to the API and looking to use the Audit Logs area and then have the entries saved to an Excel file, for example. How do I do that? I tried using Excel and using Power Query to get the data, but it does not…

---

## [When calling the log search API, encountered error: 'OAuth token is missing'](https://community.dynatrace.com/t/when-calling-the-log-search-api-encountered-error-oauth-token-is-missing/44701)

<div class="topic-metadata">

**Author:** [@Ning](https://community.dynatrace.com/u/Ning)\
**Replies:** 3\
**Last updated:** [July 19, 2024, 6:19am UTC](https://community.dynatrace.com/t/when-calling-the-log-search-api-encountered-error-oauth-token-is-missing/44701 "2024-07-19T06:19:52Z")

</div>

I want to use the Dynatrace API to query logs. Following the documentation requirements, I created an Access Token and granted it the ‘logs.read’ scope. However, when calling the API, the following error occurred: { …

---

## [How to limit a oauth token enviroment access/usage](https://community.dynatrace.com/t/how-to-limit-a-oauth-token-enviroment-access-usage/46322)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 1:15pm UTC](https://community.dynatrace.com/t/how-to-limit-a-oauth-token-enviroment-access-usage/46322 "2024-07-01T13:15:47Z")

</div>

Hello, When you create an oauth token in an account, is there a way to limit access to certain environments? KR Henk

---

## [Logs API](https://community.dynatrace.com/t/logs-api/45766)

<div class="topic-metadata">

**Author:** [@rouaa](https://community.dynatrace.com/u/rouaa)\
**Replies:** 8\
**Last updated:** [May 28, 2024, 6:14am UTC](https://community.dynatrace.com/t/logs-api/45766 "2024-05-28T06:14:05Z")

</div>

Hello, Im new to Dynatrace and im currently facing problems when trying to get the logs through the API, at first i thought i was a problem with the token, but now that i have a oauth token, it’s still not working. Can …

---

## [Token Expiry: after X days the token auto deletes](https://community.dynatrace.com/t/token-expiry-after-x-days-the-token-auto-deletes/44208)

<div class="topic-metadata">

**Author:** [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Replies:** 1\
**Last updated:** [February 20, 2024, 11:40pm UTC](https://community.dynatrace.com/t/token-expiry-after-x-days-the-token-auto-deletes/44208 "2024-02-20T23:40:28Z")

</div>

In order to maintain strict control over tokens we typically attach an expiration date where applicable now that we are in the DPS model. So we had a team who requested a PaaS token permission set, we put it to expire at…

---

## [Create a service list API with response time, failure rate, and request per min](https://community.dynatrace.com/t/create-a-service-list-api-with-response-time-failure-rate-and-request-per-min/42695)

<div class="topic-metadata">

**Author:** [@Paulo1989](https://community.dynatrace.com/u/Paulo1989)\
**Replies:** 5\
**Last updated:** [November 21, 2023, 1:26pm UTC](https://community.dynatrace.com/t/create-a-service-list-api-with-response-time-failure-rate-and-request-per-min/42695 "2023-11-21T13:26:36Z")

</div>

Hi Everyone, Can Anyone explain me how to create a service list API with response time, failure rate and request per minute? The reason is that I want to import this list to Power BI after I get the list from Dynatrace.…

---

## [Track consumed host units for licensing usage](https://community.dynatrace.com/t/track-consumed-host-units-for-licensing-usage/42330)

<div class="topic-metadata">

**Author:** [@realdynatrace](https://community.dynatrace.com/u/realdynatrace)\
**Replies:** 2\
**Last updated:** [October 27, 2023, 11:59am UTC](https://community.dynatrace.com/t/track-consumed-host-units-for-licensing-usage/42330 "2023-10-27T11:59:28Z")

</div>

Hello guys, you can use the curl call below to track host units (this requires jq tool in linux) Have a nice day.

---

## [OneAgent host configuration via GET API call](https://community.dynatrace.com/t/oneagent-host-configuration-via-get-api-call/41765)

<div class="topic-metadata">

**Author:** [@PrateekGupta](https://community.dynatrace.com/u/PrateekGupta)\
**Replies:** 1\
**Last updated:** [September 26, 2023, 6:50am UTC](https://community.dynatrace.com/t/oneagent-host-configuration-via-get-api-call/41765 "2023-09-26T06:50:52Z")

</div>

I am trying to get the one agent host configuration via GET API call. but I am getting below error. "Token is missing required scope. Use one of: ReadConfig (Read configuration), Davis (Dynatrace module integration - Da …

[Next page](https://community.dynatrace.com/tag/tokens/455.md?match_all_tags=true&page=1&tags%5B%5D=tokens)
