How can I create a Personal Access Tokens by API

Hello. How can I create a personal_access_tokens for a particular user using the API ?

1 Like

+1, having API endpoints for creating and revoking personal access tokens would solve this too: https://gitlab.com/gitlab-org/gitlab-ce/issues/25196 .

1 Like

Is there any movement on this topic? I just encountered the need to create a personal access token via the API and I could not find any way to do this. I have a tool where I want to ask for basic auth once and then generate a personal access token that can be reused for subsequent calls to the tool.

Still having this trouble. Also asked on Stackoverflow: https://stackoverflow.com/questions/47423024/how-to-obtain-giltab-personal-access-token-from-command-line

@Fabio_Jack @mateusz @justinfx Possible workaround: https://stackoverflow.com/a/47612193/2361497