Jenkins doesn’t provide public API documentation; API documentation for each page is available from the user interface in the bottom right. Refer to those detailed pages for more information about the service. Refer to Jenkins Remote Access API for information on the API and API wrappers.
The Jenkins Username: For the user whom the token belongs to
A Personal API Token: Generate this from the user’s profile details > Configure > Add new token. Refer to these Stack Overflow instructions for more detail.