How to generate bearer token - Magento 2 REST API

We can generate the admin bearer token using the below command. Please run the below command in the terminal to generate a token.


curl -XPOST -H 'Content-Type: application/json' http://www.domain.com/rest/V1/integration/admin/token -d '{ "username": "your-username", "password": "your-password" }'

We can use this bearer token in the other REST API calls

8 views

Recent Posts

See All

Follow Me

  • LinkedIn
  • Twitter
  • Facebook
  • YouTube
  • Instagram

©2020 by Bilal Usean. Proudly created with Wix.com