top of page

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

Recent Posts

See All

コメント


Follow Me

  • LinkedIn
  • Twitter
  • Facebook
  • YouTube
  • Instagram

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

bottom of page