• Bilal Malik

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

3 views

Recent Posts

See All

What is requireJS AMD in Magento2

Simply we can say, below format is the AMD module. define(['jquery'] , function ($) { return function () {}; }); Module Vs AMD module 1. Javascript Module Pattern (function () { this.myGlobal =

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