# Admin API access

**URL:** <https://forum.shopware.com/t/admin-api-access/65882>\
**Category:** Programming (EN)\
**Created:** [31. März 2020 um 04:44 UTC](https://forum.shopware.com/t/admin-api-access/65882 "2020-03-31T04:44:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [31. März 2020 um 04:44 UTC](https://forum.shopware.com/t/admin-api-access/65882/1 "2020-03-31T04:44:54Z")

</div>

Admin Api access

1. Create API key from Settings-\>system-\>integrations&nbsp;

2. Get access token from  
[http://localhost:8000/api/oauth/token](http://localhost:8000/api/oauth/token)

POST request, body with following params

&nbsp; &nbsp;{  
&nbsp; &nbsp; &nbsp; &nbsp; “client\_id”: “Access key ID”,  
&nbsp; &nbsp; &nbsp; &nbsp; “client\_secret”: “Secret access key”,  
&nbsp; &nbsp; &nbsp; &nbsp; “grant\_type”: “client\_credentials”  
&nbsp; &nbsp; }

1. Call api  
[http://localhost:8000/api/v1/hatslogic/save-user-device-id](http://localhost:8000/api/v1/hatslogic/save-user-device-id)

GET method with header param&nbsp;

Authorization: Bearer + “access\_token&nbsp;from&nbsp;api/oauth/token API response”

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![openmindculture](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/openmindculture/32/8658_2.png) [@openmindculture](https://forum.shopware.com/u/openmindculture)\
**Post date:** [8. Oktober 2021 um 15:53 UTC](https://forum.shopware.com/t/admin-api-access/65882/2 "2021-10-08T15:53:02Z")

</div>

Where did you get this?

The admin API route authentication is mentioned in Shopware 6 basic developer training, but the documentation website has changed a lot since the video has been recorded.

Using documentation search and navigation only points me to the reference, don’t find the actual documentation with the example code.

Could you (or somebody else) please provide a link to the current documentation?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [8. Oktober 2021 um 21:23 UTC](https://forum.shopware.com/t/admin-api-access/65882/3 "2021-10-08T21:23:35Z")

</div>

> **[Shopware API Home | Stoplight](https://shopware.stoplight.io/docs/admin-api)**
>
> The API Design Management Platform powering the world's leading API first companies. Powered by Stoplight.

---

<div class="post-metadata">

**Author:** ![hanpet](https://avatars.discourse-cdn.com/v4/letter/h/d26b3c/32.png) [@hanpet](https://forum.shopware.com/u/hanpet)\
**Post date:** [21. Januar 2022 um 08:11 UTC](https://forum.shopware.com/t/admin-api-access/65882/4 "2022-01-21T08:11:45Z")

</div>

Here, this link works.

> **[Shopware API Home | Stoplight](https://shopware.stoplight.io/docs/admin-api/ZG9jOjEwODA3NjQx-authentication)**
>
> The API Design Management Platform powering the world's leading API first companies. Powered by Stoplight.
