How to get Admin Token by Rest API V1/integration/admin/token in Magento 2?

How to Get Admin Token by REST API in Magento 2?

Magento 2 Admin Token REST API, you need to first generate an access token. The access token is used for synchronization with Magento to another third-party platform.

Without an Access token, you can’t communicate with Magento 2 API that requires Admin Token to fetch results.

To create an access token you need to call POST action with Request payload. Your request URL will be rest/V1/integration/admin/token append to your site URL.

You can check at the end of the page for the POSTMAN screenshot to fetch the access token with POSTMAN.

3 Replies to “How to get Admin Token by Rest API V1/integration/admin/token in Magento 2?”

  1. How do we get refresh token once its about to expire? By default this is set to 1 hour and suppose if the user who is browsing on the site stays more than a hour this will kick them out. So am looking for refresh token functionality in Magento 2 without adjusting the token expiry time.

Comments are closed.