cancel
Showing results for 
Search instead for 
Did you mean: 

2.3.0 API to login to admin

SOLVED

2.3.0 API to login to admin

Suppose I wanted to write an iPhone/Android app to do some function, like list orders etc. Is there a login API which takes the same username/password as the Magento back end admin which I can use please?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: 2.3.0 API to login to admin

Hi @bdamage 

 

Yes, In REST api you will require to pass accesstoken of admin !

 

you can use the same credentials of backend to get the accesstoken of  REST API.

 

Below i am giving the API details to get the accesstoken !

 

URL : http://yourdomainname.com/index.php/rest/V1/integration/admin/token/

 

METHOD : POST

 

Parameters : 

 

{
	"username":"your admin username",
	"password":"your admin password"
}

 

You can refer this link for more details - https://devdocs.magento.com/guides/v2.3/rest/tutorials/orders/order-admin-token.html

 

For more details refer Swagger API document of Magento  - http://devdocs.magento.com/swagger/

 

Hope it helps !

 

if issue solved,Click Kudos & Accept as Solution

View solution in original post

1 REPLY 1

Re: 2.3.0 API to login to admin

Hi @bdamage 

 

Yes, In REST api you will require to pass accesstoken of admin !

 

you can use the same credentials of backend to get the accesstoken of  REST API.

 

Below i am giving the API details to get the accesstoken !

 

URL : http://yourdomainname.com/index.php/rest/V1/integration/admin/token/

 

METHOD : POST

 

Parameters : 

 

{
	"username":"your admin username",
	"password":"your admin password"
}

 

You can refer this link for more details - https://devdocs.magento.com/guides/v2.3/rest/tutorials/orders/order-admin-token.html

 

For more details refer Swagger API document of Magento  - http://devdocs.magento.com/swagger/

 

Hope it helps !

 

if issue solved,Click Kudos & Accept as Solution