codacy

v1.0.3
com.mcparmory/codacy Checked 2 hours ago Published 6 months ago

Analyze code quality, security issues, and coverage across repositories

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_organization_repositories_with_analysis List Organization Repositories with Analysis

Retrieves repositories belonging to a specified organization on a Git provider, including their analysis metadata. Supports filtering by name or segment, with pagination cursor that must be URL-encoded for Bitbucket.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization. Use the short identifier code for the desired provider.
remoteOrganizationName *stringThe exact organization name as it appears on the Git provider.
limitstringMaximum number of repositories to return per page. Accepts values between 1 and 100.
searchstringFilters the returned repositories to those whose names contain the provided string.
segmentsstringRestricts results to repositories belonging to the specified segments, provided as a comma-separated list of numeric segment identifiers.

search_organization_repositories Search Organization Repositories with Analysis

Search repositories within an organization on a specified Git provider, returning results enriched with analysis information. Supports filtering by repository name and paginated results.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization. Use the short identifier for the target platform (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider. Must match the exact organization identifier used by the provider.
limitstringMaximum number of repositories to return per request. Accepts values between 1 and 100 inclusive.
namesarrayFilter results to only the specified repository names. Each item should be a repository name string; order does not affect results.

get_repository_analysis Get Repository Analysis

Retrieves detailed analysis information for a specific repository on Codacy, including code quality metrics and insights for the authenticated user. Optionally scoped to a specific enabled branch, defaulting to the repository's main branch.

ParameterTypeDescription
provider *stringThe short identifier for the Git provider hosting the repository.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
branchstringThe name of a branch enabled on Codacy for this repository. If omitted, the main branch configured in Codacy repository settings is used. Use the listRepositoryBranches endpoint to retrieve valid bran…

list_repository_tools List Repository Tools

Retrieves the analysis tool settings configured for a specific repository, including which tools are enabled and their configurations. No authentication is required when accessing public repositories.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.

list_tool_conflicts List Tool Conflicts

Retrieves a list of analysis tools that have configuration conflicts in the specified repository. Useful for diagnosing tool setup issues that may affect code analysis results.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

configure_repository_tool Configure Repository Tool

Enable or disable an analysis tool and its patterns for a specific repository. Changes are applied immediately without checking whether the repository is linked to a coding standard.

ParameterTypeDescription
provider *stringIdentifier for the Git provider hosting the repository.
remoteOrganizationName *stringName of the organization on the Git provider that owns the repository.
repositoryName *stringName of the repository within the specified organization on the Git provider.
toolUuid *stringUUID uniquely identifying the analysis tool to configure.
enabledbooleanSet to true to enable the tool for analysis or false to disable it entirely for this repository.
patternsarrayList of pattern objects to enable or disable for this tool; each item should specify the pattern identifier and its desired enabled state. Order is not significant.
useConfigurationFilebooleanSet to true to have the tool read its settings from a configuration file in the repository, or false to use Codacy-managed settings.

list_repository_tool_patterns List Repository Tool Patterns

Retrieves the code pattern configurations for a specific analysis tool applied to a repository. Returns standard organization-level settings if applied, otherwise falls back to repository-specific settings.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
toolUuid *stringThe UUID uniquely identifying the analysis tool whose patterns should be retrieved.
categoriesstringComma-separated list of pattern categories to filter by. Valid values are Security, ErrorProne, CodeStyle, Compatibility, UnusedCode, Complexity, Comprehensibility, Documentation, BestPractice, and Pe…
directionstringThe direction in which to sort results, either ascending (asc) or descending (desc).
enabledbooleanWhen set to true, returns only enabled patterns; when set to false, returns only disabled patterns. Omit to return all patterns regardless of enabled status.
languagesstringComma-separated list of programming language names to restrict results to patterns applicable to those languages.
limitstringMaximum number of patterns to return in a single response, between 1 and 100 inclusive.
recommendedbooleanWhen set to true, returns only recommended patterns; when set to false, returns only non-recommended patterns. Omit to return all patterns regardless of recommended status.
searchstringA search string used to filter patterns by matching against pattern names or descriptions.
severityLevelsstringComma-separated list of severity levels to filter by. Valid values are Error, High, Warning, and Info.
sortstringThe field by which to sort the returned patterns. Valid values are category, recommended, and severity.
tagsstringComma-separated list of pattern tags to filter results by, such as framework or technology tags.

bulk_update_repository_tool_patterns Bulk Update Repository Tool Patterns

Bulk enables or disables code patterns for a specific tool in a repository. Use optional filters to target a subset of patterns by language, category, severity, tags, or search term; omit all filters to apply the change to every pattern for the tool.

ParameterTypeDescription
enabled *booleanSet to `true` to enable all matched code patterns, or `false` to disable them.
provider *stringShort code identifying the Git provider hosting the repository.
remoteOrganizationName *stringName of the organization on the Git provider that owns the repository.
repositoryName *stringName of the repository within the organization on the Git provider.
toolUuid *stringUUID that uniquely identifies the tool whose patterns will be updated.
categoriesstringComma-separated list of pattern categories to restrict the update. Valid values are `Security`, `ErrorProne`, `CodeStyle`, `Compatibility`, `UnusedCode`, `Complexity`, `Comprehensibility`, `Documentat…
languagesstringComma-separated list of programming language names to restrict the update to patterns applicable to those languages only.
recommendedbooleanWhen set to `true`, restricts the update to recommended patterns only; when set to `false`, restricts it to non-recommended patterns only. Omit to include patterns regardless of recommended status.
searchstringFree-text search string used to filter patterns by name or description before applying the bulk update.
severityLevelsstringComma-separated list of severity levels to restrict the update. Valid values are `Error`, `High`, `Warning`, and `Info`.
tagsstringComma-separated list of pattern tags to restrict the update to patterns that carry any of the specified tags.

get_repository_tool_pattern_config Get Repository Tool Pattern

Retrieves the pattern configuration for a specific tool pattern applied to a repository. Returns the organization-level standard configuration if one is applied, otherwise falls back to the repository-level settings.

ParameterTypeDescription
patternId *stringThe identifier for the specific pattern within the tool whose configuration is being retrieved.
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
toolUuid *stringThe UUID uniquely identifying the analysis tool whose pattern configuration is being retrieved.

get_tool_patterns_overview Get Tool Patterns Overview

Retrieves an overview of code patterns for a specific analysis tool in a repository, showing counts and summaries by category, severity, and status. Uses standard settings if applied, otherwise falls back to repository-level tool configuration.

ParameterTypeDescription
provider *stringShort code identifying the Git hosting provider for the repository.
remoteOrganizationName *stringName of the organization or account that owns the repository on the Git provider.
repositoryName *stringName of the repository within the specified organization on the Git provider.
toolUuid *stringUUID uniquely identifying the analysis tool whose pattern overview is being retrieved.
categoriesstringComma-separated list of pattern categories to include in the overview. Valid values are Security, ErrorProne, CodeStyle, Compatibility, UnusedCode, Complexity, Comprehensibility, Documentation, BestPr…
enabledbooleanWhen set to true, returns only enabled patterns; when set to false, returns only disabled patterns. Omit to return patterns regardless of enabled status.
languagesstringComma-separated list of programming language names to restrict the overview to patterns applicable to those languages.
recommendedbooleanWhen set to true, returns only patterns marked as recommended; when set to false, returns only non-recommended patterns. Omit to return patterns regardless of recommended status.
searchstringSearch string used to filter patterns by matching against pattern names or descriptions.
severityLevelsstringComma-separated list of severity levels to filter patterns by. Valid values are Error, High, Warning, and Info.
tagsstringComma-separated list of tags to filter patterns by, allowing narrowing results to patterns associated with specific frameworks or topics.

list_tool_pattern_conflicts List Tool Pattern Conflicts

Retrieves a list of patterns for a specific tool that conflict with the repository's configured Coding Standards, helping identify rule inconsistencies that may affect code analysis.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
toolUuid *stringThe UUID uniquely identifying the analysis tool whose pattern conflicts should be retrieved.

get_repository_analysis_progress Get Repository Analysis Progress

Retrieves the analysis progress overview for a specific repository on Codacy, indicating how far along the initial analysis has advanced. No authentication is required when accessing public repositories.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository.
remoteOrganizationName *stringThe name of the organization that owns the repository on the Git provider.
repositoryName *stringThe name of the repository within the organization on the Git provider.
branchstringThe branch to check analysis progress for; must be a branch enabled in Codacy repository settings. Defaults to the main branch configured in Codacy if omitted.

list_pull_requests List Pull Requests

Retrieves a list of pull requests for a specified repository, supporting sorting by last-updated, impact, or merged status. No authentication is required for public repositories.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
includeNotAnalyzedbooleanWhen set to true, includes pull requests that have not yet been analyzed by Codacy alongside analyzed ones.
limitstringMaximum number of pull requests to return in a single response. Accepts values between 1 and 100.
searchstringFilters the returned pull requests to those whose names or metadata contain the provided string.

get_pull_request Get Pull Request

Retrieves detailed analysis data for a specific pull request in a repository. No authentication is required when accessing public repositories.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
pullRequestNumber *stringThe unique numeric identifier of the pull request within the repository, as assigned by the Git provider.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

get_pull_request_coverage Get Pull Request Coverage

Retrieves code coverage information for a specific pull request in a repository. No authentication is required when accessing public repositories.

ParameterTypeDescription
provider *stringShort code identifying the Git hosting provider (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
pullRequestNumber *stringThe numeric identifier of the pull request for which to retrieve coverage data.
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name within the specified organization on the Git provider.

list_pull_request_file_coverage List Pull Request File Coverage

Retrieves per-file code coverage information for a specific pull request in a repository. No authentication is required when accessing public repositories.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
pullRequestNumber *stringThe numeric identifier of the pull request for which file coverage data is being requested.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

reanalyze_pull_request_coverage Reanalyze Pull Request Coverage

Triggers a reanalysis of the latest coverage report uploaded for a specific pull request. Useful when coverage data needs to be reprocessed without uploading a new report.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository. Use the provider's abbreviated identifier.
pullRequestNumber *stringThe numeric identifier of the pull request whose coverage report should be reanalyzed.
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name within the specified organization on the Git provider.

list_pull_request_commits List Pull Request Commits

Retrieves analysis results for all commits within a specified pull request, including code quality and issue data per commit. Results are paginated and scoped to a repository on a supported Git provider.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository. Use the short identifier for the target platform (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
pullRequestNumber *stringThe unique number identifying the pull request within the repository, as assigned by the Git provider.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
limitstringMaximum number of commit results to return in a single response. Accepts values between 1 and 100; defaults to 100 if not specified.

bypass_pull_request_analysis Bypass Pull Request Analysis

Bypasses the analysis status check for a specific pull request, allowing it to proceed regardless of analysis results. Useful when overriding blocking analysis gates in CI/CD workflows.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
pullRequestNumber *stringThe numeric identifier of the pull request whose analysis status should be bypassed.
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name within the specified organization on the Git provider.

trigger_pull_request_ai_review Trigger Pull Request AI Review

Triggers an AI-powered code review for a specific pull request in a repository. Initiates automated analysis and feedback generation for the pull request's changes.

ParameterTypeDescription
provider *stringShort code identifying the Git hosting provider for the repository.
pullRequestNumber *stringThe numeric identifier of the pull request to be reviewed, as assigned by the Git provider.
remoteOrganizationName *stringName of the organization or account on the Git provider that owns the repository.
repositoryName *stringName of the repository within the organization on the Git provider.

list_pull_request_coverage_reports List Pull Request Coverage Reports

Retrieves all coverage reports uploaded for both the common ancestor commit and the head commit of a pull request branch. Useful for comparing coverage changes introduced by the pull request.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository.
pullRequestNumber *stringThe unique number identifying the pull request within the repository.
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name within the specified organization on the Git provider.

list_pull_request_issues List Pull Request Issues

Retrieves the list of issues found in a specific pull request for a given repository. Use the status filter to narrow results to new, fixed, or all issues, and optionally surface only potential issues.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
pullRequestNumber *stringThe unique number identifying the pull request within the repository.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
limitstringMaximum number of issues to return in a single response. Accepts values between 1 and 100.
onlyPotentialbooleanWhen set to true, restricts results to potential issues only, which are lower-confidence findings that may require additional review.
statusstringFilters issues by their status relative to the pull request. Use 'new' for issues introduced, 'fixed' for issues resolved, or 'all' to return both.

list_pull_request_clones List Pull Request Clones

Retrieves duplicate code blocks (clones) detected in a specific pull request for a repository. Use the status filter to narrow results to new, fixed, or all duplicate occurrences.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
pullRequestNumber *stringThe numeric identifier of the pull request for which duplicate code blocks should be retrieved.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.
limitstringMaximum number of clone results to return in a single response, between 1 and 100 inclusive.
onlyPotentialbooleanWhen set to true, restricts results to only potential (lower-confidence) duplicate code blocks rather than confirmed clones.
statusstringFilters returned clones by their status relative to the pull request: 'new' for clones introduced, 'fixed' for clones resolved, or 'all' for every detected clone regardless of status.

list_commit_clones List Commit Clones

Retrieves duplicate code blocks (clones) detected in a specific commit for a repository. Use the status parameter to filter results by new, fixed, or all duplicate occurrences.

ParameterTypeDescription
commitUuid *stringThe UUID or full SHA hash identifying the specific commit to analyze for duplicate code blocks.
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.
limitstringMaximum number of duplicate code block results to return per request. Accepts values between 1 and 100.
onlyPotentialbooleanWhen set to true, restricts results to only potential duplicate code issues, excluding confirmed clones.
statusstringFilters duplicate code blocks by their status relative to the commit: all returns every clone, new returns only newly introduced clones, and fixed returns only clones resolved in this commit.

list_pull_request_logs List Pull Request Logs

Retrieves analysis logs for a specific pull request in a repository, useful for diagnosing issues or reviewing the details of a Codacy analysis run.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
pullRequestNumber *stringThe unique number identifying the pull request within the repository, as assigned by the Git provider.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.

list_commit_analysis_logs List Commit Analysis Logs

Retrieves the analysis log entries for a specific commit in a repository, providing details about the analysis process and any issues encountered during execution.

ParameterTypeDescription
commitUuid *stringThe unique identifier of the commit whose analysis logs are being requested, provided as a UUID or full commit SHA hash.
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

list_commit_files List Commit Files

Retrieves the list of files changed in a specific commit along with their static analysis and coverage results. Supports filtering, searching, sorting, and pagination to narrow down results.

ParameterTypeDescription
commitUuid *stringThe unique identifier of the commit, provided as a UUID or full SHA hash string.
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
branchstringThe branch to scope the analysis results to; must be a branch enabled on Codacy. Defaults to the repository's main branch if omitted.
columnOrderstringThe direction in which to sort results: 'asc' for ascending order (default) or 'desc' for descending order.
filterstringNarrows the returned files by type: omit to return all files changed in the commit or with coverage changes, or use 'withCoverageChanges' to return only files that have coverage changes.
limitstringMaximum number of file results to return per request. Accepts values between 1 and 100.
searchstringFilters the results to only include files whose relative path contains the specified string.
sortColumnstringThe field by which to sort the returned files: 'filename' (default) sorts alphabetically, 'deltaCoverage' sorts by coverage change, and 'totalCoverage' sorts by overall coverage value.

list_pull_request_files List Pull Request Files

Retrieves the list of files changed in a pull request along with their static analysis results. Supports sorting by filename, coverage delta, or total coverage.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
pullRequestNumber *stringThe unique numeric identifier of the pull request within the repository.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.
columnOrderstringThe direction in which to order the sorted results, either ascending or descending.
limitstringMaximum number of file results to return per request. Must be between 1 and 100.
sortColumnstringThe field by which to sort the returned files. Use `filename` to sort alphabetically by file path, `deltaCoverage` to sort by the change in coverage, or `totalCoverage` to sort by the overall coverage…

follow_repository Follow Repository

Follow a repository that has already been added to Codacy, enabling tracking of its analysis and quality metrics for the authenticated user.

ParameterTypeDescription
provider *stringShort identifier for the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization to follow.

unfollow_repository Unfollow Repository

Stops following a repository in the specified organization on a Git provider, removing it from the list of monitored repositories.

ParameterTypeDescription
provider *stringShort identifier for the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization to unfollow.

update_repository_quality_settings Update Repository Quality Settings

Updates the quality gate thresholds for a specific repository, defining the criteria under which the repository is considered healthy or unhealthy across issues, duplication, coverage, and complexity metrics.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
fileComplexityValueThresholdstringThe complexity score above which a file is considered complex within this repository. Must be zero or greater.
fileDuplicationBlockThresholdstringThe number of cloned blocks above which a file is considered duplicated within this repository. Must be zero or greater.
maxComplexFilesPercentagestringThe maximum acceptable percentage of complex files; the repository is flagged as unhealthy if this threshold is exceeded. Must be a non-negative integer representing a percentage.
maxDuplicatedFilesPercentagestringThe maximum acceptable percentage of duplicated files; the repository is flagged as unhealthy if this threshold is exceeded. Must be a non-negative integer representing a percentage.
maxIssuePercentagestringThe maximum acceptable percentage of files with issues; the repository is flagged as unhealthy if this threshold is exceeded. Must be a non-negative integer representing a percentage.
minCoveragePercentagestringThe minimum required code coverage percentage; the repository is flagged as unhealthy if coverage falls below this threshold. Must be a non-negative integer representing a percentage.

regenerate_repository_ssh_user_key Regenerate Repository SSH User Key

Regenerates the user SSH key Codacy uses to clone the specified repository, automatically adding the new public key to the user's account on the Git provider. Using a user SSH key is recommended when the repository includes submodules.

ParameterTypeDescription
provider *stringShort identifier for the Git provider hosting the repository, such as gh for GitHub, gl for GitLab, or bb for Bitbucket.
remoteOrganizationName *stringThe name of the organization on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

regenerate_repository_ssh_key Regenerate Repository SSH Key

Regenerates the SSH key Codacy uses to clone a specific repository, automatically updating the new public key on the Git provider.

ParameterTypeDescription
provider *stringShort identifier for the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name within the specified organization on the Git provider.

get_repository_ssh_key Get Repository SSH Key

Retrieves the most recently generated public SSH key associated with a repository, which may be either a user or repository-level SSH key. Useful for verifying or displaying the active SSH key configured for repository access.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

sync_repository Sync Repository with Provider

Synchronizes a repository's name and visibility settings in Codacy with the current state from the upstream Git provider. Useful after renaming or changing the visibility of a repository directly on the provider.

ParameterTypeDescription
provider *stringShort identifier for the Git provider hosting the repository.
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name as it appears under the organization on the Git provider.

get_build_server_analysis_setting Get Build Server Analysis Setting

Retrieves the current status of the 'Run analysis on your build server' setting for a specific repository. Use this to check whether build server analysis is enabled or disabled.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.

list_repository_languages List Repository Languages

Retrieves all programming languages detected in a repository, including their associated file extensions and whether each language is enabled for analysis.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository.
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name as it appears within the Git provider organization.

configure_repository_language_settings Configure Repository Language Settings

Updates the language response settings for a specific repository, controlling which programming languages are recognized and analyzed. Use this to tailor language detection behavior for a given repository within an organization.

ParameterTypeDescription
languages *arrayThe complete list of languages to configure for this repository. Each item should represent a language identifier; order is not significant, and the full desired set must be provided as this replaces…
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.

get_repository_commit_quality_settings Get Repository Commit Quality Settings

Retrieves the quality gate settings applied to commits for a specific repository. Note that diff coverage threshold is not included, as it is not currently supported for commit-level quality checks.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository.
remoteOrganizationName *stringThe name of the organization on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.

reset_repository_commit_quality_settings Reset Repository Commit Quality Settings

Resets the commit quality settings for a specific repository to Codacy's default values, discarding any custom configurations previously applied.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization on the Git provider under which the repository resides.
repositoryName *stringThe name of the repository within the specified Git provider organization whose commit quality settings will be reset.

reset_repository_quality_settings Reset Repository Quality Settings

Resets all quality settings for a specific repository back to Codacy's default values, discarding any custom configurations that were previously applied.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization or account name as it appears on the Git provider.
repositoryName *stringThe exact repository name as it appears under the organization on the Git provider.

list_organization_pull_requests List Organization Pull Requests

Retrieves pull requests across all repositories in an organization that the authenticated user has access to. Results can be sorted by last updated date (default), impact, or merged status.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the Git provider.
limitstringMaximum number of pull requests to return per request. Accepts values between 1 and 100.
searchstringFilters pull requests by matching the provided string against repository names or other relevant fields.

list_commit_statistics List Commit Statistics

Retrieves daily commit analysis statistics for a repository over the last N days that have available analysis data. Note that returned days reflect days with actual data, which may not align with the last N consecutive calendar days.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
branchstringThe repository branch to retrieve commit statistics for, which must be a branch enabled in Codacy settings. Defaults to the main branch configured in the Codacy repository settings if omitted.
daysstringThe number of days of commit statistics to return, ranging from 1 to 365. Returns the most recent days that have analysis data, defaulting to 31 if not specified.

list_repository_category_overviews List Repository Category Overviews

Retrieves analysis category overviews (e.g., code quality, security, complexity) for a specific repository, summarizing issue counts and grades per category. Authentication is not required for public repositories.

ParameterTypeDescription
provider *stringIdentifier for the Git provider hosting the repository.
remoteOrganizationName *stringName of the organization on the Git provider that owns the repository.
repositoryName *stringName of the repository within the specified organization on the Git provider.
branchstringName of a branch enabled on Codacy for which to retrieve category overviews; defaults to the main branch configured in Codacy repository settings if omitted.

search_repository_issues Search Repository Issues

Searches and returns issues found by Codacy in a specific repository, equivalent to the Issues page view. Supports filtering via request body to narrow results by category, severity, or other criteria.

ParameterTypeDescription
provider *stringIdentifier for the Git provider hosting the repository, such as GitHub, GitLab, or Bitbucket.
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name within the specified organization on the Git provider.
limitstringMaximum number of issues to return per request. Accepts values between 1 and 100.

bulk_ignore_repository_issues Bulk Ignore Repository Issues

Ignores a batch of issues in a specified repository, suppressing them from analysis results. Accepts up to 50 issue IDs per request, with an optional reason and comment for audit purposes.

ParameterTypeDescription
issueIds *arrayAn unordered list of unique issue IDs to ignore. Maximum of 50 IDs per request; each item should be a valid issue identifier.
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
commentstringAn optional free-text comment providing additional context or explanation for ignoring the specified issues.
reasonstringAn optional reason categorizing why the issues are being ignored, used for tracking and audit purposes.

get_repository_issues_overview Get Repository Issues Overview

Retrieves a summary of issues found by Codacy in a specific repository, including issue counts and breakdowns as shown on the Issues page. Supports filtering via request body parameters.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., GitHub, GitLab, or Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

get_repository_issue Get Repository Issue

Retrieves detailed information about a specific open issue in a repository. Requires identifying the Git provider, organization, repository, and issue ID.

ParameterTypeDescription
issueId *stringThe unique numeric identifier of the open issue to retrieve.
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

set_issue_ignored_state Set Issue Ignored State

Ignore or unignore a specific code analysis issue in a repository, optionally providing a predefined reason and comment to justify the action.

ParameterTypeDescription
ignored *booleanSet to true to ignore the issue or false to unignore it and restore it to an active state.
issueId *stringUnique identifier of the issue to update.
provider *stringShort code identifying the Git provider hosting the repository.
remoteOrganizationName *stringName of the organization or account on the Git provider that owns the repository.
repositoryName *stringName of the repository within the organization on the Git provider.
commentstringFree-text comment providing additional context or justification for the ignore action, supplementing the predefined reason.
reasonstringPredefined category explaining why the issue is being ignored; required when ignoring an issue to ensure consistent classification.

ignore_issue_false_positive Ignore Issue False Positive

Marks a false positive result on a specific issue as ignored, suppressing it from future analysis reports. Use this to dismiss incorrectly flagged issues within a repository.

ParameterTypeDescription
issueId *stringThe unique identifier of the issue whose false positive result should be ignored.
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.

list_ignored_issues List Ignored Issues

Retrieves a paginated list of issues that Codacy detected but were manually marked as ignored in the specified repository. Supports filtering via request body parameters.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.
limitstringMaximum number of ignored issues to return per request. Accepts values between 1 and 100.

list_repository_commits List Repository Commits

Retrieves Codacy analysis results for commits in a specified branch of a repository. Defaults to the main branch if no branch is specified.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
branchstringThe name of a branch enabled on Codacy for this repository, as returned by listRepositoryBranches. Defaults to the main branch configured in Codacy repository settings if omitted.
limitstringMaximum number of commit results to return. Accepts values between 1 and 100.

get_commit_analysis Get Commit Analysis

Retrieves the analysis results for a specific commit in a repository, including code quality metrics and issue findings. Useful for inspecting the impact of a particular commit on overall code health.

ParameterTypeDescription
commitUuid *stringThe full SHA hash or UUID that uniquely identifies the commit to retrieve analysis results for.
provider *stringShort code identifying the Git provider hosting the repository, such as 'gh' for GitHub, 'gl' for GitLab, or 'bb' for Bitbucket.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.

get_commit_delta_statistics Get Commit Delta Statistics

Retrieves quality metric deltas introduced by a specific commit, showing how the commit changed code quality indicators. Returns zero or null values for metrics if Codacy has not yet analyzed the commit.

ParameterTypeDescription
commitUuid *stringThe unique identifier for the commit, provided as a UUID or full SHA hash string.
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

list_commit_delta_issues List Commit Delta Issues

Retrieves issues introduced or fixed by a specific commit, calculated as a delta between the source commit and its parent (or an optional target commit). Use this to audit code quality changes at the commit level.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.
srcCommitUuid *stringThe SHA or UUID of the source commit to analyze; the delta is calculated from this commit against its parent or the specified target commit.
limitstringMaximum number of issues to return per request; must be between 1 and 100.
onlyPotentialbooleanWhen set to true, restricts results to potential issues only, excluding confirmed issues from the response.
statusstringFilters results by issue status: all returns every delta issue, new returns only introduced issues, and fixed returns only resolved issues.
targetCommitUuidstringThe SHA or UUID of an optional target commit to use as the comparison baseline instead of the source commit's parent.

get_authenticated_user Get Authenticated User

Retrieves the profile and account details of the currently authenticated user. Useful for confirming identity, accessing user metadata, or personalizing responses based on the active session.

update_current_user Update Current User

Updates profile settings for the currently authenticated user. Only the fields provided will be modified.

ParameterTypeDescription
namestringThe display name to assign to the authenticated user's profile.
shouldDoClientQualificationbooleanWhether the system should trigger client qualification checks for this user.

list_organizations List Organizations

Retrieves all organizations that the currently authenticated user belongs to. Returns a paginated list up to the specified limit.

ParameterTypeDescription
limitstringMaximum number of organizations to return in a single response, between 1 and 100.

list_organizations_by_provider List Organizations by Provider

Retrieves all organizations associated with the authenticated user for a specified Git provider. Useful for discovering available organizations before performing organization-scoped operations.

ParameterTypeDescription
provider *stringThe Git provider to query for organizations. Use the short identifier code for the desired platform (e.g., GitHub, GitLab, Bitbucket).
limitstringMaximum number of organizations to return in a single response. Accepts values between 1 and 100, defaulting to 100 if not specified.

get_organization_for_user Get Organization for User

Retrieves details for a specific organization associated with the authenticated user on a given Git provider. Useful for confirming organization membership and accessing organization-level metadata.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the specified Git provider.

list_emails List User Emails

Retrieves all email addresses associated with the authenticated user's account, including primary and secondary addresses along with their verification and visibility status.

remove_user_email Remove User Email

Removes a specified email address from the authenticated user's account. The primary email and the last remaining email address cannot be removed.

set_default_email Set Default Email

Designates a specified email address as the primary default for the authenticated user, automatically removing the default status from any previously designated email. Only one email address can hold default status at a time.

list_integrations List Integrations

Retrieves all integrations connected to the authenticated user's account. Returns a paginated list of integration records up to the specified limit.

ParameterTypeDescription
limitstringMaximum number of integrations to return in a single response. Accepts values between 1 and 100.

delete_integration Delete Integration

Permanently removes the connected Git provider integration for the authenticated user. Once deleted, the user will need to re-authenticate to restore access for that provider.

ParameterTypeDescription
provider *stringThe identifier for the Git provider whose integration should be deleted. Accepted values include short codes for supported providers such as GitHub, GitLab, and Bitbucket.

get_organization Get Organization

Retrieves details for a specific organization from a Git provider. Returns organization metadata such as name, settings, and associated information.

ParameterTypeDescription
provider *stringShort identifier for the Git provider hosting the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the specified Git provider.

delete_organization Delete Organization

Permanently removes an organization from Codacy by deleting its association with the specified Git provider. This action cannot be undone and will remove all related configuration and data within Codacy.

ParameterTypeDescription
provider *stringShort identifier for the Git provider hosting the organization, such as GitHub, GitLab, or Bitbucket.
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider platform.

get_organization_by_installation_id Get Organization by Installation ID

Retrieves an organization associated with a specific provider installation ID. Currently supports GitHub ('gh') as the git provider.

ParameterTypeDescription
installationId *stringThe unique numeric identifier of the Codacy installation to look up the associated organization for.
provider *stringThe git provider identifier for the installation. Currently only GitHub ('gh') is supported.

get_organization_billing Get Organization Billing

Retrieves detailed billing information for a specific organization on a Git provider, including subscription and usage details.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the specified Git provider.

update_organization_billing Update Organization Billing

Updates the billing information for a specified organization on a given Git provider. Use this to modify billing details associated with the organization's Codacy account.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the specified Git provider.

get_organization_billing_card Get Organization Billing Card

Retrieves the payment card details associated with an organization's billing account on a specified Git provider. Useful for reviewing current billing payment method information.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the specified Git provider.

add_billing_card Add Billing Card

Adds a payment card to the specified organization's billing profile using a Stripe token. The token must be obtained from the Stripe /v1/tokens API prior to calling this endpoint.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the specified Git provider.

estimate_organization_billing Estimate Organization Billing

Retrieves a billing cost estimation for an organization based on a specified payment plan and optional promotional code. Useful for previewing pricing before committing to a plan.

ParameterTypeDescription
paymentPlanCode *stringThe code identifying the payment plan to estimate costs for. Available plan codes can be retrieved using the listPaymentPlans operation.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
promoCodestringAn optional promotional code to apply discounts or adjustments to the billing estimation.

change_organization_billing_plan Change Organization Billing Plan

Changes the billing plan for a specified organization on a Git provider. Available plan codes can be retrieved using the list_payment_plans operation.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider.

apply_organization_provider_settings Apply Organization Provider Settings

Applies the organization's default provider settings to all repositories within the specified Git provider organization. Use this to propagate updated integration settings uniformly across all repositories at once.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by its short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the Git provider platform.

get_provider_settings Get Provider Settings

Retrieves Git provider integration settings for a specific organization, including configuration details for the connected provider account.

ParameterTypeDescription
provider *stringThe Git provider identifier representing the source control platform to query (e.g., GitHub, GitLab, or Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the specified Git provider platform.

configure_provider_settings Configure Provider Settings

Creates or updates Git provider integration settings for an organization, controlling which Codacy features are active such as status checks, pull request annotations, AI-powered reviews, and coverage summaries.

ParameterTypeDescription
provider *stringShort identifier for the Git provider platform hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
aiEnhancedCommentsbooleanEnables or disables AI-enhanced pull request comments; when combined with Suggested Fixes (GitHub only), AI comments also include inline code fix suggestions.
aiPullRequestReviewerbooleanEnables or disables the AI Pull Request Reviewer, which automatically analyzes pull requests and posts comments on code quality and potential issues. Supported on GitHub only.
aiPullRequestReviewerAutomaticbooleanEnables or disables automatic triggering of the AI Pull Request Reviewer on each new pull request; after the initial automatic review, subsequent reviews must be explicitly requested. Supported on Git…
commitStatusbooleanEnables or disables Codacy commit status checks, which report analysis results directly on commits and pull requests.
coverageSummarybooleanEnables or disables coverage summary reporting on pull requests. Supported on GitHub only.
pullRequestCommentbooleanEnables or disables inline issue annotations posted as pull request comments by Codacy.
pullRequestSummarybooleanEnables or disables pull request summary comments that aggregate Codacy issue findings.
pullRequestUnifiedSummarybooleanEnables or disables a unified pull request summary that combines both coverage and analysis results into a single Codacy comment. Supported on GitHub only.
suggestionsbooleanEnables or disables AI-generated suggested code fixes posted on pull requests. Supported on GitHub only.

get_repository_provider_integration_settings Get Repository Provider Integration Settings

Retrieves the Git provider integration settings for a specific repository, including configuration details that control how Codacy interacts with the provider for that repository.

ParameterTypeDescription
provider *stringShort identifier for the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.

update_repository_integration_settings Update Repository Integration Settings

Updates the Git provider integration settings for a specific repository, controlling which Codacy features are active such as status checks, pull request comments, AI reviews, and coverage summaries.

ParameterTypeDescription
provider *stringShort identifier for the Git provider hosting the repository.
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name as it appears under the organization on the Git provider.
aiEnhancedCommentsbooleanEnables or disables AI-enhanced comments on pull requests; when combined with Suggested Fixes (GitHub only), the AI comments also include fix suggestions.
aiPullRequestReviewerbooleanEnables or disables the AI Pull Request Reviewer, which automatically analyzes pull requests and posts comments on code quality and potential issues. Available on GitHub only.
aiPullRequestReviewerAutomaticbooleanEnables or disables automatic triggering of the AI Pull Request Reviewer on each new pull request; after the initial automatic review, subsequent reviews must be explicitly requested. Available on Git…
commitStatusbooleanEnables or disables commit status checks, which report Codacy analysis results directly on commits and pull requests.
coverageSummarybooleanEnables or disables a coverage summary comment on pull requests showing coverage changes. Available on GitHub only.
pullRequestCommentbooleanEnables or disables inline issue annotations posted as pull request comments for each identified code issue.
pullRequestSummarybooleanEnables or disables pull request summary comments that aggregate all issues found in the analysis.
pullRequestUnifiedSummarybooleanEnables or disables a unified pull request summary that combines both coverage and analysis results into a single comment. Available on GitHub only.
suggestionsbooleanEnables or disables suggested code fixes posted as pull request comments. Available on GitHub only.

create_post_commit_hook Create Post Commit Hook

Creates a post-commit hook integration for a repository, enabling Codacy to receive commit notifications and trigger analysis automatically after each push.

ParameterTypeDescription
provider *stringShort identifier for the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider under which the repository resides.
repositoryName *stringThe name of the repository within the specified Git provider organization for which the post-commit hook will be created.

refresh_repository_provider_integration Refresh Repository Provider Integration

Refreshes the Git provider integration for a specific repository on GitLab or Bitbucket, using the authenticated user's credentials to enable commenting on new pull requests.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository. Accepted values are 'gh' for GitHub, 'gl' for GitLab, or 'bb' for Bitbucket. Note: this operation is only supported for GitLab and Bitbucket.
remoteOrganizationName *stringThe name of the organization or workspace on the Git provider under which the repository resides.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

list_organization_repositories List Organization Repositories

Retrieves repositories belonging to a specific organization on a Git provider for the authenticated user. Supports filtering by sync status, language, and segment, with cursor-based pagination (Bitbucket cursors must be URL-encoded before use in subsequent requests).

ParameterTypeDescription
provider *stringThe Git provider hosting the organization. Use the short identifier code for the desired provider.
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider.
filterstringControls which repositories are returned based on their sync status: `Synced` returns repositories the user has access to, `NotSynced` returns repositories fetched from the provider but not yet synced…
languagesstringFilters results to repositories that use the specified programming languages, provided as a comma-separated list of language names.
limitstringMaximum number of repositories to return per request. Accepts values between 1 and 100; note the API may return more results than specified.
searchstringA search string used to filter repositories by name. Only repositories whose names contain this string will be returned.
segmentsstringFilters results to repositories belonging to the specified segments, provided as a comma-separated list of integer segment identifiers.

get_organization_onboarding_progress Get Organization Onboarding Progress

Retrieves the current onboarding progress for a specific organization on a Git provider. Useful for tracking setup completion status during the organization integration workflow.

ParameterTypeDescription
provider *stringShort code identifying the Git provider where the organization is hosted. Use the provider's abbreviated identifier.
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider platform.

list_organization_people List Organization People

Retrieves a list of people associated with a specific organization on a Git provider, including Codacy users and optionally commit authors who are not Codacy users.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider.
limitstringMaximum number of people to return per request; must be between 1 and 100 inclusive.
onlyMembersbooleanWhen true, restricts results to only registered Codacy users; when false, also includes commit authors who have not joined Codacy.
searchstringFilters the returned people by matching the provided string against their name or related identifiers.

add_organization_members Add Organization Members

Adds people to an organization on the specified Git provider, assigning them as members or committers based on whether they have a pending join request.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

export_organization_people_csv Export Organization People to CSV

Generates and returns a CSV file listing all people in the specified organization, including their name, email, last login date, and last analysis date.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by its short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

remove_organization_members Remove Organization Members

Removes one or more members from a Git provider organization by their email addresses. Useful for revoking access when offboarding users or managing organization membership.

ParameterTypeDescription
emails *arrayList of member email addresses to remove from the organization. Each item must be a valid email address; order is not significant.
provider *stringThe Git provider hosting the organization. Use the short identifier for the target platform.
remoteOrganizationName *stringThe exact organization name as it appears on the Git provider platform.

get_git_provider_app_permissions Get Git Provider App Permissions

Retrieves the current status of Codacy's Git provider app permissions for a specified organization, indicating which permissions have been granted or are missing.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, or Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider platform.

list_organization_people_suggestions List Organization People Suggestions

Retrieves suggested people (users) to add to an organization on a specified Git provider. Useful for discovering potential members based on activity or association with the organization.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the specified Git provider.
limitstringMaximum number of people suggestions to return per request. Accepts values between 1 and 100.
searchstringFilters the returned suggestions to those whose name or identifier contains the provided search string.

reanalyze_commit Reanalyze Commit

Triggers a reanalysis of a specific commit in a repository. Optionally clears the cache before running the analysis to ensure fresh results.

ParameterTypeDescription
commitUuid *stringThe full UUID or SHA hash string that uniquely identifies the commit to be reanalyzed.
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
cleanCachebooleanWhen set to true, clears any cached analysis data before reanalyzing the commit, ensuring the results are not influenced by previous runs.

get_repository Get Repository

Retrieves detailed information about a specific repository within an organization on a given Git provider. Authentication is not required when accessing public repositories.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider platform.
repositoryName *stringThe repository name as it appears within the organization on the Git provider platform.

delete_repository Delete Repository

Permanently removes the specified repository from the organization on the given Git provider. This action cannot be undone and will remove all associated data from Codacy.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization on the Git provider that owns the repository.
repositoryName *stringThe exact name of the repository within the specified organization on the Git provider.

list_repository_people_suggestions List Repository People Suggestions

Retrieves suggested people (collaborators or contributors) for a specific repository within an organization. Useful for discovering relevant users to add or assign within a given repository context.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization as it appears on the Git provider.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.
limitstringMaximum number of people suggestions to return. Accepts values between 1 and 100.
searchstringFilters the returned suggestions to those whose names or identifiers match the provided search string.

list_repository_branches List Repository Branches

Retrieves a paginated list of branches for a specified repository, with optional filtering by enabled status or search term. No authentication is required when accessing public repositories.

ParameterTypeDescription
provider *stringThe short identifier for the Git provider hosting the repository (e.g., 'gh' for GitHub, 'gl' for GitLab, 'bb' for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
directionstringThe direction in which to sort the results. Use 'asc' for ascending order or 'desc' for descending order.
enabledbooleanFilters branches by their enabled status. When set to true, only enabled branches are returned; when set to false, only disabled branches are returned. Omit to return all branches regardless of status…
limitstringThe maximum number of branches to return in a single response. Accepts values between 1 and 100.
searchstringA string used to filter branches by name, returning only branches whose names contain the provided value.
sortstringThe field by which to sort the returned branches. Accepted values are 'name' to sort alphabetically or 'last-updated' to sort by most recent activity.

configure_branch_analysis Configure Branch Analysis

Enable or disable Codacy analysis for a specific repository branch. Use this to control which branches are actively analyzed within a given organization and repository.

ParameterTypeDescription
branchName *stringThe exact name of the branch within the repository to configure.
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name as it appears under the organization on the Git provider.
isEnabledbooleanSet to true to enable Codacy analysis on this branch, or false to disable it.

set_organization_join_mode Set Organization Join Mode

Updates the membership join mode for an organization on a specified Git provider, controlling how new members are admitted (automatically, admin-approved automatically, or by request).

ParameterTypeDescription
joinMode *stringThe join mode to apply to the organization: 'auto' allows anyone to join automatically, 'adminAuto' grants automatic access after admin approval, and 'request' requires members to submit a join reques…
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider.

set_default_branch Set Default Branch

Sets the default branch for a specified repository on Codacy. The target branch must already be enabled on Codacy before it can be designated as the default.

ParameterTypeDescription
branchName *stringName of the branch to designate as the new default; this branch must already be enabled on Codacy.
provider *stringShort code identifying the Git provider hosting the repository.
remoteOrganizationName *stringName of the organization on the Git provider that owns the repository.
repositoryName *stringName of the repository within the organization on the Git provider.

list_branch_required_checks List Branch Required Checks

Retrieves the required status checks configured for a specific branch in a repository. These checks must pass before pull requests can be merged into the branch.

ParameterTypeDescription
branchName *stringThe name of the branch for which required status checks will be retrieved.
provider *stringShort code identifying the Git provider hosting the repository.
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name within the specified organization on the Git provider.

add_codacy_badge Add Codacy Badge

Creates a pull request that adds the Codacy static analysis badge to the repository's README. Only applies to public GitHub repositories that do not already have the badge; the pull request is created asynchronously and may fail after a successful response.

ParameterTypeDescription
remoteOrganizationName *stringThe name of the organization on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.

check_organization_leave_eligibility Check Organization Leave Eligibility

Checks whether the authenticated user is eligible to leave the specified organization, returning either confirmation or the specific reasons preventing them from leaving.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

list_organization_join_requests List Organization Join Requests

Retrieves all pending requests from users asking to join a specified organization on a Git provider. Supports filtering by search term and pagination via a result limit.

ParameterTypeDescription
provider *stringThe short identifier for the Git provider hosting the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider.
limitstringMaximum number of join requests to return in a single response. Accepts values between 1 and 100.
searchstringFilters the returned join requests to those matching the provided search string, such as a username or partial name.

join_organization Join Organization

Joins an organization on a specified Git provider, granting the authenticated user membership in that organization. Requires the provider identifier and the organization's remote name.

ParameterTypeDescription
provider *stringShort code identifying the Git provider where the organization is hosted. Accepted values include identifiers for GitHub, GitLab, and Bitbucket.
remoteOrganizationName *stringThe exact name of the organization as it appears on the specified Git provider. This must match the organization's remote identifier on that platform.

decline_organization_join_requests Decline Organization Join Requests

Declines pending requests from users seeking to join a specified organization on a Git provider. Targets the organization by provider and name, rejecting the specified user emails.

ParameterTypeDescription
provider *stringIdentifier for the Git provider hosting the organization. Use the short code for the target platform (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider. This must match the exact organization identifier used by the provider.

delete_organization_join_request Delete Organization Join Request

Cancels or removes a pending request for a user to join an organization on the specified Git provider. Identified by the provider, organization name, and the user's account identifier.

ParameterTypeDescription
accountIdentifier *stringThe unique numeric identifier of the user account whose join request should be deleted.
provider *stringShort code identifying the Git provider hosting the organization (e.g., GitHub, GitLab, Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

add_repository Add Repository

Adds a new repository to an existing Codacy organization, enabling code quality analysis and tracking for that repository.

ParameterTypeDescription
provider *stringThe Git provider that hosts the repository, identifying the source platform where the repository resides.
repositoryFullPath *stringThe full path of the repository on the Git provider, beginning at the organization level with each path segment separated by a forward slash.

add_organization Add Organization

Registers an organization from a Git provider with Codacy, enabling code quality analysis and management for that organization's repositories.

ParameterTypeDescription
name *stringThe display name of the organization as it appears on the Git provider.
provider *stringThe Git provider that hosts the organization, such as GitHub, GitLab, or Bitbucket.
remoteIdentifier *stringThe unique identifier for the organization on the Git provider, used to locate and link the organization remotely.
type *stringSpecifies whether the entity is a personal account or a shared organization, which determines available features and permissions.
productsarrayA list of Codacy products to enable for the organization, where each item represents a product identifier. Order is not significant.

delete_enterprise_token Delete Enterprise Token

Deletes the stored GitHub Enterprise account token for the authenticated user. Once removed, the token will no longer be used to access enterprise-level resources.

ParameterTypeDescription
provider *stringIdentifier for the Git provider whose enterprise token should be deleted. Accepts short provider codes representing supported Git hosting services.

list_enterprise_provider_tokens List Enterprise Provider Tokens

Retrieves all enterprise provider account tokens configured by the authenticated user on Codacy's platform. Useful for auditing or managing active integrations with enterprise identity and source control providers.

add_enterprise_token Add Enterprise Token

Adds a GitHub Enterprise account token with read permissions for the authenticated user, enabling access to enterprise-level resources and repositories.

ParameterTypeDescription
provider *stringThe Git hosting provider associated with the enterprise account token being added.
token *stringThe GitHub Enterprise personal access token with read permissions to be stored and used for authenticating enterprise-level resource requests.

list_api_tokens List API Tokens

Retrieves all API tokens associated with the authenticated user's account. Useful for auditing active tokens or managing programmatic access credentials.

ParameterTypeDescription
limitstringMaximum number of API tokens to return in a single response. Accepts values between 1 and 100.

create_api_token Create API Token

Creates a new account-level API token for the authenticated user, optionally scoped to a specific expiration date. API tokens are used to authenticate requests to the Codacy.

ParameterTypeDescription
expiresAtstringOptional expiration date and time for the API token in ISO 8601 format. If omitted, the token does not expire.

delete_user_token Delete User Token

Permanently deletes a specific API token belonging to the authenticated user. Once deleted, any integrations or clients using this token will lose access immediately.

ParameterTypeDescription
tokenId *stringThe unique numeric identifier of the API token to delete. Obtain this ID from the list of tokens associated with the authenticated user's account.

delete_billing_subscription Delete Billing Subscription

Permanently removes the billing subscription for a specified organization on a given Git provider. This action cancels the organization's current billing plan and cannot be undone.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, or Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the specified Git provider.

list_provider_integrations List Provider Integrations

Retrieves a list of provider integrations configured on Codacy's platform. Use this to discover available third-party integrations such as version control, CI, or issue tracking providers.

ParameterTypeDescription
limitstringMaximum number of provider integrations to return in a single response. Accepts values between 1 and 100.

search_entities Search Entities

Search across Codacy entities such as Organizations and Repositories by name or ID. Restricted to Codacy admins only.

ParameterTypeDescription
searchstringA search string used to filter results by matching against entity names or IDs such as organizations or repositories.

delete_dormant_accounts Delete Dormant Accounts

Permanently deletes Codacy user accounts identified as dormant, based on a CSV file exported from GitHub Enterprise. Restricted to Codacy administrators only.

ParameterTypeDescription
bodystringRaw CSV content exported from GitHub Enterprise identifying the dormant user accounts to be deleted.

list_tool_supported_languages List Tool Supported Languages

Retrieves the list of programming or spoken languages supported by the currently available tools. Use this to determine valid language options before invoking language-specific tool operations.

list_tools List Tools

Retrieve a paginated list of available tools. Use the limit parameter to control how many tools are returned in a single response.

ParameterTypeDescription
limitstringMaximum number of tools to return in the response. Accepts values between 1 and 100.

list_tool_patterns List Tool Patterns

Retrieves the list of patterns associated with a specific tool. Supports filtering by enabled status and limiting the number of results returned.

ParameterTypeDescription
toolUuid *stringThe unique UUID identifying the tool whose patterns should be retrieved.
enabledbooleanFilters patterns by their enabled status. Set to true to return only enabled patterns, or false to return only disabled patterns. Omit to return all patterns regardless of status.
limitstringMaximum number of patterns to return in a single response. Accepts values between 1 and 100.

submit_pattern_feedback Submit Pattern Feedback

Submits user feedback on an enriched tool pattern for a specific organization, indicating whether the pattern is considered relevant and optionally providing a written explanation.

ParameterTypeDescription
patternId *stringThe identifier of the specific pattern within the tool that the feedback applies to.
provider *stringShort code identifying the Git hosting provider (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
reactionFeedback *booleanBoolean vote on the enriched pattern's relevance — true indicates the pattern is considered good or relevant, false indicates it is not.
remoteOrganizationName *stringThe name of the organization on the specified Git provider whose context scopes this feedback.
toolUuid *stringThe unique UUID identifying the tool whose pattern is being reviewed.
feedbackstringOptional free-text explanation describing why the enriched pattern is considered irrelevant or problematic, providing additional context for the negative feedback.

get_pattern Get Pattern

Retrieves the full definition of a specific pattern associated with a given tool. Use this to inspect pattern rules, configuration, and metadata for a tool's code analysis or style enforcement pattern.

ParameterTypeDescription
patternId *stringThe identifier of the specific pattern to retrieve, typically referencing a named rule or checker within the tool.
toolUuid *stringThe UUID uniquely identifying the tool whose pattern you want to retrieve.

list_duplication_tools List Duplication Tools

Retrieves the complete list of available duplication tools. Use this to discover which duplication tools are accessible for subsequent operations.

list_metrics_tools List Metrics Tools

Retrieves the complete list of available metrics tools. Use this to discover which metrics tools are accessible for monitoring, analysis, or reporting workflows.

start_organization_metrics_collection Start Organization Metrics Collection

Initiates data collection for any missing metrics within the specified organization. The organization must have metrics support enabled before calling this endpoint.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
metricsarrayList of specific metric identifiers to start collecting. If omitted, collection is initiated for all missing metrics. Order is not significant.

list_ready_metrics List Ready Metrics

Retrieves the list of metrics that have completed data collection for a specified organization on a Git provider. Use this to determine which metrics are available and ready to query before requesting detailed metric data.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the organization. Accepted values include identifiers for GitHub, GitLab, and Bitbucket.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider, used to scope the metrics retrieval to that specific organization.

get_latest_metric_value Get Latest Metric Value

Retrieves the current (latest) value of an aggregating metric for an organization, such as open issues. Note: this endpoint only supports aggregating metrics and does not work for accumulating metrics like fixed issues.

ParameterTypeDescription
metricName *stringThe identifier of the metric to retrieve. Use the readyMetricsForOrganization endpoint to list all available metric names for the organization.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
dimensionsFilterarrayOptional list of dimension filters to narrow the metric query by specific dimensional criteria. Order is not significant.
repositoriesarrayOptional list of repository identifiers to scope the metric value to specific repositories within the organization. Order is not significant.
segmentIdsarrayOptional list of segment IDs used to filter the metric value by predefined organizational segments. Order is not significant.

get_latest_grouped_metric_values Get Latest Grouped Metric Values

Retrieves the latest values for an aggregating metric grouped by a specified dimension such as organization, repository, or a metric-specific dimension like category or severity. Not compatible with accumulating metrics such as fixed issues.

ParameterTypeDescription
groupBy *arrayOne or more grouping dimensions that determine how metric values are aggregated and returned. Accepted values are `organization`, `repository`, or a metric-specific dimension; for OpenIssues, NewIssue…
metricName *stringThe name of the aggregating metric to retrieve latest grouped values for. Use the readyMetricsForOrganization endpoint to list all available metric names.
provider *stringThe Git provider hosting the organization, used to identify which platform to query.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
dimensionsFilterarrayList of dimension filter values to narrow the metric results. Valid dimension values depend on the requested metric.
limitintegerMaximum number of grouped metric value entries to return in the response.
repositoriesarrayList of repository names to scope the metric results to. When omitted, results span all repositories in the organization.
segmentIdsarrayList of segment identifiers to filter the metric results by. When omitted, no segment filtering is applied.
sortDirectionstringDirection in which the returned metric values are sorted, either ascending or descending.

get_metric_period_value Get Metric Period Value

Retrieves the value of a specific organization metric for a given time period, identified by its start date. Aggregating metrics return the average value for the period, while accumulating metrics return the total historical sum.

ParameterTypeDescription
date *stringThe start date of the period for which to retrieve the metric value, in ISO 8601 date-time format.
metricName *stringThe unique name of the metric to retrieve. Use the readyMetricsForOrganization operation to list all available metric names for the organization.
period *stringThe granularity of the time period to retrieve the metric for, determining how the start date is interpreted and the duration of the window.
provider *stringThe Git provider hosting the organization, specified as a short identifier code.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
dimensionsFilterarrayOptional list of dimension filters to narrow the metric data by specific dimensional criteria.
repositoriesarrayOptional list of repository names to scope the metric retrieval. When omitted, the metric is calculated across all repositories in the organization.
segmentIdsarrayOptional list of segment IDs to filter the metric data by predefined organizational segments.

get_grouped_metric_values_for_period Get Grouped Metric Values for Period

Retrieves metric values for a specific time period, grouped by a chosen dimension such as organization, repository, or a metric-specific dimension. Aggregating metrics return averages while accumulating metrics return sums representing total historical change.

ParameterTypeDescription
date *stringThe start date of the period for which to retrieve metric values, specified in ISO 8601 date-time format.
groupBy *arrayDimension by which to group the returned metric values. Accepts 'organization', 'repository', or a metric-specific dimension. For OpenIssues, NewIssues, and FixedIssues, valid dimensions are 'category…
metricName *stringThe metric to retrieve values for. Use the readyMetricsForOrganization endpoint to list all available metric names for your organization.
period *stringThe granularity of the time period to retrieve metric values for, relative to the provided start date.
provider *stringIdentifier for the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
dimensionsFilterarrayList of dimension filter values to narrow metric results to specific dimension members. Items should match valid dimension values for the requested metric.
limitintegerMaximum number of grouped value entries to return in the response.
repositoriesarrayList of repository names to scope the metric results to. When omitted, results include all repositories in the organization.
segmentIdsarrayList of segment identifiers to filter the metric results by. When omitted, no segment filtering is applied.
sortDirectionstringDirection in which to sort the returned grouped values, either ascending or descending.

get_metric_time_range_values Get Metric Time Range Values

Retrieves time-series values for a specific metric within an organization, grouped by period and optionally by repository, organization, or a metric-specific dimension. Supports filtering by repositories or segments and controlling time granularity via the period parameter.

ParameterTypeDescription
groupBy *arraySpecifies how results are grouped. Accepted values are `organization`, `repository`, or a metric-specific dimension (e.g., `category` or `severity` for issue-related metrics). Order of items is not si…
metricName *stringThe metric to retrieve values for. Use the readyMetricsForOrganization endpoint to discover all available metric names for your organization.
provider *stringIdentifier for the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
dimensionsFilterarrayList of dimension filters to narrow metric results to specific dimension values. Valid dimensions depend on the requested metric.
limitintegerMaximum number of results to return. When omitted, the backend applies a default limit.
periodstringTime granularity for grouping metric values. When omitted, the backend selects a default granularity based on the requested time range.
repositoriesarrayList of repository names to scope the metric results to. When omitted, results cover all repositories in the organization.
segmentIdsarrayList of segment IDs to filter the metric results by. When omitted, no segment filtering is applied.
sortDirectionstringControls the sort direction of the returned results. Applies to the ordering of grouped or time-series data.
time_rangestringTime range in ISO 8601 interval format: 'YYYY-MM-DD/YYYY-MM-DD' (start date / end date)

list_ready_enterprise_metrics List Ready Enterprise Metrics

Retrieves the list of metrics that have completed data collection for each organization within a specified enterprise. Useful for determining which metrics are available and ready to query before fetching detailed analytics.

ParameterTypeDescription
enterpriseName *stringThe unique slug (URL-friendly name) identifying the enterprise whose ready metrics are being retrieved.
provider *stringIdentifier for the Git provider hosting the enterprise. Specifies which version control platform to target.

get_latest_enterprise_metric_values Get Latest Enterprise Metric Values

Retrieves the most recent value of a specified aggregating metric (e.g., open issues) for every organization within an enterprise. Note: this endpoint only supports aggregating metrics and does not work for accumulating metrics such as fixed issues.

ParameterTypeDescription
enterpriseName *stringThe URL-friendly slug name that uniquely identifies the enterprise.
metricName *stringThe name of the aggregating metric to retrieve latest values for. Use the readyMetricsForOrganization endpoint to discover all available metric names.
provider *stringIdentifier for the Git provider hosting the enterprise.
dimensionsFilterarrayOptional list of dimension filters to narrow the metric results. Each item specifies a dimension constraint to apply when retrieving metric values across organizations.

list_enterprise_metric_latest_values_grouped List Enterprise Metric Latest Values Grouped

Retrieves the latest values of a non-accumulating aggregating metric for all organizations in an enterprise, grouped by a specified dimension such as organization, category, or severity. Grouping by repository is not supported, and accumulating metrics (e.g., fixed issues) are excluded.

ParameterTypeDescription
enterpriseName *stringThe URL-friendly slug name that uniquely identifies the enterprise.
groupBy *arrayOne or more grouping dimensions that determine how results are aggregated. Accepted values are `organization` or a valid metric dimension; for OpenIssues, NewIssues, and FixedIssues the supported dime…
metricName *stringThe name of the metric to retrieve latest grouped values for. Must be a non-accumulating metric; use the ready metrics endpoint to discover available metric names.
provider *stringIdentifier for the Git provider hosting the enterprise.
dimensionsFilterarrayList of dimension values used to filter the grouped results, restricting output to only the specified dimension entries.
limitintegerMaximum number of grouped result entries to return.
sortDirectionstringDirection in which the grouped results are sorted, either ascending or descending.

get_enterprise_metric_by_period Get Enterprise Metric by Period

Retrieves metric values for each organization within an enterprise for a specific time period, identified by its start date. Aggregating metrics return the average value, while accumulating metrics return the total historical sum.

ParameterTypeDescription
date *stringThe start date of the period to retrieve, in ISO 8601 date-time format.
enterpriseName *stringThe URL-friendly slug name of the enterprise to retrieve metrics for.
metricName *stringThe name of the metric to retrieve. Use the list available metrics operation to discover valid metric names.
period *stringThe granularity of the time period to aggregate metric values over. Must be one of: day, week, or month.
provider *stringIdentifier for the Git provider hosting the enterprise.
dimensionsFilterarrayOptional list of dimension filters to narrow results. Each item specifies a dimension and value to filter by; order is not significant.

get_enterprise_metric_grouped_by_period Get Enterprise Metric Grouped by Period

Retrieves metric values grouped by a specified dimension (such as organization or a metric-specific dimension) for all organizations in an enterprise, scoped to a single time period identified by its start date. Aggregating metrics return averages while accumulating metrics return sums representing total historical change.

ParameterTypeDescription
date *stringThe start date and time of the period to retrieve, in ISO 8601 date-time format.
enterpriseName *stringThe URL-friendly slug name that uniquely identifies the enterprise.
groupBy *arraySpecifies how results should be grouped. Accepted values are `organization` or a valid dimension for the requested metric (e.g., `category` or `severity` for issue-related metrics). Grouping by `repos…
metricName *stringThe name of the metric to retrieve data for. Use the list available metrics operation to discover valid metric names.
period *stringThe granularity of the time period to retrieve data for, determining whether the period spans a day, week, or month from the specified start date.
provider *stringIdentifier for the Git provider hosting the enterprise.
dimensionsFilterarrayOptional list of dimension filters to narrow results. Each item specifies a dimension and value to filter by, limiting the data returned to matching entries.
limitintegerMaximum number of grouped result entries to return.
sortDirectionstringControls the sort order of the returned values, either ascending or descending.

get_enterprise_metric_timeseries Get Enterprise Metric Timeseries

Retrieves time-series values for a specific metric across all organizations in an enterprise, grouped by period and optionally by organization or a metric dimension. Aggregating metrics return averages while accumulating metrics return sums; time granularity is controlled via the period parameter.

ParameterTypeDescription
enterpriseName *stringThe URL-friendly slug name that uniquely identifies the enterprise.
from *stringStart of the time range for which metric values are retrieved, inclusive. Must be provided in ISO 8601 date-time format.
groupBy *arraySpecifies how results are grouped in addition to period date. Accepted values are `organization` or a valid dimension for the metric (e.g., `category` or `severity` for OpenIssues, NewIssues, and Fixe…
metricName *stringThe metric to retrieve time-series data for. Use the readyMetricsForOrganization endpoint to list all available metric names.
provider *stringIdentifier for the Git provider hosting the enterprise.
to *stringEnd of the time range for which metric values are retrieved, inclusive. Must be provided in ISO 8601 date-time format.
dimensionsFilterarrayOptional list of dimension filters to narrow results. Each item should specify a dimension and its filter value relevant to the requested metric.
limitintegerMaximum number of results to return. Use to cap the size of the response payload.
periodstringTime granularity for grouping returned data points. If omitted, the backend selects a default granularity based on the requested range.
sortDirectionstringControls the sort order of returned results. Determines whether values are sorted in ascending or descending order.

list_repository_files List Repository Files

Retrieves the most recent analysis results for all tracked files in a repository, equivalent to the Codacy Files page view. Ignored files are excluded from results.

ParameterTypeDescription
provider *stringShort identifier for the Git provider hosting the repository.
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name as it appears under the organization on the Git provider.
branchstringName of a branch enabled on Codacy to scope the file analysis results. Defaults to the repository's main branch if omitted.
directionstringOrder in which to return sorted results — ascending (asc) or descending (desc).
limitstringMaximum number of files to return per request. Accepts values between 1 and 100.
searchstringFilters the returned files to those whose relative path contains this string, enabling partial-match searches.
sortstringField by which to sort the file list. Accepted values are filename, issues, grade, duplication, complexity, and coverage.

list_ignored_files List Ignored Files

Retrieves the most recently recorded list of ignored files for a repository on Codacy. When a Codacy configuration file is present, the ignored files list is read-only and reflects what was excluded during the last analysis.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.
branchstringThe name of a branch enabled on Codacy to scope the ignored files results; defaults to the main branch configured in Codacy repository settings if omitted.
limitstringThe maximum number of ignored files to return in a single response, between 1 and 100 inclusive.
searchstringA string used to filter results, returning only files whose relative path contains this value anywhere within it.

get_file_analysis Get File Analysis

Retrieves analysis information and coverage metrics for a specific file in a repository. Returns quality insights and coverage data associated with the file at a particular commit.

ParameterTypeDescription
fileId *stringThe unique numeric identifier for a file tied to a specific commit, used to retrieve its analysis and coverage data.
provider *stringShort code identifying the Git provider hosting the repository, such as gh for GitHub, gl for GitLab, or bb for Bitbucket.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

list_file_clones List File Clones

Retrieves all duplicated code blocks (clones) detected within a specific file in a repository. Useful for identifying code duplication issues at the file level.

ParameterTypeDescription
fileId *stringThe unique numeric identifier for a file tied to a specific commit. This ID is commit-scoped and can be obtained from file listing endpoints.
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
limitstringMaximum number of duplicate code block results to return. Accepts values between 1 and 100, defaulting to 100 if not specified.

list_file_issues List File Issues

Retrieves the list of code quality issues found in a specific file within a repository. Results are scoped to the file identified by its commit-specific file ID.

ParameterTypeDescription
fileId *stringThe unique identifier for a file tied to a specific commit. This ID is commit-scoped and may differ across commits for the same file path.
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
limitstringMaximum number of issues to return in a single response. Accepts values between 1 and 100, defaulting to 100 if not specified.

get_ai_risk_checklist Get AI Risk Checklist

Retrieves the AI risk checklist for a specified organization on a Git provider, summarizing potential security, compliance, and quality risks identified by AI analysis.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the specified Git provider.

list_coding_standards List Coding Standards

Retrieves all coding standards for a specified organization, including both active and draft coding standards. Useful for auditing or managing code quality rules across an organization.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, used to identify which platform to query.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider, used to scope the coding standards lookup.

create_coding_standard Create Coding Standard

Creates a new draft coding standard for an organization, optionally using an existing repository or coding standard as a template. The draft must be promoted to become effective; use promoteDraftCodingStandard to complete that step.

ParameterTypeDescription
languages *arrayList of programming languages the new coding standard will cover. Order is not significant; each item should be a supported language name.
name *stringHuman-readable name for the new coding standard, used to identify it within the organization.
provider *stringShort code identifying the Git provider hosting the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
sourceCodingStandardstringNumeric identifier of an existing coding standard to use as a template, carrying over its enabled repositories and default coding standard status to the new one.
sourceRepositorystringName of an existing repository within the same organization to use as a template for tool and language settings when creating the new coding standard.

create_compliance_standard Create Compliance Standard

Creates a new compliance standard for the specified organization on a Git provider. Use this to establish compliance frameworks, such as AI risk policies, that govern code quality and usage rules across the organization.

ParameterTypeDescription
complianceType *stringThe category of compliance standard to create. Currently supports AI risk compliance, which enforces policies around AI-generated code usage.
name *stringA human-readable display name for the compliance standard being created.
provider *stringShort code identifying the Git provider hosting the organization (e.g., GitHub, GitLab, Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

create_coding_standard_from_preset Create Coding Standard from Preset

Creates a new coding standard for an organization by selecting preset severity levels across key code quality categories. Optionally sets the new standard as the organization's default.

ParameterTypeDescription
bestPractices *stringPreset level for best practice rules, controlling how strictly deviations from recommended coding conventions are flagged. Accepts values from 1 (least strict) to 4 (most strict).
bugRisk *stringPreset level for bug risk rules, controlling how strictly potential bugs and error-prone patterns are flagged. Accepts values from 1 (least strict) to 4 (most strict).
codeStyle *stringPreset level for code style rules, controlling how strictly formatting and stylistic inconsistencies are flagged. Accepts values from 1 (least strict) to 4 (most strict).
documentation *stringPreset level for documentation rules, controlling how strictly missing or inadequate code documentation is flagged. Accepts values from 1 (least strict) to 4 (most strict).
isDefault *booleanWhen set to true, this coding standard will automatically become the default applied to all repositories in the organization.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
security *stringPreset level for security rules, controlling how strictly security vulnerabilities and unsafe coding patterns are flagged. Accepts values from 1 (least strict) to 4 (most strict).
namestringA human-readable label for the new coding standard to help identify it within the organization.

get_coding_standard Get Coding Standard

Retrieves the details of a specific coding standard within an organization, including its configured rules and settings. Useful for inspecting or auditing code quality policies applied to repositories.

ParameterTypeDescription
codingStandardId *stringThe unique numeric identifier of the coding standard to retrieve, as assigned by Codacy.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider platform.

delete_coding_standard Delete Coding Standard

Permanently deletes a coding standard from the specified organization. This action is irreversible and removes all associated rule configurations.

ParameterTypeDescription
codingStandardId *stringThe unique numeric identifier of the coding standard to delete, as returned when the coding standard was created or listed.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the Git provider platform.

duplicate_coding_standard Duplicate Coding Standard

Creates a copy of an existing coding standard within the specified organization, preserving all rules and configurations from the original. Useful for creating variations of a standard without modifying the source.

ParameterTypeDescription
codingStandardId *stringThe unique numeric identifier of the coding standard to duplicate.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the Git provider platform.

list_coding_standard_tools List Coding Standard Tools

Retrieves all tools configured within a specific coding standard for an organization. Useful for auditing which static analysis tools are enabled and their associated rule configurations.

ParameterTypeDescription
codingStandardId *stringThe unique numeric identifier of the coding standard whose tools should be listed.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

set_default_coding_standard Set Default Coding Standard

Sets or unsets a specific coding standard as the default for an organization, controlling which coding standard is automatically applied to new projects.

ParameterTypeDescription
codingStandardId *stringThe unique numeric identifier of the coding standard to set or unset as the default.
isDefault *booleanWhen true, designates this coding standard as the organization's default; when false, removes its default status.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

list_coding_standard_tool_patterns List Coding Standard Tool Patterns

Retrieves the list of code patterns configured for a specific tool within a coding standard, supporting filtering by language, category, severity, tags, and enabled/recommended status.

ParameterTypeDescription
codingStandardId *stringThe numeric identifier of the coding standard to retrieve patterns from.
provider *stringThe short identifier for the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
toolUuid *stringThe UUID identifying the specific tool whose patterns should be listed.
categoriesstringComma-separated list of pattern categories to filter by. Valid values are `Security`, `ErrorProne`, `CodeStyle`, `Compatibility`, `UnusedCode`, `Complexity`, `Comprehensibility`, `Documentation`, `Bes…
directionstringThe direction in which results are sorted — `asc` for ascending or `desc` for descending.
enabledbooleanWhen set to `true`, returns only enabled patterns; when set to `false`, returns only disabled patterns. Omit to return patterns regardless of enabled status.
languagesstringComma-separated list of programming language names to filter patterns by; only patterns applicable to the specified languages are returned.
limitstringMaximum number of patterns to return per request. Must be between 1 and 100 inclusive.
recommendedbooleanWhen set to `true`, returns only recommended patterns; when set to `false`, returns only non-recommended patterns. Omit to return patterns regardless of recommended status.
searchstringA search string used to filter patterns by name or description; returns patterns whose metadata contains this value.
severityLevelsstringComma-separated list of severity levels to filter by. Valid values are `Error`, `High`, `Warning`, and `Info`.
sortstringThe field by which to sort the returned patterns. Valid values are `category`, `recommended`, and `severity`.
tagsstringComma-separated list of pattern tags to filter by; only patterns matching at least one of the specified tags are returned.

get_coding_standard_tool_patterns_overview Get Coding Standard Tool Patterns Overview

Retrieves a summary overview of code patterns for a specific tool within a coding standard, showing counts and distribution across categories, severities, and statuses. Supports filtering by language, category, severity, tags, search term, enabled state, and recommended status.

ParameterTypeDescription
codingStandardId *stringThe numeric identifier of the coding standard whose tool patterns overview is being requested.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
toolUuid *stringThe UUID uniquely identifying the tool within the coding standard.
categoriesstringComma-separated list of pattern categories to filter by. Valid values are Security, ErrorProne, CodeStyle, Compatibility, UnusedCode, Complexity, Comprehensibility, Documentation, BestPractice, and Pe…
enabledbooleanWhen set to true, returns only enabled patterns; when set to false, returns only disabled patterns. Omit to return patterns regardless of enabled state.
languagesstringComma-separated list of programming language names to restrict the overview to patterns applicable to those languages.
recommendedbooleanWhen set to true, returns only patterns marked as recommended; when set to false, returns only non-recommended patterns. Omit to return patterns regardless of recommended status.
searchstringA search string used to filter patterns by matching against pattern names or descriptions.
severityLevelsstringComma-separated list of severity levels to filter by. Valid values are Error, High, Warning, and Info.
tagsstringComma-separated list of pattern tags to filter results to only patterns associated with those tags.

bulk_update_coding_standard_tool_patterns Bulk Update Coding Standard Tool Patterns

Enable or disable multiple code patterns for a specific tool within a coding standard. Use optional filters to target a subset of patterns by language, category, severity, tags, or search term, or omit all filters to apply the update to every pattern in the tool.

ParameterTypeDescription
codingStandardId *stringNumeric identifier of the coding standard to update patterns within.
enabled *booleanWhether to enable or disable the matched code patterns; true enables them and false disables them.
provider *stringShort code identifying the Git provider hosting the organization.
remoteOrganizationName *stringExact name of the organization as it appears on the Git provider.
toolUuid *stringUUID of the tool whose code patterns will be updated within the coding standard.
categoriesstringComma-separated list of pattern categories to restrict which patterns are updated. Valid values are Security, ErrorProne, CodeStyle, Compatibility, UnusedCode, Complexity, Comprehensibility, Documenta…
languagesstringComma-separated list of programming language names to restrict which patterns are updated.
recommendedbooleanRestricts the update to patterns based on their recommended status; true targets only recommended patterns, false targets only non-recommended patterns.
searchstringFree-text string used to filter patterns by name or description before applying the update.
severityLevelsstringComma-separated list of severity levels to restrict which patterns are updated. Valid values are Error, High, Warning, and Info.
tagsstringComma-separated list of pattern tags to restrict which patterns are updated.

configure_coding_standard_tool Configure Coding Standard Tool

Toggle a tool's enabled status and update its code patterns within a draft coding standard. Only the code patterns included in the request body are modified, with a maximum of 1000 code patterns configurable per call.

ParameterTypeDescription
codingStandardId *stringThe numeric identifier of the draft coding standard to configure. Only draft coding standards can be updated.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
toolUuid *stringThe UUID uniquely identifying the tool to configure within the coding standard.

list_coding_standard_repositories List Coding Standard Repositories

Retrieves the list of repositories currently using a specific coding standard within an organization. Useful for auditing which repositories are governed by a given set of coding rules.

ParameterTypeDescription
codingStandardId *stringThe unique numeric identifier of the coding standard whose associated repositories should be listed.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider.
limitstringMaximum number of repositories to return per request. Accepts values between 1 and 100; defaults to 100 if not specified.

update_coding_standard_repositories Update Coding Standard Repositories

Links or unlinks a set of repositories to a specified coding standard within an organization. If the coding standard is in draft state, changes take effect only upon promoting it.

ParameterTypeDescription
codingStandardId *stringUnique numeric identifier of the coding standard to update.
link *arrayList of repository names to associate with the coding standard. Order is not significant; each item should be the repository's name as it appears on the Git provider.
provider *stringIdentifier for the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
unlink *arrayList of repository names to dissociate from the coding standard. Order is not significant; each item should be the repository's name as it appears on the Git provider.

set_default_gate_policy Set Default Gate Policy

Sets a specified gate policy as the default for an organization, ensuring it is applied automatically when no other policy is explicitly assigned.

ParameterTypeDescription
gatePolicyId *stringThe unique numeric identifier of the gate policy to designate as the default.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider platform.

set_default_gate_policy_to_codacy_builtin Set Default Gate Policy to Codacy Builtin

Sets the built-in Codacy gate policy as the default quality gate for the specified organization, replacing any previously configured default policy.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, or Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the Git provider platform.

get_gate_policy Get Gate Policy

Retrieves the details of a specific gate policy within an organization. Gate policies define quality and security criteria that must be met before code changes are accepted.

ParameterTypeDescription
gatePolicyId *stringThe unique numeric identifier of the gate policy to retrieve.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider platform.

update_gate_policy Update Gate Policy

Updates an existing quality gate policy for an organization, allowing modification of thresholds, severity filters, and default status. Quality gate policies define the criteria that must be met for a pull request or commit to pass code quality checks.

ParameterTypeDescription
gatePolicyId *stringThe unique numeric identifier of the gate policy to update.
provider *stringThe short code identifying the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
threshold *stringThe maximum number of new issues allowed before the quality gate fails. Must be zero or greater.
complexityThresholdstringThe maximum allowed complexity value introduced by new code; the gate fails if this threshold is exceeded. Must be zero or greater.
coverageThresholdWithDecimalsnumberThe minimum required change in coverage percentage; the gate fails if coverage varies by less than this value. Accepts negative values to allow coverage decreases up to a specified amount, with a maxi…
diffCoverageThresholdstringThe minimum required diff coverage percentage; the gate fails if diff coverage falls below this value. Must be between 0 and 100 inclusive.
duplicationThresholdstringThe maximum number of new duplicated code blocks allowed before the quality gate fails.
gatePolicyNamestringThe human-readable display name for the gate policy.
isDefaultbooleanWhen true, this gate policy becomes the default applied to all repositories in the organization that do not have an explicitly assigned policy.
minimumSeveritystringThe minimum severity level of issues that count toward the issue threshold. Severity levels map to the UI as: Info → Minor, Warning → Medium, High → High, Error → Critical.
securityIssueMinimumSeveritystringThe minimum severity level of security issues that count toward the security issue threshold. Severity levels map to the UI as: Info → Minor, Warning → Medium, High → High, Error → Critical.
securityIssueThresholdstringThe maximum number of new security issues allowed before the quality gate fails. Must be zero or greater.

delete_gate_policy Delete Gate Policy

Permanently deletes a specific gate policy from an organization on the specified Git provider. This action is irreversible and removes all associated policy configurations.

ParameterTypeDescription
gatePolicyId *stringThe unique numeric identifier of the gate policy to delete.
provider *stringShort code identifying the Git provider for the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

list_gate_policies List Gate Policies

Retrieves all gate policies configured for a specified organization on a Git provider. Gate policies define quality or security gates that govern code merging and deployment workflows.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the specified Git provider.
limitstringMaximum number of gate policies to return in a single response. Accepts values between 1 and 100, defaulting to 100 if not specified.

create_gate_policy Create Gate Policy

Creates a new quality gate policy for an organization on a Git provider, defining thresholds for issues, duplication, coverage, and complexity that must be met for a gate to pass.

ParameterTypeDescription
gatePolicyName *stringA unique, human-readable name to identify this gate policy within the organization.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
threshold *stringThe maximum number of new issues allowed before the quality gate fails; must be zero or greater.
complexityThresholdstringThe maximum cumulative complexity value allowed before the quality gate fails; must be zero or greater.
coverageThresholdWithDecimalsnumberThe minimum change in coverage percentage required to pass the quality gate; use a negative value to allow coverage to decrease by that amount (e.g., -0.02 allows up to a 2% drop). Must be at most 1.0…
diffCoverageThresholdstringThe minimum diff coverage percentage required to pass the quality gate; must be between 0 and 100 inclusive.
duplicationThresholdstringThe maximum number of new duplicated blocks allowed before the quality gate fails.
isDefaultbooleanWhen true, this policy becomes the default gate policy applied to repositories in the organization that have no explicitly assigned policy.
minimumSeveritystringThe minimum severity level of issues counted toward the issue threshold. Severity levels map to the UI as: Info → Minor, Warning → Medium, High → High, Error → Critical.
securityIssueMinimumSeveritystringThe minimum severity level of security issues counted toward the security issue threshold. Severity levels map to the UI as: Info → Minor, Warning → Medium, High → High, Error → Critical.
securityIssueThresholdstringThe maximum number of new security issues allowed before the quality gate fails; must be zero or greater.

sync_organization_name Sync Organization Name

Synchronizes the organization's display name in Codacy with the current name from the specified Git provider, ensuring both systems remain consistent.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the organization, such as gh for GitHub, gl for GitLab, or bb for Bitbucket.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider, used to locate the correct organization for synchronization.

check_submodules_enabled Check Submodules Enabled

Checks whether the submodules option is currently enabled for a specified organization on a Git provider. Useful for verifying organization-level repository settings before performing submodule-dependent operations.

ParameterTypeDescription
provider *stringShort code identifying the Git provider for the organization, such as GitHub, GitLab, or Bitbucket.
remoteOrganizationName *stringThe organization's name as it appears on the specified Git provider.

list_gate_policy_repositories List Gate Policy Repositories

Retrieves all repositories that are following a specific gate policy within an organization. Useful for auditing which repositories are governed by a given quality gate configuration.

ParameterTypeDescription
gatePolicyId *stringThe unique numeric identifier of the gate policy whose associated repositories should be listed.
provider *stringThe Git provider hosting the organization. Use the short identifier for the target provider.
remoteOrganizationName *stringThe organization name as it appears on the Git provider.
limitstringMaximum number of repositories to return per request. Accepts values between 1 and 100.

update_gate_policy_repositories Update Gate Policy Repositories

Links or unlinks a set of repositories to a specified gate policy within an organization. Allows simultaneous association and disassociation of repositories in a single request.

ParameterTypeDescription
gatePolicyId *stringThe unique numeric identifier of the gate policy to which repositories will be linked or unlinked.
link *arrayList of repository names to associate with the gate policy. Order is not significant; each item should be the repository's name as it appears on the Git provider.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the Git provider platform.
unlink *arrayList of repository names to disassociate from the gate policy. Order is not significant; each item should be the repository's name as it appears on the Git provider.

promote_coding_standard Promote Coding Standard

Promotes a draft coding standard to active/effective status for the specified organization, making it the default if it was marked as such. Returns the results of applying the promoted coding standard across the organization's repositories.

ParameterTypeDescription
codingStandardId *stringThe unique numeric identifier of the draft coding standard to promote.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

list_repository_api_tokens List Repository API Tokens

Retrieves all API tokens associated with a specific repository in a Codacy organization. These tokens can be used to authenticate API requests scoped to the repository.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization as it appears on the Git provider platform.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

create_repository_token Create Repository Token

Creates a new API token scoped to a specific repository, enabling authenticated access to that repository's resources via the Codacy.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider platform.
repositoryName *stringThe repository name within the specified organization on the Git provider.

delete_repository_token Delete Repository Token

Permanently deletes a specific API token associated with a repository by its unique ID. This revokes any access previously granted through that token.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the organization and repository.
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider platform.
repositoryName *stringThe repository name as it appears under the organization on the Git provider platform.
tokenId *stringThe numeric identifier of the repository API token to delete. Obtain this ID from the list repository tokens operation.

list_coverage_reports List Coverage Reports

Retrieves the most recent coverage reports and their statuses for a specified repository. Useful for monitoring code coverage trends and identifying the latest analysis results.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.
limitstringMaximum number of coverage reports to return, between 1 and 100 inclusive. Defaults to 100 if not specified.

list_commit_coverage_reports List Commit Coverage Reports

Retrieves all code coverage reports associated with a specific commit in a repository. Useful for reviewing coverage data uploaded from multiple sources or tools for a given commit.

ParameterTypeDescription
commitUuid *stringThe full commit UUID or SHA hash that uniquely identifies the commit whose coverage reports should be listed.
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name within the specified organization on the Git provider.
limitstringMaximum number of coverage reports to return in a single response. Accepts values between 1 and 100.

get_commit_coverage_report Get Commit Coverage Report

Retrieves a specific coverage report and its contents for a given commit in a repository. Use this to inspect detailed coverage data associated with a particular report UUID.

ParameterTypeDescription
commitUuid *stringThe UUID or full SHA hash that uniquely identifies the commit whose coverage report is being retrieved.
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
reportUuid *stringThe UUID that uniquely identifies the specific coverage report to retrieve within the commit.
repositoryName *stringThe name of the repository within the specified Git provider organization.

get_file_content Get File Content

Retrieves the raw content of a specific file from a repository at a given commit reference, with optional line range filtering. Files exceeding 1MB will return a PayloadTooLarge error.

ParameterTypeDescription
filePath *stringURL-encoded path to the file from the root of the repository, with path separators and spaces percent-encoded.
provider *stringShort code identifying the Git hosting provider (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name within the specified organization on the Git provider.
commitRefstringA commit reference (branch name, tag, or full commit hash) specifying which version of the file to retrieve; defaults to HEAD of the default branch.
endLinestringThe last line of the file to include in the response; must be greater than or equal to startLine.
startLinestringThe first line of the file to include in the response; when combined with endLine, returns only that line range.

get_file_coverage Get File Coverage

Retrieves code coverage information for a specific file at the head commit of a repository branch. Returns coverage metrics to help identify tested and untested code areas.

ParameterTypeDescription
fileId *stringThe unique numeric identifier for a file within a specific commit, used to scope coverage data to that file.
provider *stringShort code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.

set_file_ignored_state Set File Ignored State

Ignore or unignore a specific file in a repository, controlling whether Codacy includes it in analysis. Use this to suppress analysis on generated, vendored, or otherwise irrelevant files.

ParameterTypeDescription
filepath *stringThe relative path to the file within the repository, starting from the repository root.
ignored *booleanSet to true to ignore the file (exclude it from analysis) or false to unignore it (re-include it in analysis).
provider *stringShort identifier for the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization or account name as it appears on the Git provider.
repositoryName *stringThe repository name as it appears under the organization on the Git provider.

ignore_security_item Ignore Security Item

Marks a specific security and risk management (SRM) item as ignored for an organization, optionally providing a reason category and explanatory comment. Useful for suppressing known false positives, accepted risks, or non-applicable findings.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
srmItemId *stringThe unique UUID identifier of the security and risk management item to ignore.
commentstringFree-text comment providing additional context or justification for why the security item is being ignored.
reasonstringCategorized reason for ignoring the item. Must be one of: AcceptedUse (intentional usage), FalsePositive (incorrect detection), NotExploitable (not actionable in context), TestCode (issue exists in te…

unignore_security_item Unignore Security Item

Restores a previously ignored security and risk management item to an active state within the specified organization. Only items that have been explicitly ignored can be unignored.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the Git provider platform.
srmItemId *stringThe unique UUID identifying the security and risk management item to be unignored.

get_security_item Get Security Item

Retrieves detailed information for a single security and risk management (SRM) finding within an organization. Use this to inspect a specific SRM item by its unique identifier.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, specified as a short identifier code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the Git provider platform.
srmItemId *stringThe unique identifier of the SRM finding to retrieve, provided as a UUID.

search_security_items Search Security Items

Search and filter security and risk management (SRM) items across repositories in an organization. Supports filtering by priority, status, category, scan type, and more to help identify and triage security issues.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization. Identifies which platform to query.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
categoriesarrayList of security categories to filter by. Use the special value `_other_` to include items that have no assigned security category. Order is not significant.
dastTargetUrlsarrayList of DAST target URLs to filter results to only items associated with those targets. Order is not significant.
directionstringThe direction in which to sort results, either ascending or descending.
limitstringMaximum number of security items to return per request. Must be between 1 and 100.
prioritiesarrayList of priority levels to filter security items by. Refer to SrmPriority for valid values. Order is not significant.
repositoriesarrayList of repository names within the organization to restrict results to. Order is not significant.
scanTypesarrayList of scan types to filter results by, such as static analysis, dependency scanning, secrets detection, and others. Order is not significant.
searchTextstringFree-text search string to match against security item content, such as titles or descriptions.
segmentsarrayList of segment IDs to filter security items by. Segments represent logical groupings within the organization. Order is not significant.
sortstringThe field by which to sort the returned security items.
statusesarrayList of statuses to filter security items by. Refer to SrmStatus for valid values. Order is not significant.

get_security_dashboard_metrics Get Security Dashboard Metrics

Retrieves aggregated security and risk management metrics for an organization's dashboard, with optional filtering by repositories, priorities, categories, scan types, and segments.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization. Use the short identifier for the target provider.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
categoriesarrayList of security categories to filter issues by. Use the special value `_other_` to include issues that have no assigned security category.
prioritiesarrayList of security issue priority levels to include in the metrics. Refer to SrmPriority for the set of valid priority values.
repositoriesarrayList of repository names to scope the dashboard metrics to. When omitted, metrics are aggregated across all repositories in the organization.
scanTypesarrayList of scan types to restrict metrics to. Multiple scan types can be specified to combine results across different analysis methods.
segmentsarrayList of numeric segment IDs to filter the dashboard metrics by. Segments represent logical groupings of repositories or teams within the organization.

search_repositories_with_security_findings Search Repositories with Security Findings

Searches repositories within an organization for security findings, returning matching results with their associated security data. If no filters are applied, defaults to returning the 10 repositories with the highest number of findings.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
repositoriesarrayList of repository names to narrow results to specific repositories; order is not significant. If omitted, all repositories in the organization are considered.
segmentsarrayList of segment IDs to filter repositories by organizational segment; order is not significant. If omitted, all segments are included.

search_security_findings_history Search Security Findings History

Retrieves the historical evolution of security findings over time for an organization, optionally filtered by specific repositories or segments. Useful for tracking security posture trends and identifying improvements or regressions.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization. Use the short identifier for the target platform.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
repositoriesarrayList of repository names to scope the history results to. When omitted, results cover all repositories in the organization. Order is not significant.
segmentsarrayList of segment IDs to filter the history results by. Segments represent logical groupings within the organization. Order is not significant.

search_security_category_finding Search Security Category Findings

Retrieves security categories with their associated findings for an organization, optionally filtered by repositories or segments. If no filters are provided, returns the 10 categories with the highest finding counts.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
repositoriesarrayList of repository names to scope the results to; omit to include all repositories in the organization. Order is not significant.
segmentsarrayList of segment IDs to filter results by; omit to include all segments. Order is not significant.

upload_dast_report Upload DAST Report

Uploads a Dynamic Application Security Testing (DAST) scan report to Codacy for the specified organization and tool. The report is parsed and integrated into the organization's security findings dashboard.

ParameterTypeDescription
file *stringBase64-encoded file content for upload. The binary file containing the DAST scan results. For ZAP reports, ensure the `@generated` timestamp field is in English locale using the format `EEE, d MMM yyy…
provider *stringShort identifier for the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the remote Git provider.
reportFormat *stringThe format of the uploaded report file. Must match the structure expected for the specified tool.
toolName *stringThe DAST tool that generated the report. Currently only ZAP (OWASP Zed Attack Proxy) is supported.

list_dast_reports List DAST Reports

Retrieves a paginated list of uploaded DAST (Dynamic Application Security Testing) scan reports for an organization, including their current processing state. Results are sorted by submission date from latest to earliest.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, used to identify the source control platform.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
limitstringMaximum number of DAST reports to return per request. Accepts values between 1 and 100.

list_security_managers List Security Managers

Retrieves the list of organization admins and security managers for a specified organization on a Git provider. Useful for auditing access control and identifying users with elevated security permissions.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the Git provider.
limitstringMaximum number of security managers to return in a single response. Accepts values between 1 and 100.

assign_security_manager Assign Security Manager

Promotes an existing organization member to the Security Manager role within the specified Git provider organization. This grants the user elevated permissions to oversee and manage security-related settings and findings.

ParameterTypeDescription
provider *stringIdentifier for the Git provider hosting the organization. Use the short code for the desired provider (e.g., GitHub, GitLab, Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
userId *stringThe unique numeric identifier of the organization member to be assigned the Security Manager role. Must correspond to an existing member of the organization.

revoke_security_manager Revoke Security Manager

Revokes the Security Manager role from a specified organization member, removing their elevated security permissions within the organization on the given Git provider.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the Git provider.
userId *stringThe unique numeric identifier of the organization member whose Security Manager role is being revoked.

list_repositories_with_security_issues List Repositories with Security Issues

Retrieves a list of repositories within an organization that have active security issues. Supports pagination and optional filtering by segment identifiers.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization. Use the short identifier for the target provider.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
limitstringMaximum number of repositories to return per request. Must be between 1 and 100.
segmentsstringNarrows results to repositories belonging to the specified segments, provided as a comma-separated list of segment identifiers.

list_security_categories List Security Categories

Retrieves a list of security subcategories that have active security issues for the specified organization. Useful for identifying which vulnerability categories require attention across the organization's repositories.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization. Identifies which platform to query for security data.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider. Must match the exact organization identifier used on the platform.
limitstringMaximum number of security categories to return per request. Accepts values between 1 and 100.

search_sbom_dependencies Search SBOM Dependencies

Search and filter SBOM (Software Bill of Materials) dependencies used across an organization, returning vulnerability and license risk details for matched components. Supports filtering by severity, repository, segment, and text search against component identifiers.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization. Use the short identifier for the target platform.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
columnOrderstringDirection in which to sort the results relative to the chosen sort column. Use `asc` for ascending or `desc` for descending order.
findingSeveritiesarrayList of vulnerability severity levels to include in results. Order is not significant; valid values are `Critical`, `High`, `Medium`, and `Low`.
limitstringMaximum number of dependency records to return per request. Accepts values between 1 and 100.
repositoriesarrayList of repository names within the organization to restrict results to. Order is not significant; each item should be a repository name string.
riskCategoriesarrayList of license risk category labels to filter dependencies by. Order is not significant; each item should be a valid license risk category string.
segmentsarrayList of segment IDs to restrict results to. Order is not significant; each item should be an integer segment identifier.
sortColumnstringField by which to sort the returned results. Use `severity` to order by the dependency's vulnerability severity, or `ossfScore` to order by the OpenSSF scorecard score.
textstringFree-text search string matched against SBOM component fields including package URL (purl) and full component name.

search_dependency_repositories Search Dependency Repositories

Search for repositories within an organization that use a specific SBOM dependency, returning a paginated list of matches. Optionally filter results to a subset of repositories by name.

ParameterTypeDescription
dependencyFullName *stringThe fully qualified name of the SBOM dependency to search for across repositories.
provider *stringThe Git provider hosting the organization. Use the short identifier for the target platform.
remoteOrganizationName *stringThe organization name as it appears on the Git provider.
limitstringMaximum number of repositories to return per page. Accepts values between 1 and 100.
repositoriesFilterarrayAn optional list of repository names to restrict the search to. Order is not significant; each item should be a repository name string.

search_sbom_repositories Search SBOM Repositories

Search and list repositories within an organization that contain SBOM (Software Bill of Materials) dependency information, optionally filtering by specific dependencies.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the specified Git provider.
bodyobjectOptional request body to filter repositories by specific dependencies. Each item should be a dependency identifier in the format 'ecosystem/package-name'.
limitstringMaximum number of repositories to return per request. Accepts values between 1 and 100.

get_repository_sbom_download_url Get Repository SBOM Download URL

Retrieves a presigned URL for downloading the latest Software Bill of Materials (SBOM) for a specified repository. The URL provides temporary, authenticated access to the SBOM artifact.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.

upload_image_sbom Upload Image SBOM

Uploads a Software Bill of Materials (SBOM) for a Docker image to the specified organization, enabling vulnerability tracking and dependency analysis. Accepts SBOM files in SPDX or CycloneDX format.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
sbom *stringBase64-encoded file content for upload. The SBOM file to upload, provided as binary data in either SPDX or CycloneDX format.
environmentstringThe deployment environment associated with the Docker image (e.g., production, staging), used to contextualize the SBOM within a specific runtime environment.
image_refstringFull Docker image reference in the format 'repositoryName/imageName:tag'

delete_image_sboms Delete Image SBOMs

Deletes all Software Bill of Materials (SBOMs) associated with a specific container image in the given organization. This action is irreversible and removes all SBOM records for the specified image.

ParameterTypeDescription
imageName *stringThe name of the container image whose SBOMs should be deleted. Must match the image name used when the SBOMs were originally uploaded.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the specified Git provider.

delete_image_tag_sbom Delete Image Tag SBOM

Deletes the SBOM (Software Bill of Materials) associated with a specific image and tag combination within an organization. This action permanently removes the SBOM data for the given image/tag pair.

ParameterTypeDescription
imageName *stringThe name of the container image whose SBOM entry is being deleted.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the specified Git provider.
tag *stringThe specific tag of the container image whose SBOM entry is being deleted.

list_organization_images List Organization Images

Retrieves the list of Docker images available for a specified organization on a Git provider. Supports pagination to control the number of results returned.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the specified Git provider.
limitstringMaximum number of Docker images to return in a single response. Accepts values between 1 and 100, defaulting to 100 if not specified.

list_image_tags List Image Tags

Retrieves all Docker image tags associated with a specific image in an organization's SBOM registry. Results are paginated and scoped to the specified Git provider and organization.

ParameterTypeDescription
imageName *stringThe name of the Docker image for which to list available tags.
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the specified Git provider.
limitstringMaximum number of image tags to return in a single response. Accepts values between 1 and 100.

list_jira_tickets List Jira Tickets

Retrieves Jira tickets linked to a specific Codacy element (such as an issue, finding, file, or dependency) within an organization. Useful for tracing code quality findings back to their associated Jira work items.

ParameterTypeDescription
elementId *stringThe unique identifier of the specific Codacy element for which Jira tickets are being requested.
elementType *stringThe category of Codacy element whose linked Jira tickets should be retrieved. Must be one of: issue, finding, file, or dependency.
provider *stringShort code identifying the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

create_jira_ticket Create Jira Ticket

Creates a new Jira ticket linked to a specific Codacy organization, associating it with one or more code elements such as issues, findings, files, or dependencies.

ParameterTypeDescription
createJiraTicketElements *arrayList of code element identifiers to associate with the Jira ticket; each item should correspond to an element of the specified elementType. Order is not significant.
elementType *stringThe category of code element the Jira ticket will be associated with, such as a code issue, security finding, file, or dependency.
issueTypeId *stringThe numeric identifier of the Jira issue type (e.g., Bug, Task, Story) to assign to the new ticket.
jiraProjectId *stringThe unique numeric identifier of the Jira project in which the ticket will be created.
provider *stringShort code identifying the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
summary *stringA short, descriptive title summarizing the purpose or content of the Jira ticket.
description_bodystringMain body text of the Jira ticket description. Use newlines to separate paragraphs.
description_bullet_pointsarrayOptional list of bullet point strings to append after the body text
description_headingstringOptional heading text to appear at the top of the Jira ticket description (rendered as a level-2 heading)
dueDatestringOptional target completion date for the ticket, specified in YYYY-MM-DD format.

get_jira_integration Get Jira Integration

Retrieves the Jira integration configuration for a specified organization on a Git provider. Useful for inspecting whether Jira is connected and reviewing its current settings.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the organization, such as GitHub, GitLab, or Bitbucket.
remoteOrganizationName *stringThe organization's name as it appears on the specified Git provider.

delete_jira_integration Delete Jira Integration

Removes the Jira integration and all associated resources from the specified organization on a Git provider. This action is irreversible and will disconnect Jira from the organization.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the organization. Use the provider's abbreviated identifier.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

list_jira_projects List Jira Projects

Retrieves the available Jira projects linked to a specific Git provider organization, enabling users to associate repositories with Jira for issue tracking. Supports filtering and pagination to narrow down results.

ParameterTypeDescription
provider *stringThe short identifier for the Git provider hosting the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the specified Git provider.
limitstringMaximum number of Jira projects to return in a single response, between 1 and 100 inclusive. Defaults to 100 if not specified.
searchstringOptional search string to filter returned Jira projects by name, returning only projects whose names contain the provided value.

list_jira_issue_types List Jira Issue Types

Retrieves all available issue types (e.g., Bug, Story, Task) for a specific Jira project, enabling users to select valid types when creating or managing Jira issues linked to a Git organization.

ParameterTypeDescription
jiraProjectId *stringThe unique numeric identifier of the Jira project whose issue types should be retrieved.
provider *stringShort code identifying the Git provider for the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
limitstringMaximum number of issue types to return per request. Accepts values between 1 and 100.

list_jira_issue_type_fields List Jira Issue Type Fields

Retrieves the available fields for a specific Jira issue type within a project, enabling dynamic form construction when creating or editing issues. Results are scoped to the organization identified by the Git provider and organization name.

ParameterTypeDescription
jiraIssueTypeId *stringThe identifier of the Jira issue type within the project for which available fields are returned.
jiraProjectId *stringThe numeric identifier of the Jira project whose issue type fields are being queried.
provider *stringShort code identifying the Git provider hosting the organization.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
limitstringMaximum number of fields to return per response. Accepts values between 1 and 100, defaulting to 100 when omitted.

get_slack_integration Get Slack Integration

Retrieves the Slack integration configuration for a specified organization on a Git provider. Use this to check whether Slack notifications are enabled and review the current integration settings.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the organization. Use the provider's abbreviated identifier.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

get_pull_request_diff Get Pull Request Diff

Retrieves the human-readable Git diff for a specific pull request, showing all file changes, additions, and deletions. Useful for reviewing code changes before merging.

ParameterTypeDescription
provider *stringShort code identifying the Git hosting provider for the repository.
pullRequestNumber *stringThe unique numeric identifier of the pull request within the repository.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

get_commit_diff Get Commit Diff

Retrieves the human-readable Git diff for a specific commit in a repository, showing all file changes introduced by that commit.

ParameterTypeDescription
commitUuid *stringThe full SHA hash or UUID that uniquely identifies the commit whose diff should be retrieved.
provider *stringShort code identifying the Git hosting provider (e.g., GitHub, GitLab, Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

get_commit_diff_between Get Commit Diff Between

Retrieves the human-readable Git diff between a base commit and a head commit in a specified repository, showing all changes introduced between the two points in history.

ParameterTypeDescription
baseCommitUuid *stringThe SHA or UUID of the base (earlier) commit to use as the starting point of the diff comparison.
headCommitUuid *stringThe SHA or UUID of the head (later) commit to use as the ending point of the diff comparison, representing the changes introduced since the base commit.
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified Git provider organization.

export_organization_security_items Export Organization Security Items

Generates and downloads a CSV report listing all security and risk management items for a specified organization on a Git provider. Useful for auditing, compliance tracking, and offline analysis of an organization's security posture.

ParameterTypeDescription
provider *stringIdentifier for the Git provider hosting the organization. Each provider has a short code (e.g., GitHub, GitLab, Bitbucket).
remoteOrganizationName *stringThe exact name of the organization as it appears on the specified Git provider. This is the organization's handle or slug, not a display name.

export_security_items_csv Export Security Items CSV

Generates a filtered CSV export of security and risk management items for an organization. Supports filtering by repository, priority, status, category, scan type, segment, and free-text search.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
categoriesarrayList of security categories to filter by. Use the special value `_other_` to include issues that have no assigned security category. Order is not significant.
prioritiesarrayList of priority levels to filter security issues by. Valid values are defined by the SrmPriority enumeration. Order is not significant.
repositoriesarrayList of repository names within the organization to restrict results to. Order is not significant.
scanTypesarrayList of scan types to restrict results to. Order is not significant.
searchTextstringFree-text string used to search within security item fields, such as title or description.
segmentsarrayList of numeric segment IDs to filter results by. Order is not significant.
statusesarrayList of statuses to filter security issues by. Valid values are defined by the SrmStatus enumeration. Order is not significant.

get_commit Get Commit

Retrieves detailed information about a specific commit, including its metadata, changes, and associated data. Use this to inspect the full details of a known commit by its unique identifier.

ParameterTypeDescription
commitId *stringThe unique numeric identifier of the commit to retrieve.

check_repository_quickfix_suggestions Check Repository Quickfix Suggestions

Checks whether a repository has any available quick fix suggestions for issues on a specified branch. If no branch is provided, the repository's default branch is used.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the repository.
remoteOrganizationName *stringName of the organization or account on the Git provider that owns the repository.
repositoryName *stringName of the repository within the specified Git provider organization.
branchstringName of a branch enabled on Codacy for this repository. Must be a branch tracked by Codacy, as returned by the listRepositoryBranches endpoint. Defaults to the main branch configured in Codacy reposit…

get_issue_quickfixes_patch Get Issue Quickfixes Patch

Retrieves quickfix suggestions for repository issues in patch format, allowing automated code corrections to be applied directly. If no branch is specified, the repository's default branch is used.

ParameterTypeDescription
provider *stringIdentifier for the Git provider hosting the repository.
remoteOrganizationName *stringName of the organization or account on the Git provider that owns the repository.
repositoryName *stringName of the repository within the specified organization on the Git provider.
branchstringName of a branch enabled on Codacy for this repository. Defaults to the main branch configured in Codacy repository settings if omitted.

get_pull_request_issues_patch Get Pull Request Issues Patch

Retrieves quickfix patches for issues found in a specific pull request, formatted as a unified diff patch. The patch can be applied directly to resolve detected issues in the pull request's code.

ParameterTypeDescription
provider *stringThe Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
pullRequestNumber *stringThe unique number identifying the pull request within the repository, as shown in the Git provider's interface.
remoteOrganizationName *stringThe name of the organization or account on the Git provider that owns the repository.
repositoryName *stringThe name of the repository within the specified organization on the Git provider.

list_organization_audit_logs List Organization Audit Logs

Retrieves audit logs for the specified organization within an optional time range. Requires Business plan and organization admin or manager role.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider.
fromstringStart of the audit log time window as a Unix epoch timestamp in milliseconds. If omitted, defaults to the earliest available audit log entry.
tostringEnd of the audit log time window as a Unix epoch timestamp in milliseconds. If omitted, defaults to the current time.

get_segment_sync_status Get Segment Sync Status

Retrieves the current synchronization status of segments for a specified organization on a Git provider. Useful for monitoring whether segment data is up to date or still processing.

ParameterTypeDescription
provider *stringIdentifier for the Git provider hosting the organization. Use the short code for the desired platform (e.g., GitHub, GitLab, or Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the specified Git provider. This must match the exact remote organization name used by the provider.

list_segment_keys List Segment Keys

Retrieves the available segment keys for a specified organization on a Git provider. Segment keys can be filtered by search term and support pagination via a configurable result limit.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe exact organization name as it appears on the specified Git provider.
limitstringMaximum number of segment keys to return in a single response. Accepts values between 1 and 100, defaulting to 100 if not specified.
searchstringNarrows results to segment keys whose names contain the provided string, enabling targeted lookups within large organizations.

list_segment_keys_with_ids List Segment Keys with IDs

Retrieves segment keys along with their associated IDs for a specified organization on a Git provider. Supports pagination and text-based filtering to narrow results.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the specified Git provider.
limitstringMaximum number of segment key records to return in a single response. Accepts values between 1 and 100.
searchstringFilters the returned segment keys to those matching the provided search string, useful for locating specific segments by name or partial name.

list_segment_values List Segment Values

Retrieves the list of values for a specific segment within an organization, identified by its segment key. Supports optional filtering by name and result count limiting.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
segmentKey *stringThe unique key identifying the segment whose values should be retrieved.
limitstringMaximum number of segment values to return in a single response, accepting values between 1 and 100.
searchstringOptional search string to filter returned segment values by name or identifier, returning only items that match the provided text.

list_dast_targets List DAST Targets

Retrieves all configured Dynamic Application Security Testing (DAST) targets for the specified organization. Returns a paginated list of targets that have been set up for security scanning.

ParameterTypeDescription
provider *stringThe Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the specified Git provider.
limitstringMaximum number of DAST targets to return in a single response. Accepts values between 1 and 100.

create_dast_target Create DAST Target

Creates a new Dynamic Application Security Testing (DAST) target for a specified organization, defining the URL and type of application to be scanned for vulnerabilities.

ParameterTypeDescription
provider *stringShort code identifying the Git provider hosting the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.
url *stringThe fully qualified URL of the application or API endpoint to be scanned. Must be a valid URI.
apiDefinitionUrlstringThe URL pointing to the API definition file (e.g., an OpenAPI or GraphQL schema), required when the target type is 'openapi' or 'graphql'.
targetTypestringSpecifies the type of DAST target to scan: 'webapp' for standard web applications, 'openapi' for REST APIs described by an OpenAPI specification, or 'graphql' for GraphQL APIs. Defaults to 'webapp' if…

delete_dast_target Delete DAST Target

Permanently deletes a DAST (Dynamic Application Security Testing) target from the specified organization. This removes the target configuration and stops any associated security scans.

ParameterTypeDescription
dastTargetId *stringThe unique numeric identifier of the DAST target to delete.
provider *stringShort code identifying the Git provider hosting the organization, such as GitHub, GitLab, or Bitbucket.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

trigger_dast_analysis Trigger DAST Analysis

Enqueues a Dynamic Application Security Testing (DAST) analysis for a specified target within an organization. Use this to initiate a security scan against a previously configured DAST target.

ParameterTypeDescription
dastTargetId *stringUnique numeric identifier of the DAST target to be analyzed. Must reference an existing target configured under the organization.
provider *stringShort code identifying the Git provider hosting the organization, such as GitHub, GitLab, or Bitbucket.
remoteOrganizationName *stringThe organization's name as it appears on the Git provider platform.

list_enterprise_organizations List Enterprise Organizations

Retrieves the list of organizations belonging to a specified enterprise on a given Git provider. Supports pagination via a configurable result limit.

ParameterTypeDescription
enterpriseName *stringThe unique slug identifier for the enterprise whose organizations you want to retrieve.
provider *stringThe Git provider hosting the enterprise, specified as a short identifier code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
limitstringMaximum number of organizations to return in a single response. Accepts values between 1 and 100, defaulting to 100 if not specified.

list_enterprises List Enterprises

Retrieves all enterprises associated with the authenticated user for a specified Git provider. Returns a paginated list of enterprise accounts the user has access to.

ParameterTypeDescription
provider *stringThe Git provider to query for enterprises, identified by its short code (e.g., GitHub, GitLab, Bitbucket).
limitstringMaximum number of enterprise records to return in a single response, between 1 and 100 inclusive.

get_enterprise Get Enterprise

Retrieves details for a specific enterprise account by its slug identifier and git provider. Use this to fetch enterprise-level configuration, metadata, or status.

ParameterTypeDescription
enterpriseName *stringThe unique slug identifier for the enterprise, typically a lowercase hyphenated name used in URLs.
provider *stringThe short code identifying the git provider hosting the enterprise (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).

list_enterprise_seats List Enterprise Seats

Retrieves a paginated list of seats allocated within a specified enterprise on a given Git provider. Supports filtering by search term to narrow results.

ParameterTypeDescription
enterpriseName *stringThe URL-friendly slug identifier of the enterprise whose seats are being listed.
provider *stringThe Git provider hosting the enterprise, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket).
limitstringMaximum number of seat records to return in a single response. Accepts values between 1 and 100.
searchstringOptional search string used to filter the returned seats, matching against relevant seat or user identifiers.

export_enterprise_seats_csv Export Enterprise Seats CSV

Exports a CSV file containing seat allocation and usage data for a specified enterprise on a given Git provider. Useful for auditing license consumption and user activity across the enterprise.

ParameterTypeDescription
enterpriseName *stringThe unique slug (URL-friendly identifier) of the enterprise whose seat data should be exported.
provider *stringThe Git provider hosting the enterprise, identified by a short slug (e.g., GitHub, GitLab, Bitbucket).

list_payment_plans List Payment Plans

Retrieves all available payment plans offered in Codacy, allowing users to review pricing tiers and subscription options.

get_ossf_scorecard Get OSSF Scorecard

Retrieves the OSSF (Open Source Security Foundation) Scorecard for a repository, providing security health metrics and risk assessments across key supply chain security practices.