# Corgea Documentation: English API Reference ## API Reference ### API Reference - [API Reference](https://docs.corgea.app/api-reference/introduction.md): Get started with the Corgea API - [Findings and Detections](https://docs.corgea.app/api-reference/findings-and-detections.md): Which endpoints describe a vulnerability itself, and which describe one scan's report of it - [Chunked scan upload](https://docs.corgea.app/api-reference/chunked-scan-upload.md): Upload large BLAST scans in chunks with the Start Scan API ### Authentication - [Verify Token (Deprecated)](https://docs.corgea.app/api-reference/authentication/verify-token-deprecated.md) - [Verify Token](https://docs.corgea.app/api-reference/authentication/verify-token.md): Verify the API token and optionally return user information - [Get Login Attempts](https://docs.corgea.app/api-reference/authentication/get-login-attempts.md): Retrieve successful login attempts for users - [Get Failed Login Attempts](https://docs.corgea.app/api-reference/authentication/get-failed-login-attempts.md): Retrieve failed login attempts for users - [Get User Login Attempts](https://docs.corgea.app/api-reference/authentication/get-user-login-attempts.md): Retrieve successful login attempts for a specific user - [Get User Failed Login Attempts](https://docs.corgea.app/api-reference/authentication/get-user-failed-login-attempts.md): Retrieve failed login attempts for a specific user ### Scans - [Get Scans](https://docs.corgea.app/api-reference/scans/get-scans.md): Retrieves a list of scans for the authenticated user's company - [Get Scan](https://docs.corgea.app/api-reference/scans/get-scan.md): Retrieves details of a specific scan - [Get Scan Report](https://docs.corgea.app/api-reference/scans/get-scan-report.md): Retrieve a scan report in HTML, SARIF, Markdown, or PDF format. PDF reports are available after a scan completes, including scans with no findings. format=pdf accepts only urgency and classification filters; other filters return 400. Reports with more than 500 findings are generated asynchronously a… - [Check Blocking Rules](https://docs.corgea.app/api-reference/scans/check-blocking-rules.md): Check if scan issues violate any blocking rules ### Detections - [List All Detections](https://docs.corgea.app/api-reference/detections/list-all-detections.md): Retrieve a list of all security detections for the authenticated user's company. By default, results are ordered by creation time, newest first, with detection ID as a tie-breaker for stable pagination. When no scan ID is supplied, prefers the newest matching processed non-PR scan covering the whole… - [List Security Detection Groups](https://docs.corgea.app/api-reference/detections/list-security-detection-groups.md): Retrieve security detections collapsed into groups with a count per group, so a client can render a summary without downloading every detection. Accepts the same filters as GET /detections. Drill into a group by re-issuing those filters against GET /detections with cwe or file_path_exact. - [List Code Quality Detections](https://docs.corgea.app/api-reference/detections/list-code-quality-detections.md): Retrieve code quality detections separately from security detections. Classification values are code quality labels, such as Maintainability, rather than CWEs. By default, results are ordered by creation time, newest first, with detection ID as a tie-breaker for stable pagination. When no scan ID is… - [Get Code Quality Detections for Scan](https://docs.corgea.app/api-reference/detections/get-code-quality-detections-for-scan.md): Retrieve code quality detections for a specific scan. By default, results are ordered by creation time, newest first, with detection ID as a tie-breaker for stable pagination. - [Get Detections for Scan](https://docs.corgea.app/api-reference/detections/get-detections-for-scan.md): Retrieves a list of detections for a specific scan. By default, results are ordered by creation time, newest first, with detection ID as a tie-breaker for stable pagination. - [List Security Detection Groups for a Scan](https://docs.corgea.app/api-reference/detections/list-security-detection-groups-for-a-scan.md): Retrieve a scan's security detections collapsed into groups with a count per group, so a client can render a summary without downloading every detection. Accepts the same filters as GET /scan/{scan_id}/detections. - [List Code Quality Detection Groups for a Scan](https://docs.corgea.app/api-reference/detections/list-code-quality-detection-groups-for-a-scan.md): Retrieve a scan's code quality detections collapsed into groups with a count per group, so a client can render a summary without downloading every detection. Accepts the same filters as GET /scan/{scan_id}/detections/quality. - [List SCA Detection Groups for a Scan](https://docs.corgea.app/api-reference/detections/list-sca-detection-groups-for-a-scan.md): Retrieve a scan's SCA detections collapsed into groups with a count per group, so a client can render a summary without downloading every detection. Accepts the same filters as GET /scan/{scan_id}/detections/sca. - [Get Detection](https://docs.corgea.app/api-reference/detections/get-detection.md): Retrieves details of a specific detection - [Update detection status](https://docs.corgea.app/api-reference/detections/update-detection-status.md): Changes one accessible SAST detection. Requires `heeler.view_issue` and `heeler.change_issue_status`. Supply status and a non-empty comment. False-positive and accepted-risk comments must explain the decision; other statuses, including reopening, are exempt from justification review but still requir… - [Get SCA Detection](https://docs.corgea.app/api-reference/detections/get-sca-detection.md): Retrieve details for a specific Software Composition Analysis (SCA) detection, including dependency reachability information. - [Get SCA Detections](https://docs.corgea.app/api-reference/detections/get-sca-detections.md): Retrieve a list of Software Composition Analysis (SCA) detections When no scan ID is supplied, prefers the newest matching processed non-PR scan covering the whole project; falls back to the newest matching scan if none exists. An explicit scan_type filter on /detections or /detections/code-quality… - [List SCA Detection Groups](https://docs.corgea.app/api-reference/detections/list-sca-detection-groups.md): Retrieve SCA detections collapsed into groups with a count per group, so a client can render a summary without downloading every detection. Accepts the same filters as GET /detections/sca. Drill into a group by re-issuing those filters against GET /detections/sca with package_exact. - [Get IaC Detections](https://docs.corgea.app/api-reference/detections/get-iac-detections.md): Retrieve Infrastructure-as-Code (IaC) security detections from the latest matching processed scan. When no scan ID is supplied, prefers the newest matching processed non-PR scan covering the whole project; falls back to the newest matching scan if none exists. An explicit scan_type filter on /detect… - [Get SCA Detections for Scan](https://docs.corgea.app/api-reference/detections/get-sca-detections-for-scan.md): Retrieve SCA detections for a specific scan - [Get IaC Detections for Scan](https://docs.corgea.app/api-reference/detections/get-iac-detections-for-scan.md): Retrieve Infrastructure-as-Code (IaC) security detections for a specific scan. ### Findings - [List findings](https://docs.corgea.app/api-reference/findings/list-findings.md): One row per finding: a vulnerability in one project across every scan that detected it, with its triage state and its newest detection. Newest first by when each finding was first detected; ties break on id so pages are stable. Returns 404 until the account's finding index is complete. Unknown query… - [Get a finding](https://docs.corgea.app/api-reference/findings/get-a-finding.md): One finding, of any family, with its triage state, the count and dates of its detections and its newest detection. The token needs the same view permission as the family's issues list. ### Triage - [Bulk triage findings](https://docs.corgea.app/api-reference/triage/bulk-triage-findings.md): Preview or apply a rule-based status change to as many as 5,000 accessible SAST or SCA findings. For non-admin requests, false-positive and accepted-risk actions require approval when the corresponding company approval setting is enabled; accepted-risk actions also require approval when they meet th… - [Get a triage action](https://docs.corgea.app/api-reference/triage/get-a-triage-action.md): Retrieve a bulk triage action and its paginated, immutable finding audit records. - [Review a triage action](https://docs.corgea.app/api-reference/triage/review-a-triage-action.md): Approve or reject a pending action. The reviewer must be a different company admin with permission to change every selected finding type. Approval overrides triage changes made while the request waited. Findings fixed or removed since the request are skipped. - [Get the triage approval policy](https://docs.corgea.app/api-reference/triage/get-the-triage-approval-policy.md): Return the accepted-risk thresholds that require approval. Company admin access is required. - [Update the triage approval policy](https://docs.corgea.app/api-reference/triage/update-the-triage-approval-policy.md): Partially update the accepted-risk approval thresholds. Set a threshold to null to disable it. Company admin access is required. - [List triage approvals](https://docs.corgea.app/api-reference/triage/list-triage-approvals.md): Everyone sees their own requests. Reviewers with the Can approve or reject triage requests permission (`heeler.approve_triage_request`) also see other requests, subject to access to every project when project access control applies. Returns one page of the current queue. After deciding requests, fet… - [Get a triage approval](https://docs.corgea.app/api-reference/triage/get-a-triage-approval.md): Everyone sees their own requests. Reviewers with the Can approve or reject triage requests permission (`heeler.approve_triage_request`) also see other requests, subject to access to every project when project access control applies. Requests outside this view return 404. Returns approval, findings a… - [Approve a triage request](https://docs.corgea.app/api-reference/triage/approve-a-triage-request.md): Everyone sees their own requests. Reviewers with the Can approve or reject triage requests permission (`heeler.approve_triage_request`) also see other requests, subject to access to every project when project access control applies. Requests outside this view return 404. The reviewer must differ fro… - [Reject a triage request](https://docs.corgea.app/api-reference/triage/reject-a-triage-request.md): Everyone sees their own requests. Reviewers with the Can approve or reject triage requests permission (`heeler.approve_triage_request`) also see other requests, subject to access to every project when project access control applies. Requests outside this view return 404. The reviewer must differ fro… ### Dependencies - [Get Dependencies](https://docs.corgea.app/api-reference/dependencies/get-dependencies.md): Retrieve software dependencies (SBOM) from the latest matching processed scan. When no scan ID is supplied, prefers the newest matching processed non-PR scan covering the whole project; falls back to the newest matching scan if none exists. An explicit scan_type filter on /detections or /detections/… - [Download Scan SBOM](https://docs.corgea.app/api-reference/dependencies/download-scan-sbom.md): Download the CycloneDX JSON SBOM for a completed scan. Requires `heeler.view_sastscan` (the **View SAST Scan** permission) and access to the scan’s project when Project Access Control is enabled. An empty dependency inventory returns a document with an empty components array. - [Get Dependencies for Scan](https://docs.corgea.app/api-reference/dependencies/get-dependencies-for-scan.md): Retrieve software dependencies (SBOM) for a specific scan. ### Starting Corgea Scan - [Start New Scan](https://docs.corgea.app/api-reference/starting-corgea-scan/start-new-scan.md): Starts a BLAST chunked upload. Send `scan_type=blast` as a form field and exactly one `files` part. The archive name must use `.zip`, `.tar`, `.json`, `.fpr`, `.sarif`, or `.xml`. The part body may be empty; send archive bytes with PATCH. BLAST scanning must be enabled for your company. - [Check Upload Status](https://docs.corgea.app/api-reference/starting-corgea-scan/check-upload-status.md): Return the current upload offset for a transfer. This path requires a trailing slash. Does not return `scan_id`. - [Continue Scan Upload](https://docs.corgea.app/api-reference/starting-corgea-scan/continue-scan-upload.md): Continue a BLAST chunked upload. This path requires a trailing slash. Intermediate responses include the `Upload-Offset` header and no `scan_id`. When the last chunk completes the archive, the JSON body includes `scan_id` and `project_id` and does not set `Upload-Offset`. ### Uploading 3rd Party Scan - [Upload Scan](https://docs.corgea.app/api-reference/uploading-3rd-party-scan/upload-scan.md): Upload a completed scan report from CLI tools. Upload at least one source file with `/code-upload` for the same `run_id` before calling this endpoint. This endpoint receives pre-generated scan results from Semgrep, Snyk, Checkmarx, CodeQL, and Fortify and integrates them into the system. - [Upload Git Config](https://docs.corgea.app/api-reference/uploading-3rd-party-scan/upload-git-config.md): Upload Git configuration data for a specific scan run to help with repository URL parsing and analysis. - [Upload Source Code File](https://docs.corgea.app/api-reference/uploading-3rd-party-scan/upload-source-code-file.md): Upload individual source code files for a specific scan run. This is used to upload the actual source files that will be analyzed. - [Upload CI/CD Data](https://docs.corgea.app/api-reference/uploading-3rd-party-scan/upload-cicd-data.md): Upload CI/CD pipeline metadata and context information for a specific scan run. ### Skills - [List Skills](https://docs.corgea.app/api-reference/skills/list-skills.md): Retrieve skills in the authenticated user's company. Use status=approved to return only skills with an approved, installable version. - [Get Skill](https://docs.corgea.app/api-reference/skills/get-skill.md): Retrieve a single skill by slug. By default, the latest approved version is returned when one exists. A specific version can be requested with the version query parameter. Version content is included only when the selected version is approved. ### Projects - [List Projects](https://docs.corgea.app/api-reference/projects/list-projects.md): Retrieve projects the authenticated user can access. - [Update Project Tags](https://docs.corgea.app/api-reference/projects/update-project-tags.md): Add, remove, or replace tags for a project. Incoming tags are trimmed, lowercased, empty values are ignored, and duplicate values are removed before the update is applied. ### Policies - [List Blocking Rules](https://docs.corgea.app/api-reference/policies/list-blocking-rules.md): Retrieve all blocking rules for the authenticated user's company - [List Policies](https://docs.corgea.app/api-reference/policies/list-policies.md): Retrieve policies for the authenticated user's company. Results are ordered by newest first. - [Create Policy](https://docs.corgea.app/api-reference/policies/create-policy.md): Create a policy for the authenticated user's company. - [Get Policy](https://docs.corgea.app/api-reference/policies/get-policy.md): Retrieve a policy by ID. - [Deactivate Policy](https://docs.corgea.app/api-reference/policies/deactivate-policy.md): Deactivate a policy by ID. - [Update Policy](https://docs.corgea.app/api-reference/policies/update-policy.md): Partially update a policy. Updates to policy content create a new version; changing only active status updates the same policy. ### Notifications - [List Notification Types](https://docs.corgea.app/api-reference/notifications/list-notification-types.md): Retrieve active notification types available to the authenticated user. - [List Notification Preferences](https://docs.corgea.app/api-reference/notifications/list-notification-preferences.md): Retrieve resolved email notification preferences for the authenticated user. - [Update Notification Preference](https://docs.corgea.app/api-reference/notifications/update-notification-preference.md): Set or reset the authenticated user's email preference for a notification type. Use null to inherit the company default. - [Update Notification Preference](https://docs.corgea.app/api-reference/notifications/update-notification-preference-1.md): Set or reset the authenticated user's email preference for a notification type. Use null to inherit the company default. - [List Company Notification Defaults](https://docs.corgea.app/api-reference/notifications/list-company-notification-defaults.md): Retrieve company-level email and webhook defaults for active notification types. Company admin access is required. - [Update Company Notification Default](https://docs.corgea.app/api-reference/notifications/update-company-notification-default.md): Partially update company-level email or webhook defaults for a notification type. Use null to inherit the platform default. Company admin access is required. - [Update Company Notification Default](https://docs.corgea.app/api-reference/notifications/update-company-notification-default-1.md): Partially update company-level email or webhook defaults for a notification type. Use null to inherit the platform default. Company admin access is required. ### Teams - [List teams](https://docs.corgea.app/api-reference/teams/list-teams.md): Lists active teams for the authenticated user's company. Requires the `user_management.change_content_access` permission. - [Create a team](https://docs.corgea.app/api-reference/teams/create-a-team.md): Creates a team and optionally assigns members, explicit projects, project-tag selectors, and repository URL fragment selectors. Requires the `user_management.change_content_access` permission. - [Get a team](https://docs.corgea.app/api-reference/teams/get-a-team.md): Retrieves an active team for the authenticated user's company. - [Delete a team](https://docs.corgea.app/api-reference/teams/delete-a-team.md): Permanently deletes a team. Requires the `user_management.change_content_access` permission. - [Update a team](https://docs.corgea.app/api-reference/teams/update-a-team.md): Updates any supplied team fields. Selector lists replace their current values; omit a field to leave it unchanged. Requires the `user_management.change_content_access` permission. - [Add team members](https://docs.corgea.app/api-reference/teams/add-team-members.md) - [Remove team members](https://docs.corgea.app/api-reference/teams/remove-team-members.md): Removes the supplied users from the team. Company administrators cannot be removed. - [List projects accessible to a team](https://docs.corgea.app/api-reference/teams/list-projects-accessible-to-a-team.md): Resolves projects granted through explicit assignment, project tags, or repository URL fragments. Use `sources` to see every matching access path. ### Harness integrations - [List Harness integrations](https://docs.corgea.app/api-reference/harness-integrations/list-harness-integrations.md): Lists Harness Code SCM integrations for your company. Requires the `integrations.view_integration` permission. - [Create a Harness integration](https://docs.corgea.app/api-reference/harness-integrations/create-a-harness-integration.md): Creates a Harness Code SCM integration after verifying its PAT or Service Account Token. Requires the `integrations.manage_integration` permission. An account can have multiple integrations when each uses a different organization allowlist. - [Get a Harness integration](https://docs.corgea.app/api-reference/harness-integrations/get-a-harness-integration.md): Retrieves a Harness Code SCM integration for your company. Requires the `integrations.view_integration` permission. - [Delete a Harness integration](https://docs.corgea.app/api-reference/harness-integrations/delete-a-harness-integration.md): Deletes a Harness Code SCM integration and attempts to remove its registered webhooks. Requires the `integrations.manage_integration` permission. - [Update a Harness integration](https://docs.corgea.app/api-reference/harness-integrations/update-a-harness-integration.md): Updates selected fields. Changing the token, base URL, or gateway prefix re-verifies the credentials. A replacement token must belong to the existing Harness account. Requires the `integrations.manage_integration` permission. ### Users - [List users](https://docs.corgea.app/api-reference/users/list-users.md): Lists company users, including inactive users. Requires `auth.view_user`. The default list and search exclude company admins, staff, and service principals. Exact, case-insensitive email lookup also includes company admins. - [Create user](https://docs.corgea.app/api-reference/users/create-user.md): Creates an active company user and sends a welcome sign-in email. Requires `auth.add_user` and an available user seat. Optionally supply either role_id or role_name, never both. Role assignment requires a plan supporting roles; Admin cannot be assigned, and the caller must hold every permission in t… - [Deactivate user](https://docs.corgea.app/api-reference/users/deactivate-user.md): Deactivates a company user without deleting the account, revokes active API tokens, and clears project access. Requires `auth.delete_user`. Company admins, staff, and service principals cannot be deactivated through this endpoint. Repeating the request for an inactive user succeeds. - [List roles](https://docs.corgea.app/api-reference/users/list-roles.md): Lists company roles with active user counts. Requires `user_management.view_permissiongroup` and a plan supporting roles. The SAML-managed role is excluded. ## OpenAPI Specs - [openapi](/api-reference/openapi.json)