Skip to content
This documentation applies to Codacy Self-hosted v1.4.0

For the latest updates and improvements, see the latest Cloud documentation instead.

Authenticating using an Account API token

If you'd like to automate uploading coverage for multiple repositories you can authenticate using an Account API Token:

  1. Create an Account API token on Codacy. You can find the token in Your accountAPI tokens.
  2. Set the API token in your terminal, replacing %API_Token% with your own token.
  3. Set your repository name in your terminal, replacing %Repo_Name%.
  4. Set your username in your terminal, replacing %Username%.
export CODACY_API_TOKEN=%API_Token%
export CODACY_PROJECT_NAME=%Repo_Name%
export CODACY_USERNAME=%Username%

Warning

You should keep your API token well protected, as it grants owner permissions to your projects.

Share your feedback 📢

Did this page help you?

Thanks for the feedback! Is there anything else you'd like to tell us about this page?

We're sorry to hear that. Please let us know what we can improve:

Alternatively, you can create a more detailed issue on our GitHub repository.

Thanks for helping improve the Codacy documentation.

If you have a question or need help please contact support@codacy.com.

Last modified April 16, 2020