The Codacy API offers specific methods to manipulate repositories. To use these API methods, run local analysis, or send coverage results for your repository, you must use a project API Token generated specifically for your repository. Each project API Token is only valid for one repository.
Never write API Tokens on your configuration files and keep your API Tokens well protected, as they grant owner permissions to your Codacy repositories.
To generate an API token:
Open your repository Settings, tab Integrations, click the button Add integration, and add a Project API integration.
Click the button Settings for the project API integration to copy the new API Token.
To revoke an API Token, clicking the trash can icon to remove the Project API integration.
You can create multiple Codacy API Tokens. This can be useful to have a more flexible control by revoking only a specific token.
- Running local analysis
- Client-side tools
- Adding coverage to your repository
- To have access to all repositories, use a Codacy API token
Did this page help you?
Thank you for the feedback!