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' -d '{ "username": "your-username", "password": "your-password" }'

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

15 views0 comments

Recent Posts

See All

Follow Me

  • LinkedIn
  • Twitter
  • Facebook
  • YouTube
  • Instagram

©2020 by Bilal Usean. Proudly created with