How to generate bearer token - Magento 2 REST API
- Bilal Malik
- Sep 29, 2020
- 1 min read
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
コメント