You can find the API key from the Jenkins web browser. Follow the below-given steps to find the API key.
Log in to Jenkins.
Click your name.
Click Show API Token.
The API token is revealed. You can also change the token by clicking the Change API Token button.