How to generate personal access token via REST api?

I’m looking to handle a REST api to the GitLab repository, but facing a must to create a personal access token.
I don’t want users to have to handle GitLab directly - only to give me their username/password, and making me able to pull/push files.
How can I generate a personal access token to handle GitLab REST api?
It can be done easily on GitHub and BitBucket.

@cohenran This isn’t currently possible but there is an open feature proposal issue for it that you can throw your support behind.