# Authentifizierung für Zugriff auf RestAPI

**URL:** <https://forum.shopware.com/t/authentifizierung-fur-zugriff-auf-restapi/70868>\
**Category:** Shopware 6 (German)\
**Created:** [12. November 2020 um 15:11 UTC](https://forum.shopware.com/t/authentifizierung-fur-zugriff-auf-restapi/70868 "2020-11-12T15:11:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![corni](https://avatars.discourse-cdn.com/v4/letter/c/3ab097/32.png) [@corni](https://forum.shopware.com/u/corni)\
**Post date:** [12. November 2020 um 15:11 UTC](https://forum.shopware.com/t/authentifizierung-fur-zugriff-auf-restapi/70868/1 "2020-11-12T15:11:59Z")

</div>

Hallo,

ich bin neu bei Shopware und versuche die RestAPI per Postman anzusprechen. Ich nutze folgende URL:

[https://testshop.de/api/v3/\_info/openapi3.json](https://testshop.de/api/v3/_info/openapi3.json)

Als Authorisierungsvariablen gebe ich ein Bearer Token mit, welches ich im Shopware Backend über Einstellungen und Integration erzeuge. Ich versuche im Endeffekt ein einfaches GET auf die RestAPI anzustoßen. Ich bekomme jedoch immer den Fehler “The&nbsp;resource&nbsp;owner&nbsp;or&nbsp;authorization&nbsp;server&nbsp;denied&nbsp;the&nbsp;request.” mit den Details: “The&nbsp;JWT&nbsp;string&nbsp;must&nbsp;have&nbsp;two&nbsp;dots”. In meinem Token befinden sich auch tatsächlich keine Punkte. Wo bekomme ich also das richtige Token her?

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [25. November 2020 um 11:48 UTC](https://forum.shopware.com/t/authentifizierung-fur-zugriff-auf-restapi/70868/2 "2020-11-25T11:48:18Z")

</div>

Schau mal hier, vielleicht hilft das weiter:

==\> [API guide](https://docs.shopware.com/en/shopware-platform-dev-en/admin-api-guide)

PS: Im Moment weiß ich aber nicht, in wie weit die Doku auch aktuell ist.

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [25. November 2020 um 11:56 UTC](https://forum.shopware.com/t/authentifizierung-fur-zugriff-auf-restapi/70868/3 "2020-11-25T11:56:14Z")

</div>

Ansonsten als Beispiel für Postman:

GET: …de/api/v3/\_info/openapi3.json

Params: frei lassen

Authorization: frei lassen

Headers: Key **sw-access-key** (siehe dazu Doku) eintragen und als Value den **API-Zugangsschlüssel** aus dem Backend

Body: none

Sonst eigentlich nichts mehr.

&nbsp;
