codacy
v1.0.3Analyze 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization. Use the short identifier code for the desired provider. |
remoteOrganizationName * | string | The exact organization name as it appears on the Git provider. |
limit | string | Maximum number of repositories to return per page. Accepts values between 1 and 100. |
search | string | Filters the returned repositories to those whose names contain the provided string. |
segments | string | Restricts 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The 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 * | string | The organization's name as it appears on the Git provider. Must match the exact organization identifier used by the provider. |
limit | string | Maximum number of repositories to return per request. Accepts values between 1 and 100 inclusive. |
names | array | Filter 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The short identifier for the Git provider hosting the repository. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
branch | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Identifier for the Git provider hosting the repository. |
remoteOrganizationName * | string | Name of the organization on the Git provider that owns the repository. |
repositoryName * | string | Name of the repository within the specified organization on the Git provider. |
toolUuid * | string | UUID uniquely identifying the analysis tool to configure. |
enabled | boolean | Set to true to enable the tool for analysis or false to disable it entirely for this repository. |
patterns | array | List 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. |
useConfigurationFile | boolean | Set 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
toolUuid * | string | The UUID uniquely identifying the analysis tool whose patterns should be retrieved. |
categories | string | Comma-separated list of pattern categories to filter by. Valid values are Security, ErrorProne, CodeStyle, Compatibility, UnusedCode, Complexity, Comprehensibility, Documentation, BestPractice, and Pe… |
direction | string | The direction in which to sort results, either ascending (asc) or descending (desc). |
enabled | boolean | When set to true, returns only enabled patterns; when set to false, returns only disabled patterns. Omit to return all patterns regardless of enabled status. |
languages | string | Comma-separated list of programming language names to restrict results to patterns applicable to those languages. |
limit | string | Maximum number of patterns to return in a single response, between 1 and 100 inclusive. |
recommended | boolean | When 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. |
search | string | A search string used to filter patterns by matching against pattern names or descriptions. |
severityLevels | string | Comma-separated list of severity levels to filter by. Valid values are Error, High, Warning, and Info. |
sort | string | The field by which to sort the returned patterns. Valid values are category, recommended, and severity. |
tags | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | Set to `true` to enable all matched code patterns, or `false` to disable them. |
provider * | string | Short code identifying the Git provider hosting the repository. |
remoteOrganizationName * | string | Name of the organization on the Git provider that owns the repository. |
repositoryName * | string | Name of the repository within the organization on the Git provider. |
toolUuid * | string | UUID that uniquely identifies the tool whose patterns will be updated. |
categories | string | Comma-separated list of pattern categories to restrict the update. Valid values are `Security`, `ErrorProne`, `CodeStyle`, `Compatibility`, `UnusedCode`, `Complexity`, `Comprehensibility`, `Documentat… |
languages | string | Comma-separated list of programming language names to restrict the update to patterns applicable to those languages only. |
recommended | boolean | When 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. |
search | string | Free-text search string used to filter patterns by name or description before applying the bulk update. |
severityLevels | string | Comma-separated list of severity levels to restrict the update. Valid values are `Error`, `High`, `Warning`, and `Info`. |
tags | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
patternId * | string | The identifier for the specific pattern within the tool whose configuration is being retrieved. |
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
toolUuid * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git hosting provider for the repository. |
remoteOrganizationName * | string | Name of the organization or account that owns the repository on the Git provider. |
repositoryName * | string | Name of the repository within the specified organization on the Git provider. |
toolUuid * | string | UUID uniquely identifying the analysis tool whose pattern overview is being retrieved. |
categories | string | Comma-separated list of pattern categories to include in the overview. Valid values are Security, ErrorProne, CodeStyle, Compatibility, UnusedCode, Complexity, Comprehensibility, Documentation, BestPr… |
enabled | boolean | When set to true, returns only enabled patterns; when set to false, returns only disabled patterns. Omit to return patterns regardless of enabled status. |
languages | string | Comma-separated list of programming language names to restrict the overview to patterns applicable to those languages. |
recommended | boolean | When 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. |
search | string | Search string used to filter patterns by matching against pattern names or descriptions. |
severityLevels | string | Comma-separated list of severity levels to filter patterns by. Valid values are Error, High, Warning, and Info. |
tags | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
toolUuid * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository. |
remoteOrganizationName * | string | The name of the organization that owns the repository on the Git provider. |
repositoryName * | string | The name of the repository within the organization on the Git provider. |
branch | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
includeNotAnalyzed | boolean | When set to true, includes pull requests that have not yet been analyzed by Codacy alongside analyzed ones. |
limit | string | Maximum number of pull requests to return in a single response. Accepts values between 1 and 100. |
search | string | Filters 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
pullRequestNumber * | string | The unique numeric identifier of the pull request within the repository, as assigned by the Git provider. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git hosting provider (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
pullRequestNumber * | string | The numeric identifier of the pull request for which to retrieve coverage data. |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
pullRequestNumber * | string | The numeric identifier of the pull request for which file coverage data is being requested. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository. Use the provider's abbreviated identifier. |
pullRequestNumber * | string | The numeric identifier of the pull request whose coverage report should be reanalyzed. |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The 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 * | string | The unique number identifying the pull request within the repository, as assigned by the Git provider. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
pullRequestNumber * | string | The numeric identifier of the pull request whose analysis status should be bypassed. |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git hosting provider for the repository. |
pullRequestNumber * | string | The numeric identifier of the pull request to be reviewed, as assigned by the Git provider. |
remoteOrganizationName * | string | Name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository. |
pullRequestNumber * | string | The unique number identifying the pull request within the repository. |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
pullRequestNumber * | string | The unique number identifying the pull request within the repository. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
limit | string | Maximum number of issues to return in a single response. Accepts values between 1 and 100. |
onlyPotential | boolean | When set to true, restricts results to potential issues only, which are lower-confidence findings that may require additional review. |
status | string | Filters 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
pullRequestNumber * | string | The numeric identifier of the pull request for which duplicate code blocks should be retrieved. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified organization on the Git provider. |
limit | string | Maximum number of clone results to return in a single response, between 1 and 100 inclusive. |
onlyPotential | boolean | When set to true, restricts results to only potential (lower-confidence) duplicate code blocks rather than confirmed clones. |
status | string | Filters 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.
| Parameter | Type | Description |
|---|---|---|
commitUuid * | string | The UUID or full SHA hash identifying the specific commit to analyze for duplicate code blocks. |
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified organization on the Git provider. |
limit | string | Maximum number of duplicate code block results to return per request. Accepts values between 1 and 100. |
onlyPotential | boolean | When set to true, restricts results to only potential duplicate code issues, excluding confirmed clones. |
status | string | Filters 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
pullRequestNumber * | string | The unique number identifying the pull request within the repository, as assigned by the Git provider. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
commitUuid * | string | The unique identifier of the commit whose analysis logs are being requested, provided as a UUID or full commit SHA hash. |
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
commitUuid * | string | The unique identifier of the commit, provided as a UUID or full SHA hash string. |
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
branch | string | The branch to scope the analysis results to; must be a branch enabled on Codacy. Defaults to the repository's main branch if omitted. |
columnOrder | string | The direction in which to sort results: 'asc' for ascending order (default) or 'desc' for descending order. |
filter | string | Narrows 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. |
limit | string | Maximum number of file results to return per request. Accepts values between 1 and 100. |
search | string | Filters the results to only include files whose relative path contains the specified string. |
sortColumn | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
pullRequestNumber * | string | The unique numeric identifier of the pull request within the repository. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified organization on the Git provider. |
columnOrder | string | The direction in which to order the sorted results, either ascending or descending. |
limit | string | Maximum number of file results to return per request. Must be between 1 and 100. |
sortColumn | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short identifier for the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short identifier for the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
fileComplexityValueThreshold | string | The complexity score above which a file is considered complex within this repository. Must be zero or greater. |
fileDuplicationBlockThreshold | string | The number of cloned blocks above which a file is considered duplicated within this repository. Must be zero or greater. |
maxComplexFilesPercentage | string | The 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. |
maxDuplicatedFilesPercentage | string | The 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. |
maxIssuePercentage | string | The 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. |
minCoveragePercentage | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short identifier for the Git provider hosting the repository, such as gh for GitHub, gl for GitLab, or bb for Bitbucket. |
remoteOrganizationName * | string | The name of the organization on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short identifier for the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short identifier for the Git provider hosting the repository. |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository. |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
languages * | array | The 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 * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository. |
remoteOrganizationName * | string | The name of the organization on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization on the Git provider under which the repository resides. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact organization or account name as it appears on the Git provider. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact organization name as it appears on the Git provider. |
limit | string | Maximum number of pull requests to return per request. Accepts values between 1 and 100. |
search | string | Filters 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
branch | string | The 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. |
days | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Identifier for the Git provider hosting the repository. |
remoteOrganizationName * | string | Name of the organization on the Git provider that owns the repository. |
repositoryName * | string | Name of the repository within the specified organization on the Git provider. |
branch | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Identifier for the Git provider hosting the repository, such as GitHub, GitLab, or Bitbucket. |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The repository name within the specified organization on the Git provider. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
issueIds * | array | An unordered list of unique issue IDs to ignore. Maximum of 50 IDs per request; each item should be a valid issue identifier. |
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
comment | string | An optional free-text comment providing additional context or explanation for ignoring the specified issues. |
reason | string | An 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., GitHub, GitLab, or Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
issueId * | string | The unique numeric identifier of the open issue to retrieve. |
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
ignored * | boolean | Set to true to ignore the issue or false to unignore it and restore it to an active state. |
issueId * | string | Unique identifier of the issue to update. |
provider * | string | Short code identifying the Git provider hosting the repository. |
remoteOrganizationName * | string | Name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | Name of the repository within the organization on the Git provider. |
comment | string | Free-text comment providing additional context or justification for the ignore action, supplementing the predefined reason. |
reason | string | Predefined 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.
| Parameter | Type | Description |
|---|---|---|
issueId * | string | The unique identifier of the issue whose false positive result should be ignored. |
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified organization on the Git provider. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
branch | string | The 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. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
commitUuid * | string | The full SHA hash or UUID that uniquely identifies the commit to retrieve analysis results for. |
provider * | string | Short code identifying the Git provider hosting the repository, such as 'gh' for GitHub, 'gl' for GitLab, or 'bb' for Bitbucket. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
commitUuid * | string | The unique identifier for the commit, provided as a UUID or full SHA hash string. |
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified organization on the Git provider. |
srcCommitUuid * | string | The SHA or UUID of the source commit to analyze; the delta is calculated from this commit against its parent or the specified target commit. |
limit | string | Maximum number of issues to return per request; must be between 1 and 100. |
onlyPotential | boolean | When set to true, restricts results to potential issues only, excluding confirmed issues from the response. |
status | string | Filters results by issue status: all returns every delta issue, new returns only introduced issues, and fixed returns only resolved issues. |
targetCommitUuid | string | The 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.
| Parameter | Type | Description |
|---|---|---|
name | string | The display name to assign to the authenticated user's profile. |
shouldDoClientQualification | boolean | Whether 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.
| Parameter | Type | Description |
|---|---|---|
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider to query for organizations. Use the short identifier code for the desired platform (e.g., GitHub, GitLab, Bitbucket). |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short identifier for the Git provider hosting the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short identifier for the Git provider hosting the organization, such as GitHub, GitLab, or Bitbucket. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
installationId * | string | The unique numeric identifier of the Codacy installation to look up the associated organization for. |
provider * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
paymentPlanCode * | string | The code identifying the payment plan to estimate costs for. Available plan codes can be retrieved using the listPaymentPlans operation. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
promoCode | string | An 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by its short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider identifier representing the source control platform to query (e.g., GitHub, GitLab, or Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short identifier for the Git provider platform hosting the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
aiEnhancedComments | boolean | Enables or disables AI-enhanced pull request comments; when combined with Suggested Fixes (GitHub only), AI comments also include inline code fix suggestions. |
aiPullRequestReviewer | boolean | Enables 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. |
aiPullRequestReviewerAutomatic | boolean | Enables 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… |
commitStatus | boolean | Enables or disables Codacy commit status checks, which report analysis results directly on commits and pull requests. |
coverageSummary | boolean | Enables or disables coverage summary reporting on pull requests. Supported on GitHub only. |
pullRequestComment | boolean | Enables or disables inline issue annotations posted as pull request comments by Codacy. |
pullRequestSummary | boolean | Enables or disables pull request summary comments that aggregate Codacy issue findings. |
pullRequestUnifiedSummary | boolean | Enables or disables a unified pull request summary that combines both coverage and analysis results into a single Codacy comment. Supported on GitHub only. |
suggestions | boolean | Enables 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short identifier for the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short identifier for the Git provider hosting the repository. |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The repository name as it appears under the organization on the Git provider. |
aiEnhancedComments | boolean | Enables or disables AI-enhanced comments on pull requests; when combined with Suggested Fixes (GitHub only), the AI comments also include fix suggestions. |
aiPullRequestReviewer | boolean | Enables 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. |
aiPullRequestReviewerAutomatic | boolean | Enables 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… |
commitStatus | boolean | Enables or disables commit status checks, which report Codacy analysis results directly on commits and pull requests. |
coverageSummary | boolean | Enables or disables a coverage summary comment on pull requests showing coverage changes. Available on GitHub only. |
pullRequestComment | boolean | Enables or disables inline issue annotations posted as pull request comments for each identified code issue. |
pullRequestSummary | boolean | Enables or disables pull request summary comments that aggregate all issues found in the analysis. |
pullRequestUnifiedSummary | boolean | Enables or disables a unified pull request summary that combines both coverage and analysis results into a single comment. Available on GitHub only. |
suggestions | boolean | Enables 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short identifier for the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider under which the repository resides. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The 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 * | string | The name of the organization or workspace on the Git provider under which the repository resides. |
repositoryName * | string | The 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).
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization. Use the short identifier code for the desired provider. |
remoteOrganizationName * | string | The exact name of the organization as it appears on the Git provider. |
filter | string | Controls 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… |
languages | string | Filters results to repositories that use the specified programming languages, provided as a comma-separated list of language names. |
limit | string | Maximum number of repositories to return per request. Accepts values between 1 and 100; note the API may return more results than specified. |
search | string | A search string used to filter repositories by name. Only repositories whose names contain this string will be returned. |
segments | string | Filters 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider where the organization is hosted. Use the provider's abbreviated identifier. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact name of the organization as it appears on the Git provider. |
limit | string | Maximum number of people to return per request; must be between 1 and 100 inclusive. |
onlyMembers | boolean | When true, restricts results to only registered Codacy users; when false, also includes commit authors who have not joined Codacy. |
search | string | Filters 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the organization. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by its short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
emails * | array | List of member email addresses to remove from the organization. Each item must be a valid email address; order is not significant. |
provider * | string | The Git provider hosting the organization. Use the short identifier for the target platform. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, or Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact name of the organization as it appears on the specified Git provider. |
limit | string | Maximum number of people suggestions to return per request. Accepts values between 1 and 100. |
search | string | Filters 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.
| Parameter | Type | Description |
|---|---|---|
commitUuid * | string | The full UUID or SHA hash string that uniquely identifies the commit to be reanalyzed. |
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
cleanCache | boolean | When 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider platform. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact name of the organization on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization as it appears on the Git provider. |
repositoryName * | string | The name of the repository within the specified organization on the Git provider. |
limit | string | Maximum number of people suggestions to return. Accepts values between 1 and 100. |
search | string | Filters 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The short identifier for the Git provider hosting the repository (e.g., 'gh' for GitHub, 'gl' for GitLab, 'bb' for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
direction | string | The direction in which to sort the results. Use 'asc' for ascending order or 'desc' for descending order. |
enabled | boolean | Filters 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… |
limit | string | The maximum number of branches to return in a single response. Accepts values between 1 and 100. |
search | string | A string used to filter branches by name, returning only branches whose names contain the provided value. |
sort | string | The 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.
| Parameter | Type | Description |
|---|---|---|
branchName * | string | The exact name of the branch within the repository to configure. |
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The repository name as it appears under the organization on the Git provider. |
isEnabled | boolean | Set 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).
| Parameter | Type | Description |
|---|---|---|
joinMode * | string | The 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 * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
branchName * | string | Name of the branch to designate as the new default; this branch must already be enabled on Codacy. |
provider * | string | Short code identifying the Git provider hosting the repository. |
remoteOrganizationName * | string | Name of the organization on the Git provider that owns the repository. |
repositoryName * | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
branchName * | string | The name of the branch for which required status checks will be retrieved. |
provider * | string | Short code identifying the Git provider hosting the repository. |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
remoteOrganizationName * | string | The name of the organization on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The short identifier for the Git provider hosting the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact name of the organization as it appears on the Git provider. |
limit | string | Maximum number of join requests to return in a single response. Accepts values between 1 and 100. |
search | string | Filters 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider where the organization is hosted. Accepted values include identifiers for GitHub, GitLab, and Bitbucket. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Identifier 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 * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
accountIdentifier * | string | The unique numeric identifier of the user account whose join request should be deleted. |
provider * | string | Short code identifying the Git provider hosting the organization (e.g., GitHub, GitLab, Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider that hosts the repository, identifying the source platform where the repository resides. |
repositoryFullPath * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | The display name of the organization as it appears on the Git provider. |
provider * | string | The Git provider that hosts the organization, such as GitHub, GitLab, or Bitbucket. |
remoteIdentifier * | string | The unique identifier for the organization on the Git provider, used to locate and link the organization remotely. |
type * | string | Specifies whether the entity is a personal account or a shared organization, which determines available features and permissions. |
products | array | A 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Identifier 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git hosting provider associated with the enterprise account token being added. |
token * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
expiresAt | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
tokenId * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, or Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
search | string | A 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.
| Parameter | Type | Description |
|---|---|---|
body | string | Raw 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.
| Parameter | Type | Description |
|---|---|---|
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
toolUuid * | string | The unique UUID identifying the tool whose patterns should be retrieved. |
enabled | boolean | Filters 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. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
patternId * | string | The identifier of the specific pattern within the tool that the feedback applies to. |
provider * | string | Short code identifying the Git hosting provider (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
reactionFeedback * | boolean | Boolean vote on the enriched pattern's relevance — true indicates the pattern is considered good or relevant, false indicates it is not. |
remoteOrganizationName * | string | The name of the organization on the specified Git provider whose context scopes this feedback. |
toolUuid * | string | The unique UUID identifying the tool whose pattern is being reviewed. |
feedback | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
patternId * | string | The identifier of the specific pattern to retrieve, typically referencing a named rule or checker within the tool. |
toolUuid * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
metrics | array | List 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the organization. Accepted values include identifiers for GitHub, GitLab, and Bitbucket. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
metricName * | string | The identifier of the metric to retrieve. Use the readyMetricsForOrganization endpoint to list all available metric names for the organization. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
dimensionsFilter | array | Optional list of dimension filters to narrow the metric query by specific dimensional criteria. Order is not significant. |
repositories | array | Optional list of repository identifiers to scope the metric value to specific repositories within the organization. Order is not significant. |
segmentIds | array | Optional 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.
| Parameter | Type | Description |
|---|---|---|
groupBy * | array | One 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 * | string | The name of the aggregating metric to retrieve latest grouped values for. Use the readyMetricsForOrganization endpoint to list all available metric names. |
provider * | string | The Git provider hosting the organization, used to identify which platform to query. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
dimensionsFilter | array | List of dimension filter values to narrow the metric results. Valid dimension values depend on the requested metric. |
limit | integer | Maximum number of grouped metric value entries to return in the response. |
repositories | array | List of repository names to scope the metric results to. When omitted, results span all repositories in the organization. |
segmentIds | array | List of segment identifiers to filter the metric results by. When omitted, no segment filtering is applied. |
sortDirection | string | Direction 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.
| Parameter | Type | Description |
|---|---|---|
date * | string | The start date of the period for which to retrieve the metric value, in ISO 8601 date-time format. |
metricName * | string | The unique name of the metric to retrieve. Use the readyMetricsForOrganization operation to list all available metric names for the organization. |
period * | string | The granularity of the time period to retrieve the metric for, determining how the start date is interpreted and the duration of the window. |
provider * | string | The Git provider hosting the organization, specified as a short identifier code. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
dimensionsFilter | array | Optional list of dimension filters to narrow the metric data by specific dimensional criteria. |
repositories | array | Optional list of repository names to scope the metric retrieval. When omitted, the metric is calculated across all repositories in the organization. |
segmentIds | array | Optional 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.
| Parameter | Type | Description |
|---|---|---|
date * | string | The start date of the period for which to retrieve metric values, specified in ISO 8601 date-time format. |
groupBy * | array | Dimension 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 * | string | The metric to retrieve values for. Use the readyMetricsForOrganization endpoint to list all available metric names for your organization. |
period * | string | The granularity of the time period to retrieve metric values for, relative to the provided start date. |
provider * | string | Identifier for the Git provider hosting the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
dimensionsFilter | array | List of dimension filter values to narrow metric results to specific dimension members. Items should match valid dimension values for the requested metric. |
limit | integer | Maximum number of grouped value entries to return in the response. |
repositories | array | List of repository names to scope the metric results to. When omitted, results include all repositories in the organization. |
segmentIds | array | List of segment identifiers to filter the metric results by. When omitted, no segment filtering is applied. |
sortDirection | string | Direction 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.
| Parameter | Type | Description |
|---|---|---|
groupBy * | array | Specifies 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 * | string | The metric to retrieve values for. Use the readyMetricsForOrganization endpoint to discover all available metric names for your organization. |
provider * | string | Identifier for the Git provider hosting the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
dimensionsFilter | array | List of dimension filters to narrow metric results to specific dimension values. Valid dimensions depend on the requested metric. |
limit | integer | Maximum number of results to return. When omitted, the backend applies a default limit. |
period | string | Time granularity for grouping metric values. When omitted, the backend selects a default granularity based on the requested time range. |
repositories | array | List of repository names to scope the metric results to. When omitted, results cover all repositories in the organization. |
segmentIds | array | List of segment IDs to filter the metric results by. When omitted, no segment filtering is applied. |
sortDirection | string | Controls the sort direction of the returned results. Applies to the ordering of grouped or time-series data. |
time_range | string | Time 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.
| Parameter | Type | Description |
|---|---|---|
enterpriseName * | string | The unique slug (URL-friendly name) identifying the enterprise whose ready metrics are being retrieved. |
provider * | string | Identifier 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.
| Parameter | Type | Description |
|---|---|---|
enterpriseName * | string | The URL-friendly slug name that uniquely identifies the enterprise. |
metricName * | string | The name of the aggregating metric to retrieve latest values for. Use the readyMetricsForOrganization endpoint to discover all available metric names. |
provider * | string | Identifier for the Git provider hosting the enterprise. |
dimensionsFilter | array | Optional 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.
| Parameter | Type | Description |
|---|---|---|
enterpriseName * | string | The URL-friendly slug name that uniquely identifies the enterprise. |
groupBy * | array | One 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 * | string | The 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 * | string | Identifier for the Git provider hosting the enterprise. |
dimensionsFilter | array | List of dimension values used to filter the grouped results, restricting output to only the specified dimension entries. |
limit | integer | Maximum number of grouped result entries to return. |
sortDirection | string | Direction 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.
| Parameter | Type | Description |
|---|---|---|
date * | string | The start date of the period to retrieve, in ISO 8601 date-time format. |
enterpriseName * | string | The URL-friendly slug name of the enterprise to retrieve metrics for. |
metricName * | string | The name of the metric to retrieve. Use the list available metrics operation to discover valid metric names. |
period * | string | The granularity of the time period to aggregate metric values over. Must be one of: day, week, or month. |
provider * | string | Identifier for the Git provider hosting the enterprise. |
dimensionsFilter | array | Optional 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.
| Parameter | Type | Description |
|---|---|---|
date * | string | The start date and time of the period to retrieve, in ISO 8601 date-time format. |
enterpriseName * | string | The URL-friendly slug name that uniquely identifies the enterprise. |
groupBy * | array | Specifies 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 * | string | The name of the metric to retrieve data for. Use the list available metrics operation to discover valid metric names. |
period * | string | The 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 * | string | Identifier for the Git provider hosting the enterprise. |
dimensionsFilter | array | Optional list of dimension filters to narrow results. Each item specifies a dimension and value to filter by, limiting the data returned to matching entries. |
limit | integer | Maximum number of grouped result entries to return. |
sortDirection | string | Controls 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.
| Parameter | Type | Description |
|---|---|---|
enterpriseName * | string | The URL-friendly slug name that uniquely identifies the enterprise. |
from * | string | Start of the time range for which metric values are retrieved, inclusive. Must be provided in ISO 8601 date-time format. |
groupBy * | array | Specifies 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 * | string | The metric to retrieve time-series data for. Use the readyMetricsForOrganization endpoint to list all available metric names. |
provider * | string | Identifier for the Git provider hosting the enterprise. |
to * | string | End of the time range for which metric values are retrieved, inclusive. Must be provided in ISO 8601 date-time format. |
dimensionsFilter | array | Optional list of dimension filters to narrow results. Each item should specify a dimension and its filter value relevant to the requested metric. |
limit | integer | Maximum number of results to return. Use to cap the size of the response payload. |
period | string | Time granularity for grouping returned data points. If omitted, the backend selects a default granularity based on the requested range. |
sortDirection | string | Controls 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short identifier for the Git provider hosting the repository. |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The repository name as it appears under the organization on the Git provider. |
branch | string | Name of a branch enabled on Codacy to scope the file analysis results. Defaults to the repository's main branch if omitted. |
direction | string | Order in which to return sorted results — ascending (asc) or descending (desc). |
limit | string | Maximum number of files to return per request. Accepts values between 1 and 100. |
search | string | Filters the returned files to those whose relative path contains this string, enabling partial-match searches. |
sort | string | Field 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified organization on the Git provider. |
branch | string | The 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. |
limit | string | The maximum number of ignored files to return in a single response, between 1 and 100 inclusive. |
search | string | A 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.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | The unique numeric identifier for a file tied to a specific commit, used to retrieve its analysis and coverage data. |
provider * | string | Short code identifying the Git provider hosting the repository, such as gh for GitHub, gl for GitLab, or bb for Bitbucket. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | The 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 * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | The 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 * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, used to identify which platform to query. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
languages * | array | List of programming languages the new coding standard will cover. Order is not significant; each item should be a supported language name. |
name * | string | Human-readable name for the new coding standard, used to identify it within the organization. |
provider * | string | Short code identifying the Git provider hosting the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
sourceCodingStandard | string | Numeric 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. |
sourceRepository | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
complianceType * | string | The category of compliance standard to create. Currently supports AI risk compliance, which enforces policies around AI-generated code usage. |
name * | string | A human-readable display name for the compliance standard being created. |
provider * | string | Short code identifying the Git provider hosting the organization (e.g., GitHub, GitLab, Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
bestPractices * | string | Preset 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 * | string | Preset 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 * | string | Preset 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 * | string | Preset 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 * | boolean | When set to true, this coding standard will automatically become the default applied to all repositories in the organization. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
security * | string | Preset 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). |
name | string | A 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.
| Parameter | Type | Description |
|---|---|---|
codingStandardId * | string | The unique numeric identifier of the coding standard to retrieve, as assigned by Codacy. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
codingStandardId * | string | The unique numeric identifier of the coding standard to delete, as returned when the coding standard was created or listed. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
codingStandardId * | string | The unique numeric identifier of the coding standard to duplicate. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
codingStandardId * | string | The unique numeric identifier of the coding standard whose tools should be listed. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
codingStandardId * | string | The unique numeric identifier of the coding standard to set or unset as the default. |
isDefault * | boolean | When true, designates this coding standard as the organization's default; when false, removes its default status. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
codingStandardId * | string | The numeric identifier of the coding standard to retrieve patterns from. |
provider * | string | The short identifier for the Git provider hosting the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
toolUuid * | string | The UUID identifying the specific tool whose patterns should be listed. |
categories | string | Comma-separated list of pattern categories to filter by. Valid values are `Security`, `ErrorProne`, `CodeStyle`, `Compatibility`, `UnusedCode`, `Complexity`, `Comprehensibility`, `Documentation`, `Bes… |
direction | string | The direction in which results are sorted — `asc` for ascending or `desc` for descending. |
enabled | boolean | When set to `true`, returns only enabled patterns; when set to `false`, returns only disabled patterns. Omit to return patterns regardless of enabled status. |
languages | string | Comma-separated list of programming language names to filter patterns by; only patterns applicable to the specified languages are returned. |
limit | string | Maximum number of patterns to return per request. Must be between 1 and 100 inclusive. |
recommended | boolean | When set to `true`, returns only recommended patterns; when set to `false`, returns only non-recommended patterns. Omit to return patterns regardless of recommended status. |
search | string | A search string used to filter patterns by name or description; returns patterns whose metadata contains this value. |
severityLevels | string | Comma-separated list of severity levels to filter by. Valid values are `Error`, `High`, `Warning`, and `Info`. |
sort | string | The field by which to sort the returned patterns. Valid values are `category`, `recommended`, and `severity`. |
tags | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
codingStandardId * | string | The numeric identifier of the coding standard whose tool patterns overview is being requested. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
toolUuid * | string | The UUID uniquely identifying the tool within the coding standard. |
categories | string | Comma-separated list of pattern categories to filter by. Valid values are Security, ErrorProne, CodeStyle, Compatibility, UnusedCode, Complexity, Comprehensibility, Documentation, BestPractice, and Pe… |
enabled | boolean | When set to true, returns only enabled patterns; when set to false, returns only disabled patterns. Omit to return patterns regardless of enabled state. |
languages | string | Comma-separated list of programming language names to restrict the overview to patterns applicable to those languages. |
recommended | boolean | When 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. |
search | string | A search string used to filter patterns by matching against pattern names or descriptions. |
severityLevels | string | Comma-separated list of severity levels to filter by. Valid values are Error, High, Warning, and Info. |
tags | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
codingStandardId * | string | Numeric identifier of the coding standard to update patterns within. |
enabled * | boolean | Whether to enable or disable the matched code patterns; true enables them and false disables them. |
provider * | string | Short code identifying the Git provider hosting the organization. |
remoteOrganizationName * | string | Exact name of the organization as it appears on the Git provider. |
toolUuid * | string | UUID of the tool whose code patterns will be updated within the coding standard. |
categories | string | Comma-separated list of pattern categories to restrict which patterns are updated. Valid values are Security, ErrorProne, CodeStyle, Compatibility, UnusedCode, Complexity, Comprehensibility, Documenta… |
languages | string | Comma-separated list of programming language names to restrict which patterns are updated. |
recommended | boolean | Restricts the update to patterns based on their recommended status; true targets only recommended patterns, false targets only non-recommended patterns. |
search | string | Free-text string used to filter patterns by name or description before applying the update. |
severityLevels | string | Comma-separated list of severity levels to restrict which patterns are updated. Valid values are Error, High, Warning, and Info. |
tags | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
codingStandardId * | string | The numeric identifier of the draft coding standard to configure. Only draft coding standards can be updated. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
toolUuid * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
codingStandardId * | string | The unique numeric identifier of the coding standard whose associated repositories should be listed. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact name of the organization as it appears on the Git provider. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
codingStandardId * | string | Unique numeric identifier of the coding standard to update. |
link * | array | List 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 * | string | Identifier for the Git provider hosting the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
unlink * | array | List 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.
| Parameter | Type | Description |
|---|---|---|
gatePolicyId * | string | The unique numeric identifier of the gate policy to designate as the default. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., GitHub, GitLab, or Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
gatePolicyId * | string | The unique numeric identifier of the gate policy to retrieve. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
gatePolicyId * | string | The unique numeric identifier of the gate policy to update. |
provider * | string | The short code identifying the Git provider hosting the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
threshold * | string | The maximum number of new issues allowed before the quality gate fails. Must be zero or greater. |
complexityThreshold | string | The maximum allowed complexity value introduced by new code; the gate fails if this threshold is exceeded. Must be zero or greater. |
coverageThresholdWithDecimals | number | The 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… |
diffCoverageThreshold | string | The minimum required diff coverage percentage; the gate fails if diff coverage falls below this value. Must be between 0 and 100 inclusive. |
duplicationThreshold | string | The maximum number of new duplicated code blocks allowed before the quality gate fails. |
gatePolicyName | string | The human-readable display name for the gate policy. |
isDefault | boolean | When true, this gate policy becomes the default applied to all repositories in the organization that do not have an explicitly assigned policy. |
minimumSeverity | string | The 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. |
securityIssueMinimumSeverity | string | The 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. |
securityIssueThreshold | string | The 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.
| Parameter | Type | Description |
|---|---|---|
gatePolicyId * | string | The unique numeric identifier of the gate policy to delete. |
provider * | string | Short code identifying the Git provider for the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact organization name as it appears on the specified Git provider. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
gatePolicyName * | string | A unique, human-readable name to identify this gate policy within the organization. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
threshold * | string | The maximum number of new issues allowed before the quality gate fails; must be zero or greater. |
complexityThreshold | string | The maximum cumulative complexity value allowed before the quality gate fails; must be zero or greater. |
coverageThresholdWithDecimals | number | The 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… |
diffCoverageThreshold | string | The minimum diff coverage percentage required to pass the quality gate; must be between 0 and 100 inclusive. |
duplicationThreshold | string | The maximum number of new duplicated blocks allowed before the quality gate fails. |
isDefault | boolean | When true, this policy becomes the default gate policy applied to repositories in the organization that have no explicitly assigned policy. |
minimumSeverity | string | The 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. |
securityIssueMinimumSeverity | string | The 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. |
securityIssueThreshold | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the organization, such as gh for GitHub, gl for GitLab, or bb for Bitbucket. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider for the organization, such as GitHub, GitLab, or Bitbucket. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
gatePolicyId * | string | The unique numeric identifier of the gate policy whose associated repositories should be listed. |
provider * | string | The Git provider hosting the organization. Use the short identifier for the target provider. |
remoteOrganizationName * | string | The organization name as it appears on the Git provider. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
gatePolicyId * | string | The unique numeric identifier of the gate policy to which repositories will be linked or unlinked. |
link * | array | List 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 * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact organization name as it appears on the Git provider platform. |
unlink * | array | List 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.
| Parameter | Type | Description |
|---|---|---|
codingStandardId * | string | The unique numeric identifier of the draft coding standard to promote. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization as it appears on the Git provider platform. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider platform. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the organization and repository. |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider platform. |
repositoryName * | string | The repository name as it appears under the organization on the Git provider platform. |
tokenId * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The name of the repository within the specified Git provider organization. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
commitUuid * | string | The full commit UUID or SHA hash that uniquely identifies the commit whose coverage reports should be listed. |
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The repository name within the specified organization on the Git provider. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
commitUuid * | string | The UUID or full SHA hash that uniquely identifies the commit whose coverage report is being retrieved. |
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
reportUuid * | string | The UUID that uniquely identifies the specific coverage report to retrieve within the commit. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | URL-encoded path to the file from the root of the repository, with path separators and spaces percent-encoded. |
provider * | string | Short code identifying the Git hosting provider (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The repository name within the specified organization on the Git provider. |
commitRef | string | A commit reference (branch name, tag, or full commit hash) specifying which version of the file to retrieve; defaults to HEAD of the default branch. |
endLine | string | The last line of the file to include in the response; must be greater than or equal to startLine. |
startLine | string | The 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.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | The unique numeric identifier for a file within a specific commit, used to scope coverage data to that file. |
provider * | string | Short code identifying the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
filepath * | string | The relative path to the file within the repository, starting from the repository root. |
ignored * | boolean | Set to true to ignore the file (exclude it from analysis) or false to unignore it (re-include it in analysis). |
provider * | string | Short identifier for the Git provider hosting the repository (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization or account name as it appears on the Git provider. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
srmItemId * | string | The unique UUID identifier of the security and risk management item to ignore. |
comment | string | Free-text comment providing additional context or justification for why the security item is being ignored. |
reason | string | Categorized 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact organization name as it appears on the Git provider platform. |
srmItemId * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, specified as a short identifier code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact organization name as it appears on the Git provider platform. |
srmItemId * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization. Identifies which platform to query. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
categories | array | List of security categories to filter by. Use the special value `_other_` to include items that have no assigned security category. Order is not significant. |
dastTargetUrls | array | List of DAST target URLs to filter results to only items associated with those targets. Order is not significant. |
direction | string | The direction in which to sort results, either ascending or descending. |
limit | string | Maximum number of security items to return per request. Must be between 1 and 100. |
priorities | array | List of priority levels to filter security items by. Refer to SrmPriority for valid values. Order is not significant. |
repositories | array | List of repository names within the organization to restrict results to. Order is not significant. |
scanTypes | array | List of scan types to filter results by, such as static analysis, dependency scanning, secrets detection, and others. Order is not significant. |
searchText | string | Free-text search string to match against security item content, such as titles or descriptions. |
segments | array | List of segment IDs to filter security items by. Segments represent logical groupings within the organization. Order is not significant. |
sort | string | The field by which to sort the returned security items. |
statuses | array | List 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization. Use the short identifier for the target provider. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
categories | array | List of security categories to filter issues by. Use the special value `_other_` to include issues that have no assigned security category. |
priorities | array | List of security issue priority levels to include in the metrics. Refer to SrmPriority for the set of valid priority values. |
repositories | array | List of repository names to scope the dashboard metrics to. When omitted, metrics are aggregated across all repositories in the organization. |
scanTypes | array | List of scan types to restrict metrics to. Multiple scan types can be specified to combine results across different analysis methods. |
segments | array | List 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
repositories | array | List of repository names to narrow results to specific repositories; order is not significant. If omitted, all repositories in the organization are considered. |
segments | array | List 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization. Use the short identifier for the target platform. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
repositories | array | List of repository names to scope the history results to. When omitted, results cover all repositories in the organization. Order is not significant. |
segments | array | List 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
repositories | array | List of repository names to scope the results to; omit to include all repositories in the organization. Order is not significant. |
segments | array | List 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.
| Parameter | Type | Description |
|---|---|---|
file * | string | Base64-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 * | string | Short identifier for the Git provider hosting the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the remote Git provider. |
reportFormat * | string | The format of the uploaded report file. Must match the structure expected for the specified tool. |
toolName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, used to identify the source control platform. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact organization name as it appears on the Git provider. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Identifier for the Git provider hosting the organization. Use the short code for the desired provider (e.g., GitHub, GitLab, Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
userId * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact name of the organization as it appears on the Git provider. |
userId * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization. Use the short identifier for the target provider. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
limit | string | Maximum number of repositories to return per request. Must be between 1 and 100. |
segments | string | Narrows 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization. Identifies which platform to query for security data. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. Must match the exact organization identifier used on the platform. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization. Use the short identifier for the target platform. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
columnOrder | string | Direction in which to sort the results relative to the chosen sort column. Use `asc` for ascending or `desc` for descending order. |
findingSeverities | array | List of vulnerability severity levels to include in results. Order is not significant; valid values are `Critical`, `High`, `Medium`, and `Low`. |
limit | string | Maximum number of dependency records to return per request. Accepts values between 1 and 100. |
repositories | array | List of repository names within the organization to restrict results to. Order is not significant; each item should be a repository name string. |
riskCategories | array | List of license risk category labels to filter dependencies by. Order is not significant; each item should be a valid license risk category string. |
segments | array | List of segment IDs to restrict results to. Order is not significant; each item should be an integer segment identifier. |
sortColumn | string | Field 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. |
text | string | Free-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.
| Parameter | Type | Description |
|---|---|---|
dependencyFullName * | string | The fully qualified name of the SBOM dependency to search for across repositories. |
provider * | string | The Git provider hosting the organization. Use the short identifier for the target platform. |
remoteOrganizationName * | string | The organization name as it appears on the Git provider. |
limit | string | Maximum number of repositories to return per page. Accepts values between 1 and 100. |
repositoriesFilter | array | An 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact organization name as it appears on the specified Git provider. |
body | object | Optional request body to filter repositories by specific dependencies. Each item should be a dependency identifier in the format 'ecosystem/package-name'. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
sbom * | string | Base64-encoded file content for upload. The SBOM file to upload, provided as binary data in either SPDX or CycloneDX format. |
environment | string | The deployment environment associated with the Docker image (e.g., production, staging), used to contextualize the SBOM within a specific runtime environment. |
image_ref | string | Full 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.
| Parameter | Type | Description |
|---|---|---|
imageName * | string | The name of the container image whose SBOMs should be deleted. Must match the image name used when the SBOMs were originally uploaded. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
imageName * | string | The name of the container image whose SBOM entry is being deleted. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact name of the organization as it appears on the specified Git provider. |
tag * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact name of the organization as it appears on the specified Git provider. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
imageName * | string | The name of the Docker image for which to list available tags. |
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the specified Git provider. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
elementId * | string | The unique identifier of the specific Codacy element for which Jira tickets are being requested. |
elementType * | string | The category of Codacy element whose linked Jira tickets should be retrieved. Must be one of: issue, finding, file, or dependency. |
provider * | string | Short code identifying the Git provider hosting the organization. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
createJiraTicketElements * | array | List 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 * | string | The category of code element the Jira ticket will be associated with, such as a code issue, security finding, file, or dependency. |
issueTypeId * | string | The numeric identifier of the Jira issue type (e.g., Bug, Task, Story) to assign to the new ticket. |
jiraProjectId * | string | The unique numeric identifier of the Jira project in which the ticket will be created. |
provider * | string | Short code identifying the Git provider hosting the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
summary * | string | A short, descriptive title summarizing the purpose or content of the Jira ticket. |
description_body | string | Main body text of the Jira ticket description. Use newlines to separate paragraphs. |
description_bullet_points | array | Optional list of bullet point strings to append after the body text |
description_heading | string | Optional heading text to appear at the top of the Jira ticket description (rendered as a level-2 heading) |
dueDate | string | Optional target completion date for the ticket, specified in YYYY-MM-DD format. |
unlink_jira_ticket Unlink Jira Ticket
Removes the association between a Jira ticket and a specific repository element (such as an issue, finding, file, or dependency) within an organization. Use this to detach a previously linked Jira ticket from a code analysis element.
| Parameter | Type | Description |
|---|---|---|
elementId * | string | The unique identifier of the specific repository element (of the type specified by elementType) from which the Jira ticket will be unlinked. |
elementType * | string | The type of repository element from which the Jira ticket will be unlinked. Must be one of: issue, finding, file, or dependency. |
jiraTicketIdentifier * | string | The unique numeric identifier of the Jira ticket to unlink. This is the internal Jira ticket ID, not the human-readable issue key. |
provider * | string | The Git provider hosting the organization. Use the short identifier for the provider (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization as it appears on the Git provider platform. |
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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the organization, such as GitHub, GitLab, or Bitbucket. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the organization. Use the provider's abbreviated identifier. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The short identifier for the Git provider hosting the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact organization name as it appears on the specified Git provider. |
limit | string | Maximum number of Jira projects to return in a single response, between 1 and 100 inclusive. Defaults to 100 if not specified. |
search | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
jiraProjectId * | string | The unique numeric identifier of the Jira project whose issue types should be retrieved. |
provider * | string | Short code identifying the Git provider for the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
jiraIssueTypeId * | string | The identifier of the Jira issue type within the project for which available fields are returned. |
jiraProjectId * | string | The numeric identifier of the Jira project whose issue type fields are being queried. |
provider * | string | Short code identifying the Git provider hosting the organization. |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the organization. Use the provider's abbreviated identifier. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git hosting provider for the repository. |
pullRequestNumber * | string | The unique numeric identifier of the pull request within the repository. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
commitUuid * | string | The full SHA hash or UUID that uniquely identifies the commit whose diff should be retrieved. |
provider * | string | Short code identifying the Git hosting provider (e.g., GitHub, GitLab, Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
baseCommitUuid * | string | The SHA or UUID of the base (earlier) commit to use as the starting point of the diff comparison. |
headCommitUuid * | string | The 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 * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Identifier for the Git provider hosting the organization. Each provider has a short code (e.g., GitHub, GitLab, Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
categories | array | List of security categories to filter by. Use the special value `_other_` to include issues that have no assigned security category. Order is not significant. |
priorities | array | List of priority levels to filter security issues by. Valid values are defined by the SrmPriority enumeration. Order is not significant. |
repositories | array | List of repository names within the organization to restrict results to. Order is not significant. |
scanTypes | array | List of scan types to restrict results to. Order is not significant. |
searchText | string | Free-text string used to search within security item fields, such as title or description. |
segments | array | List of numeric segment IDs to filter results by. Order is not significant. |
statuses | array | List 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.
| Parameter | Type | Description |
|---|---|---|
commitId * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the repository. |
remoteOrganizationName * | string | Name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | Name of the repository within the specified Git provider organization. |
branch | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Identifier for the Git provider hosting the repository. |
remoteOrganizationName * | string | Name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | Name of the repository within the specified organization on the Git provider. |
branch | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the repository, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
pullRequestNumber * | string | The unique number identifying the pull request within the repository, as shown in the Git provider's interface. |
remoteOrganizationName * | string | The name of the organization or account on the Git provider that owns the repository. |
repositoryName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider. |
from | string | Start of the audit log time window as a Unix epoch timestamp in milliseconds. If omitted, defaults to the earliest available audit log entry. |
to | string | End 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Identifier for the Git provider hosting the organization. Use the short code for the desired platform (e.g., GitHub, GitLab, or Bitbucket). |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The exact organization name as it appears on the specified Git provider. |
limit | string | Maximum number of segment keys to return in a single response. Accepts values between 1 and 100, defaulting to 100 if not specified. |
search | string | Narrows 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the specified Git provider. |
limit | string | Maximum number of segment key records to return in a single response. Accepts values between 1 and 100. |
search | string | Filters 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
segmentKey * | string | The unique key identifying the segment whose values should be retrieved. |
limit | string | Maximum number of segment values to return in a single response, accepting values between 1 and 100. |
search | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider hosting the organization, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the specified Git provider. |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Short code identifying the Git provider hosting the organization (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
remoteOrganizationName * | string | The organization's name as it appears on the Git provider platform. |
url * | string | The fully qualified URL of the application or API endpoint to be scanned. Must be a valid URI. |
apiDefinitionUrl | string | The URL pointing to the API definition file (e.g., an OpenAPI or GraphQL schema), required when the target type is 'openapi' or 'graphql'. |
targetType | string | Specifies 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.
| Parameter | Type | Description |
|---|---|---|
dastTargetId * | string | The unique numeric identifier of the DAST target to delete. |
provider * | string | Short code identifying the Git provider hosting the organization, such as GitHub, GitLab, or Bitbucket. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
dastTargetId * | string | Unique numeric identifier of the DAST target to be analyzed. Must reference an existing target configured under the organization. |
provider * | string | Short code identifying the Git provider hosting the organization, such as GitHub, GitLab, or Bitbucket. |
remoteOrganizationName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
enterpriseName * | string | The unique slug identifier for the enterprise whose organizations you want to retrieve. |
provider * | string | The Git provider hosting the enterprise, specified as a short identifier code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The Git provider to query for enterprises, identified by its short code (e.g., GitHub, GitLab, Bitbucket). |
limit | string | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
enterpriseName * | string | The unique slug identifier for the enterprise, typically a lowercase hyphenated name used in URLs. |
provider * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
enterpriseName * | string | The URL-friendly slug identifier of the enterprise whose seats are being listed. |
provider * | string | The Git provider hosting the enterprise, identified by a short code (e.g., gh for GitHub, gl for GitLab, bb for Bitbucket). |
limit | string | Maximum number of seat records to return in a single response. Accepts values between 1 and 100. |
search | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
enterpriseName * | string | The unique slug (URL-friendly identifier) of the enterprise whose seat data should be exported. |
provider * | string | The 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.