Showing results for 
Search instead for 
Did you mean: 

Call Magento api

Call Magento api

I am using magento, was trying to get auth token like this, but not getting anything. I have tried so many times, gone through documentation but no luck help me?

$ curl -X POST  "http://<>/rest/V1/integration/admin/token" -H "Content-Type: application/json" -d '{"username":"<name>","password": "<password>"}' 


Re: Call Magento api

Hello @aloknanone8804 

Try to follow this article

If that doesn't help, let me know

Was my answer helpful? You can accept it as a solution.
150+ professional extensions for M1 & M2 with free lifetime updates!

Re: Call Magento api

Thanks @Gaurav_Jain02 

I followed all the steps and used this url to send request


but i am  getting this in response 


400 Bad Request

What am i doing wrong ?

Re: Call Magento api

Thanks for the update and quick reply. I'll be sure to keep an eye on this thread. Looking for the same issue. Bumped into your thread. Thanks for creating it. Looking forward to a solution. website

Re: Call Magento api

My custom Rest API get collection of newsletter subscriber is not working. Below is my module- Custom_Restapi. Custom/Restapi/etc/config.Kroger feedback

Re: Call Magento api


Can help me, any way to resolve this?

Re: Call Magento api

im also using the same. Thanks kroger feedback

Re: Call Magento api

This is helpful thanks for giving link.