Create Project API token using the REST API


#1

I want to automate the creation of a new project at work. As part of it, I want to set it up to use circleci builds in order to reduce the barrier for someone creating a new codebase.
I have successfully managed to use the User API token to set up the usual environment variables and get the user to follow the project.
What I was also hoping to do was to add the Build Status badge to the project README.md file when the codebase is created. In order to do this, I need to generate a Project API token as most of the projects are likely to be private. This is the documentation I came across - https://circleci.com/docs/2.0/status-badges/#overview.
Is there some way to generate a Project API token programmatically or is it only possible via the website?


#2

For now, only via the webapp.