apiToken from app login

I know that I can access ojs api using apiToken generated by the system located in User Profile > API Key.
But I would like to know how can I get apiToken from a restful app login?