Admin API access

Admin Api access

  1. Create API key from Settings->system->integrations 

  2. Get access token from
    http://localhost:8000/api/oauth/token

POST request, body with following params

   {
        “client_id”: “Access key ID”,
        “client_secret”: “Secret access key”,
        “grant_type”: “client_credentials”
    }

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

GET method with header param 

Authorization: Bearer + “access_token from api/oauth/token API response”

 

 

1 „Gefällt mir“

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?

1 „Gefällt mir“

Here, this link works.