How to login login using username and password via Rest API?

Hello,

I’m try to post login with username and password but it’s not working.

{
  "username": "demo",
  "password": "abc123"
}

or

{
  "email": "demo",
  "password": "abc123"
}

Im still login using username and password from UI.

Thanks

Hi @quangbahoa ,

For username, you can try with “account”:
{
account”: “demo”,
“password”: “abc123”
}

For email, do ensure you were sending the email address, instead of the username:
{
“email”: “demo@email.com”,
“password”: “abc123”
}

And do check the Request Header as well that Content-Type: application/json is specified.

Hope these help.

Regards,
Simon.