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: .

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:

@Fabio_Jack @mateusz @justinfx Possible workaround: