# Platform API authentication with access tokens support

**URL:** <https://community.dynatrace.com/t/platform-api-authentication-with-access-tokens-support/49126>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api, tokens\
**Created:** [November 29, 2024, 4:41pm UTC](https://community.dynatrace.com/t/platform-api-authentication-with-access-tokens-support/49126 "2024-11-29T16:41:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wefsacsdf](https://avatars.discourse-cdn.com/v4/letter/w/a3d4f5/32.png) [@wefsacsdf](https://community.dynatrace.com/u/wefsacsdf)\
**Post date:** [November 29, 2024, 4:41pm UTC](https://community.dynatrace.com/t/platform-api-authentication-with-access-tokens-support/49126/1 "2024-11-29T16:41:07Z")

</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:

```javascript
curl --request GET --url https://{environmentid}.apps.dynatrace.com/platform/openpipeline/v1/configurations --header 'Authorization: Api-Token dt0c01.xxxxxx.xxxxxxxxxxxx

```

But when I do that it returns

{“error”:{“code”:401,“message”:"Unsupported authorization scheme ‘Api-Token’. Dynatrace platform APIs require the authorization scheme ‘Bearer’ […] }

I believe this implies it only supports OAuth client authentication, which is not what the documentation seems to suggest.

Am I missing anything? I would really prefer to not create OAuth clients at this point if possible.

For reference, the docs I’m referring to are here&nbsp;[OpenPipeline API — Dynatrace Docs](https://docs.dynatrace.com/docs/discover-dynatrace/platform/openpipeline/reference/openpipeline-api/configurations-api/get-all)

Thanks!

---

<div class="post-metadata">

**Author:** ![Gosia\_Murawska](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Gosia\_Murawska](https://community.dynatrace.com/u/Gosia_Murawska)\
**Post date:** [January 2, 2025, 4:20pm UTC](https://community.dynatrace.com/t/platform-api-authentication-with-access-tokens-support/49126/2 "2025-01-02T16:20:56Z")

</div>

Hi, [@wefsacsdf](https://community.dynatrace.com/user/81562)! Have you managed to find the answer to your question? It would be great if you share it with the Community 🙂

---

<div class="post-metadata">

**Author:** ![wefsacsdf](https://avatars.discourse-cdn.com/v4/letter/w/a3d4f5/32.png) [@wefsacsdf](https://community.dynatrace.com/u/wefsacsdf)\
**Post date:** [January 2, 2025, 4:59pm UTC](https://community.dynatrace.com/t/platform-api-authentication-with-access-tokens-support/49126/3 "2025-01-02T16:59:42Z")

</div>

Hi&nbsp;[@GosiaMurawska](https://community.dynatrace.com/user/77704),

I had to create an OAuth client in the end, and authenticate that way.

It seems the docs have been updated to reflect that now, so hopefully others will no longer be as thoroughly confused as I was!

Although I see they’ve left the ‘also’ in there, implying there definitely was another authentication method listed in the docs and I’m definitely not just going mad 😄 :

_You can execute this request **also** with an OAuth2 client with&nbsp;openpipeline:configurations:read&nbsp;permission._

> **[OpenPipeline API](https://docs.dynatrace.com/docs/platform/openpipeline/reference/openpipeline-api)**
>
> Configure OpenPipeline capabilities of ingest source, routing, and processing via API.
