# Semgrep: API v2 (Experimental) ## v2 (Experimental) ### Overview - [Semgrep API v2](https://docs.semgrep.dev/api-reference/v2/Introduction.md): Welcome to the portal for Semgrep AppSec Platform's web API v2. - [Authentication](https://docs.semgrep.dev/api-reference/v2/Authentication.md) - [Terms of Use](https://docs.semgrep.dev/api-reference/v2/Terms-of-Use.md) - [Changelog](https://docs.semgrep.dev/api-reference/v2/Changelog.md): Changes to the Semgrep API v2, generated from its OpenAPI specification. - [Deprecation Policy](https://docs.semgrep.dev/api-reference/v2/Deprecation-Policy.md): Learn how Semgrep communicates API deprecations, including notice periods and endpoint removal timelines. ### Endpoints #### AI Fix Jobs - [Create fix job](https://docs.semgrep.dev/api-reference/v2/aifixjobsservice/create-fix-job.md): Create an automated SAST fix job for the given issue. This triggers an AI-powered workflow that analyzes the vulnerability, generates a fix, and opens a pull request in the repository. #### AI tasks - [Create combined task](https://docs.semgrep.dev/api-reference/v2/aitasksservice/create-combined-task.md): Create a combined task for a deployment - [Get task info](https://docs.semgrep.dev/api-reference/v2/aitasksservice/get-task-info.md): Get the task info for a deployment #### Autofix - [Create autofix](https://docs.semgrep.dev/api-reference/v2/autofixservice/create-autofix.md): Triggers an Autofix workflow for the given issue. The workflow runs asynchronously; it analyzes the issue, generates a fix, and opens a pull request in the underlying repository. Supports SAST, AI SAST, and SCA issue types — the issue's type is resolved server-side and dispatched to the correspondin… #### Automations - [List automations](https://docs.semgrep.dev/api-reference/v2/automationsservice/list-automations.md): List all automations. - [Create automation](https://docs.semgrep.dev/api-reference/v2/automationsservice/create-automation.md): Create a new automation. - [Update automation](https://docs.semgrep.dev/api-reference/v2/automationsservice/update-automation.md): Update an existing automation. - [Delete automation](https://docs.semgrep.dev/api-reference/v2/automationsservice/delete-automation.md): Delete an automation by its ID. - [List automations](https://docs.semgrep.dev/api-reference/v2/automationsservice/list-automations-1.md): List all automations with pagination support. #### Autotriage Feedback - [Submit autotriage feedback](https://docs.semgrep.dev/api-reference/v2/autotriagefeedbackservice/submit-autotriage-feedback.md): Post autotriage feedback #### Deployment - [List deployment users](https://docs.semgrep.dev/api-reference/v2/deploymentservice/list-deployment-users.md): Get deployment users - [Add deployment user](https://docs.semgrep.dev/api-reference/v2/deploymentservice/add-deployment-user.md): Add a user to the deployment - [Create deployment](https://docs.semgrep.dev/api-reference/v2/deploymentservice/create-deployment.md): Create adeployment - [Get deployment](https://docs.semgrep.dev/api-reference/v2/deploymentservice/get-deployment.md): Get a deployment - [Update deployment](https://docs.semgrep.dev/api-reference/v2/deploymentservice/update-deployment.md): Update a deployment - [Get deployment authorized actions](https://docs.semgrep.dev/api-reference/v2/deploymentservice/get-deployment-authorized-actions.md): Get a list of actions the user is authorized to take on the deployment - [Get deployment default user role](https://docs.semgrep.dev/api-reference/v2/deploymentservice/get-deployment-default-user-role.md): Get the default user role for a deployment - [Get deployment for current token](https://docs.semgrep.dev/api-reference/v2/deploymentservice/get-deployment-for-current-token.md): Get all deployments for a token - [Get deployment GitHub app status](https://docs.semgrep.dev/api-reference/v2/deploymentservice/get-deployment-github-app-status.md): Check if the Semgrep GitHub app is installed for the deployment - [List deployment users (paginated)](https://docs.semgrep.dev/api-reference/v2/deploymentservice/list-deployment-users-paginated.md): List deployment users (paginated) - [Remove deployment user](https://docs.semgrep.dev/api-reference/v2/deploymentservice/remove-deployment-user.md): Remove a user from the deployment - [Send product toggle feedback](https://docs.semgrep.dev/api-reference/v2/deploymentservice/send-product-toggle-feedback.md): Submit feedback about enabling or disabling a product for the deployment. - [Toggle cross-file analysis](https://docs.semgrep.dev/api-reference/v2/deploymentservice/toggle-cross-file-analysis.md): Enable or disable cross-file analysis for the deployment's scans. - [Toggle dependency query](https://docs.semgrep.dev/api-reference/v2/deploymentservice/toggle-dependency-query.md): Enable or disable dependency querying for the deployment. - [Toggle triage via comment](https://docs.semgrep.dev/api-reference/v2/deploymentservice/toggle-triage-via-comment.md): Enable or disable triaging findings by replying to Semgrep's review comments. - [Update deployment user role](https://docs.semgrep.dev/api-reference/v2/deploymentservice/update-deployment-user-role.md): Change the organization role assigned to a user in the deployment. #### Deployment Products - [Get deployment product config](https://docs.semgrep.dev/api-reference/v2/deploymentproductsservice/get-deployment-product-config.md): Get the product configuration for a deployment - [Create or update deployment product config](https://docs.semgrep.dev/api-reference/v2/deploymentproductsservice/create-or-update-deployment-product-config.md): Create or update the product configuration for a deployment - [Get deployment admin product config](https://docs.semgrep.dev/api-reference/v2/deploymentproductsservice/get-deployment-admin-product-config.md): Get the admin product configuration for a deployment #### Deployment Tags - [Get a deployment tag](https://docs.semgrep.dev/api-reference/v2/deploymenttagservice/get-a-deployment-tag.md): Get a deployment tag - [Create or update a deployment tag](https://docs.semgrep.dev/api-reference/v2/deploymenttagservice/create-or-update-a-deployment-tag.md): Create or update a deployment tag - [Delete a deployment tag](https://docs.semgrep.dev/api-reference/v2/deploymenttagservice/delete-a-deployment-tag.md): Delete a deployment tag - [Find deployment tags with project counts](https://docs.semgrep.dev/api-reference/v2/deploymenttagservice/find-deployment-tags-with-project-counts.md): Find deployment tags with project counts - [List deployment tags](https://docs.semgrep.dev/api-reference/v2/deploymenttagservice/list-deployment-tags.md): List deployment tags #### Deployments - [List deployments](https://docs.semgrep.dev/api-reference/v2/deploymentsservice/list-deployments.md): Request the deployments your auth can access. #### Editor - [Validate a rule against example code](https://docs.semgrep.dev/api-reference/v2/editorservice/validate-a-rule-against-example-code.md): Execute a Semgrep pattern or YAML rule against supplied target code. Include positive ruleid and negative ok test annotations to validate examples. Inspect semgrep_result for execution errors and test_result for individual test outcomes; HTTP success alone does not mean the rule or examples passed.… #### External Ticketing - [Create external tickets](https://docs.semgrep.dev/api-reference/v2/externalticketingservice/create-external-tickets.md): Create tickets in your issue tracking system for Semgrep findings. - [Delete external ticket](https://docs.semgrep.dev/api-reference/v2/externalticketingservice/delete-external-ticket.md): Delete a ticket and unlink it from Semgrep findings. - [Get external ticketing instances](https://docs.semgrep.dev/api-reference/v2/externalticketingservice/get-external-ticketing-instances.md): Gets the issue tracking systems linked to a deployment. E.g. Jira. - [Link an existing ticket to findings](https://docs.semgrep.dev/api-reference/v2/externalticketingservice/link-an-existing-ticket-to-findings.md): Link an existing external ticket (e.g. Jira) to one or more Semgrep findings by providing the ticket URL and a list of finding IDs. This does not create a ticket in your issue tracker — it only records the association in Semgrep. If a finding is already linked to a different ticket, the existing lin… - [Unlink a ticket from findings](https://docs.semgrep.dev/api-reference/v2/externalticketingservice/unlink-a-ticket-from-findings.md): Remove the ticket association from one or more Semgrep findings by providing a list of finding IDs. This does not delete the ticket in your issue tracker — it only removes the association in Semgrep. #### Global Ignores - [Get product ignores](https://docs.semgrep.dev/api-reference/v2/ignoresservice/get-product-ignores.md): Get the global ignore patterns configured for each product in a deployment. - [Create product ignores](https://docs.semgrep.dev/api-reference/v2/ignoresservice/create-product-ignores.md): Add global ignore patterns for one or more products in a deployment. - [Delete product ignores](https://docs.semgrep.dev/api-reference/v2/ignoresservice/delete-product-ignores.md): Remove the global ignore patterns for one or more products in a deployment. - [Update product ignores](https://docs.semgrep.dev/api-reference/v2/ignoresservice/update-product-ignores.md): Update the global ignore patterns for one or more products in a deployment. #### Infrastructure Configurations - [Get Managed Scans VPC bootstrap CloudFormation template](https://docs.semgrep.dev/api-reference/v2/infrastructureconfigurationsservice/get-managed-scans-vpc-bootstrap-cloudformation-template.md): VPC support for Managed Scans is in private beta. #### Issues - [Bulk update issues](https://docs.semgrep.dev/api-reference/v2/issuesservice/bulk-update-issues.md): Bulk triage issues that match specified filters - [Export issues](https://docs.semgrep.dev/api-reference/v2/issuesservice/export-issues.md): Asynchronously export issues matching filters to a file - [Get issue](https://docs.semgrep.dev/api-reference/v2/issuesservice/get-issue.md): Get a single issue by ID with details - [Get issue code snippets](https://docs.semgrep.dev/api-reference/v2/issuesservice/get-issue-code-snippets.md): Get code snippets for an issue. - [Get issue counts](https://docs.semgrep.dev/api-reference/v2/issuesservice/get-issue-counts.md): Get counts of issues by status with filtering - [Get issue filters](https://docs.semgrep.dev/api-reference/v2/issuesservice/get-issue-filters.md): Get available filter options for issues - [List issue groups](https://docs.semgrep.dev/api-reference/v2/issuesservice/list-issue-groups.md): Search and group issues by rule with filtering and pagination - [List issues](https://docs.semgrep.dev/api-reference/v2/issuesservice/list-issues.md): List a deployment's recent issues with filtering, sorting, and cursor pagination. - [List related issues](https://docs.semgrep.dev/api-reference/v2/issuesservice/list-related-issues.md): List non-removed issues in the same project with the same match based ID, excluding the requested issue. Results are ordered by issue ID. #### Issues (Semgrep Agentic Workflows) - [Count issues](https://docs.semgrep.dev/api-reference/v2/publicissuesservice/count-issues.md): Count Semgrep Agentic Workflows issues matching the supplied filters. - [Export issues as CSV](https://docs.semgrep.dev/api-reference/v2/publicissuesservice/export-issues-as-csv.md): Create an asynchronous CSV export of Semgrep Agentic Workflows issues. Exports are limited to 10,000 rows. Download URLs expire 15 minutes after generation finishes. - [Get issue activity history](https://docs.semgrep.dev/api-reference/v2/publicissuesservice/get-issue-activity-history.md): Get a page of activity history for a Semgrep Agentic Workflows issue, newest first. - [Get issue by ID](https://docs.semgrep.dev/api-reference/v2/publicissuesservice/get-issue-by-id.md): Get a Semgrep Agentic Workflows issue by ID. - [Triage issue](https://docs.semgrep.dev/api-reference/v2/publicissuesservice/triage-issue.md): Set the triage state, reason, and optional note for a Semgrep Agentic Workflows issue. - [Get issue export](https://docs.semgrep.dev/api-reference/v2/publicissuesservice/get-issue-export.md): Get the status and result of a CSV export. - [List issues](https://docs.semgrep.dev/api-reference/v2/publicissuesservice/list-issues.md): List Semgrep Agentic Workflows issues with filtering, sorting, and cursor pagination. #### Managed Scan Settings - [Get Semgrep Managed Scan settings](https://docs.semgrep.dev/api-reference/v2/managedscansettingsservice/get-semgrep-managed-scan-settings.md): Get the Managed Scan settings that apply to all of a deployment's Managed Scans. - [Create Semgrep Managed Scan settings](https://docs.semgrep.dev/api-reference/v2/managedscansettingsservice/create-semgrep-managed-scan-settings.md): Create the Managed Scan settings for a deployment. - [Update Semgrep Managed Scan settings](https://docs.semgrep.dev/api-reference/v2/managedscansettingsservice/update-semgrep-managed-scan-settings.md): Replace an existing set of Managed Scan settings. - [Delete Semgrep Managed Scan settings](https://docs.semgrep.dev/api-reference/v2/managedscansettingsservice/delete-semgrep-managed-scan-settings.md): Delete a set of Managed Scan settings by ID. #### Memories - [Create memory](https://docs.semgrep.dev/api-reference/v2/memoriesservice/create-memory.md): Create a new memory. - [Create memory from triage](https://docs.semgrep.dev/api-reference/v2/memoriesservice/create-memory-from-triage.md): Create a new memory from a triage event. - [Update memory](https://docs.semgrep.dev/api-reference/v2/memoriesservice/update-memory.md): Update a memory by replacement. - [Delete memory](https://docs.semgrep.dev/api-reference/v2/memoriesservice/delete-memory.md): Delete a memory by its ID. - [Find relevant issues](https://docs.semgrep.dev/api-reference/v2/memoriesservice/find-relevant-issues.md): Find relevant issues for a given rule and repository. - [Get memories by IDs](https://docs.semgrep.dev/api-reference/v2/memoriesservice/get-memories-by-ids.md): Get memories by ids. - [Get memory statistics](https://docs.semgrep.dev/api-reference/v2/memoriesservice/get-memory-statistics.md): Get statistics about a deployment's memories performance - [List memories](https://docs.semgrep.dev/api-reference/v2/memoriesservice/list-memories.md): List memories, optionally scoped to a single repository. - [List suggested memories](https://docs.semgrep.dev/api-reference/v2/memoriesservice/list-suggested-memories.md): List all suggested memories. #### Notification Rules - [Create notification rule](https://docs.semgrep.dev/api-reference/v2/notificationrulesservice/create-notification-rule.md): Create a notification rule - [Replace notification rule](https://docs.semgrep.dev/api-reference/v2/notificationrulesservice/replace-notification-rule.md): Replace a notification rule - [Delete notification rule](https://docs.semgrep.dev/api-reference/v2/notificationrulesservice/delete-notification-rule.md): Delete a notification rule - [List notification rules](https://docs.semgrep.dev/api-reference/v2/notificationrulesservice/list-notification-rules.md): List notification rules - [Test notification rule](https://docs.semgrep.dev/api-reference/v2/notificationrulesservice/test-notification-rule.md): Test a notification rule #### Notification Webhooks - [List notification webhooks](https://docs.semgrep.dev/api-reference/v2/notificationwebhooksservice/list-notification-webhooks.md): List all notification webhooks for a deployment. - [Create notification webhook](https://docs.semgrep.dev/api-reference/v2/notificationwebhooksservice/create-notification-webhook.md): Create a new webhook endpoint. - [Get notification webhook](https://docs.semgrep.dev/api-reference/v2/notificationwebhooksservice/get-notification-webhook.md): Get a specific notification webhook by ID. - [Update notification webhook](https://docs.semgrep.dev/api-reference/v2/notificationwebhooksservice/update-notification-webhook.md): Update a notification webhook by replacement. - [Delete notification webhook](https://docs.semgrep.dev/api-reference/v2/notificationwebhooksservice/delete-notification-webhook.md): Delete a notification webhook by its ID. - [Test notification webhook](https://docs.semgrep.dev/api-reference/v2/notificationwebhooksservice/test-notification-webhook.md): Send a test payload to the webhook endpoint. #### Policies - [List policies](https://docs.semgrep.dev/api-reference/v2/policiesservice/list-policies.md): List all policies for a given deployment. - [List policy rules](https://docs.semgrep.dev/api-reference/v2/policiesservice/list-policy-rules.md): List the rules for a given policy. - [Update policy rule](https://docs.semgrep.dev/api-reference/v2/policiesservice/update-policy-rule.md): Update a specific rule within a policy. #### Policies V2 - [Get a detection policy](https://docs.semgrep.dev/api-reference/v2/policiesv2service/get-a-detection-policy.md): Returns the detection policy bundle for one product (`code` or `secrets`), including its exceptions, plus the state_version required to apply changes. Returns 404 with code PRODUCT_NOT_ENABLED when the requested product is not enabled for the deployment. - [Apply a detection policy](https://docs.semgrep.dev/api-reference/v2/policiesv2service/apply-a-detection-policy.md): Strictly applies a candidate detection policy bundle for one product: the submitted bundle replaces the current state, and exceptions absent from it are deleted. Requires the current state_version in the If-Match header; responds 428 when the header is missing and 409 with the current state_version… - [Get remediation policies](https://docs.semgrep.dev/api-reference/v2/policiesv2service/get-remediation-policies.md): Returns the remediation policies bundle for the deployment plus the state_version required to apply changes. System-managed policies are not included. - [Apply remediation policies](https://docs.semgrep.dev/api-reference/v2/policiesv2service/apply-remediation-policies.md): Strictly applies a candidate remediation policies bundle: the submitted list replaces the current state, and policies absent from it are deleted. Requires the current state_version in the If-Match header; responds 428 when the header is missing and 409 with the current state_version when it is stale… - [Get the detection policy summary](https://docs.semgrep.dev/api-reference/v2/policiesv2service/get-the-detection-policy-summary.md): Returns the detection policy bundles and state_versions for every enabled product in one read-only call. Writes always go through the per-product endpoints. - [Get the policy vocabulary](https://docs.semgrep.dev/api-reference/v2/policiesv2service/get-the-policy-vocabulary.md): Returns the condition types, action types, and value enums this API accepts, so bundles can be validated client-side (for example in CI) without a round trip. Without the product query parameter, only the product-agnostic vocabulary is returned; pass product to include its value enums and, for `code… - [Preview a detection policy apply](https://docs.semgrep.dev/api-reference/v2/policiesv2service/preview-a-detection-policy-apply.md): Validates a candidate detection policy bundle and returns the diff a strict apply would produce, without changing anything. The response includes the state_version the diff was computed against; send that exact value as If-Match on the follow-up PUT to guarantee you apply the diff you previewed. - [Preview a remediation policies apply](https://docs.semgrep.dev/api-reference/v2/policiesv2service/preview-a-remediation-policies-apply.md): Validates a candidate remediation policies bundle and returns the diff a strict apply would produce, without changing anything. The response includes the state_version the diff was computed against; send that exact value as If-Match on the follow-up PUT to guarantee you apply the diff you previewed. #### Projects - [Add Semgrep CI secrets to GitHub repositories](https://docs.semgrep.dev/api-reference/v2/projectsservice/add-semgrep-ci-secrets-to-github-repositories.md): Generates and adds a secret for the "semgrep-ci" GitHub Action to the GitHub Repositories that are associated with any Semgrep Projects that match the given filters. - [Bulk edit projects by filter](https://docs.semgrep.dev/api-reference/v2/projectsservice/bulk-edit-projects-by-filter.md): Applies a change to many projects that match the given filters. - [Bulk edit selected projects](https://docs.semgrep.dev/api-reference/v2/projectsservice/bulk-edit-selected-projects.md): Applies changes to multiple specified projects at once. - [Get project](https://docs.semgrep.dev/api-reference/v2/projectsservice/get-project.md): Get a project by its ID. - [Delete project](https://docs.semgrep.dev/api-reference/v2/projectsservice/delete-project.md): Delete a project by its ID. This will delete the project and all of its findings. This action cannot be reversed. - [Get branch](https://docs.semgrep.dev/api-reference/v2/projectsservice/get-branch.md): Get a branch by its ID. - [Get project count](https://docs.semgrep.dev/api-reference/v2/projectsservice/get-project-count.md): Get the number of projects in a deployment. - [List project IDs by tag](https://docs.semgrep.dev/api-reference/v2/projectsservice/list-project-ids-by-tag.md): Gets a mapping from tag ID to related project IDs. - [List projects](https://docs.semgrep.dev/api-reference/v2/projectsservice/list-projects.md): List all projects based on provided filters. - [Provision Semgrep CI GitHub Actions](https://docs.semgrep.dev/api-reference/v2/projectsservice/provision-semgrep-ci-github-actions.md): Adds a "semgrep-ci" GitHub Action to the GitHub Repositories that are associated with any Semgrep Projects that match the given filters. - [Sync all projects to SCM](https://docs.semgrep.dev/api-reference/v2/projectsservice/sync-all-projects-to-scm.md): Schedules a job to sync all projects in a deployment to their SCM. - [Sync project to SCM](https://docs.semgrep.dev/api-reference/v2/projectsservice/sync-project-to-scm.md): Schedules a job to sync a project with its SCM. - [Update project](https://docs.semgrep.dev/api-reference/v2/projectsservice/update-project.md): Use a "Merge Patch" to update a project's name or SMS settings. #### Projects - Managed Scan Settings - [Bulk get many projects' Managed Scan settings](https://docs.semgrep.dev/api-reference/v2/projectmanagedscansettingsservice/bulk-get-many-projects-managed-scan-settings.md): Finds the user-configurable Managed Scan settings for the specified projects. Projects without Managed Scans set up will have empty values. - [Get a project's Managed Scan settings](https://docs.semgrep.dev/api-reference/v2/projectmanagedscansettingsservice/get-a-projects-managed-scan-settings.md): Finds the user-configurable Managed Scan settings for the specified project. Returns an empty result if the specified project does not have Managed Scans set up. #### Reporting - [Get backlog by product report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-backlog-by-product-report.md) - [Get backlog by rule report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-backlog-by-rule-report.md) - [Get backlog by severity report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-backlog-by-severity-report.md) - [Get findings activity report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-findings-activity-report.md) - [Get findings by project and product report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-findings-by-project-and-product-report.md) - [Get findings by project and severity report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-findings-by-project-and-severity-report.md) - [Get findings funnel report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-findings-funnel-report.md) - [Get guardrails activity report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-guardrails-activity-report.md) - [Get guardrails adoption report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-guardrails-adoption-report.md) - [Get Malware Firewall blocked malicious dependencies by advisory report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-malware-firewall-blocked-malicious-dependencies-by-advisory-report.md) - [Get Malware Firewall blocked malicious dependencies by dependency, version, and ecosystem report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-malware-firewall-blocked-malicious-dependencies-by-dependency-version-and-ecosystem-report.md) - [Get Malware Firewall blocked malicious dependencies by ecosystem report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-malware-firewall-blocked-malicious-dependencies-by-ecosystem-report.md) - [Get Malware Firewall scan activity report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-malware-firewall-scan-activity-report.md) - [Get Malware Firewall summary report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-malware-firewall-summary-report.md) - [Get median open age by product report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-median-open-age-by-product-report.md) - [Get median open age by severity report](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-median-open-age-by-severity-report.md) - [Get report findings](https://docs.semgrep.dev/api-reference/v2/reportsservice/get-report-findings.md) #### Review Comment Product Content - [List review comment product content](https://docs.semgrep.dev/api-reference/v2/reviewcommentproductcontentservice/list-review-comment-product-content.md): List all review comment product contents - [Create review comment product content](https://docs.semgrep.dev/api-reference/v2/reviewcommentproductcontentservice/create-review-comment-product-content.md): Create a new review comment product content - [Update review comment product content](https://docs.semgrep.dev/api-reference/v2/reviewcommentproductcontentservice/update-review-comment-product-content.md): Update an existing review comment product content - [Delete review comment product content](https://docs.semgrep.dev/api-reference/v2/reviewcommentproductcontentservice/delete-review-comment-product-content.md): Delete a review product content by its ID. #### Ruleboards - [List ruleboards](https://docs.semgrep.dev/api-reference/v2/ruleboardservice/list-ruleboards.md) - [Create ruleboard](https://docs.semgrep.dev/api-reference/v2/ruleboardservice/create-ruleboard.md): Create a new ruleboard for the deployment. - [Get ruleboard](https://docs.semgrep.dev/api-reference/v2/ruleboardservice/get-ruleboard.md) - [Update ruleboard](https://docs.semgrep.dev/api-reference/v2/ruleboardservice/update-ruleboard.md) - [Delete ruleboard](https://docs.semgrep.dev/api-reference/v2/ruleboardservice/delete-ruleboard.md): Delete a ruleboard for the deployment. - [Get ruleboard finding counts](https://docs.semgrep.dev/api-reference/v2/ruleboardservice/get-ruleboard-finding-counts.md) - [Get ruleboard overview](https://docs.semgrep.dev/api-reference/v2/ruleboardservice/get-ruleboard-overview.md) - [Update ruleboard overview](https://docs.semgrep.dev/api-reference/v2/ruleboardservice/update-ruleboard-overview.md): buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_RESPONSE_STANDARD_NAME #### Scans - [Get scan](https://docs.semgrep.dev/api-reference/v2/scansservice/get-scan.md): Get a scan by ID. - [List scan subproject stats](https://docs.semgrep.dev/api-reference/v2/scansservice/list-scan-subproject-stats.md): List dependency resolution statistics for the specified scan, including unresolved reasons and full error messages. Requires scan-read and findings-read permissions, and findings-read access to the scan's project. Results follow the recorded subproject order. Returns 404 when the scan does not exist… - [List scans](https://docs.semgrep.dev/api-reference/v2/scansservice/list-scans.md): List the scans associated with a particular project from the past 30 days. - [Retry failed Managed Scans](https://docs.semgrep.dev/api-reference/v2/scansservice/retry-failed-managed-scans.md): Retry one or more failed Semgrep Managed Scans (SMS). Only scans that are SMS and have failed or never finished can be retried. Send a single scan ID or multiple; returns one task per successful retry and one error per failed retry. #### Semgrep Agentic Workflows - [Get workflow job findings](https://docs.semgrep.dev/api-reference/v2/semgrepworkflowsservice/get-workflow-job-findings.md): Returns the findings produced by a completed workflow job. - [Get workflow job overview](https://docs.semgrep.dev/api-reference/v2/semgrepworkflowsservice/get-workflow-job-overview.md): Returns run-level metadata and a registry-derived step skeleton for a workflow job, without listing run artifacts — a fast first paint. Pair with GetWorkflowJobGraph to stream live step/task status separately. To fetch issues associated with the job, call PublicIssuesService_ListIssues with the same… - [List available workflow types](https://docs.semgrep.dev/api-reference/v2/semgrepworkflowsservice/list-available-workflow-types.md): Returns the catalog of workflow types available to trigger for a deployment. - [List workflow jobs](https://docs.semgrep.dev/api-reference/v2/semgrepworkflowsservice/list-workflow-jobs.md): Lists workflow jobs for a deployment, with support for filtering, sorting, and cursor-based pagination. To fetch issues associated with a job, call PublicIssuesService_ListIssues with the same deploymentId and body.filters.workflowJobIds set to an array containing the job's numeric ID, such as "123"… - [Trigger a workflow run](https://docs.semgrep.dev/api-reference/v2/semgrepworkflowsservice/trigger-a-workflow-run.md): Submits a workflow job for a deployment. To fetch issues associated with the job, call PublicIssuesService_ListIssues with the same deploymentId and body.filters.workflowJobIds set to an array containing the job's numeric ID, such as "123" for job_123. #### Slack - [Get Slack installation details](https://docs.semgrep.dev/api-reference/v2/slackservice/get-slack-installation-details.md): Retrieves Slack app installation details for a deployment - [Delete Slack installation](https://docs.semgrep.dev/api-reference/v2/slackservice/delete-slack-installation.md): Deletes Slack app installation and revokes access token - [Get Slack app installation URL](https://docs.semgrep.dev/api-reference/v2/slackservice/get-slack-app-installation-url.md): Generates the OAuth URL that initiates the Slack app installation flow - [Get Slack channel mappings](https://docs.semgrep.dev/api-reference/v2/slackservice/get-slack-channel-mappings.md): Retrieves channel mappings for Slack channels - [Get Slack notification mappings](https://docs.semgrep.dev/api-reference/v2/slackservice/get-slack-notification-mappings.md): Retrieves notification mappings for Slack channels - [Handle Slack OAuth callback](https://docs.semgrep.dev/api-reference/v2/slackservice/handle-slack-oauth-callback.md): Processes OAuth callback, exchanges code for access token, and stores installation data #### Source Code Management (SCM) apps - [Add Azure DevOps project](https://docs.semgrep.dev/api-reference/v2/scmappsservice/add-azure-devops-project.md): Add a new ADO project to an existing Entra App install. The service principal must already have permissions on the ADO project - [Complete Azure DevOps SCM app install](https://docs.semgrep.dev/api-reference/v2/scmappsservice/complete-azure-devops-scm-app-install.md): After the user has uploaded the certificate, verify the Service Principal can authenticate to ADO and create webhook subscriptions required for the integration. Then mark the install as ready. - [Complete Cursor Origin installation](https://docs.semgrep.dev/api-reference/v2/scmappsservice/complete-cursor-origin-installation.md): Verify an installation receipt and connect the approved Cursor Origin codebase. - [Complete SCM app request](https://docs.semgrep.dev/api-reference/v2/scmappsservice/complete-scm-app-request.md): Complete an SCM app request. - [Create Azure DevOps SCM app (Service Principal)](https://docs.semgrep.dev/api-reference/v2/scmappsservice/create-azure-devops-scm-app-service-principal.md): Create an ADO ScmApp using Entra ID Service Principal credentials. Generates a key pair server-side and returns the public certificate for the customer to upload to their Entra app registration. CompleteAdoScmAppInstall must be called to finish the install after the certificate is uploaded. - [Create SCM app request](https://docs.semgrep.dev/api-reference/v2/scmappsservice/create-scm-app-request.md): Create a new SCM app request. - [Delete SCM app](https://docs.semgrep.dev/api-reference/v2/scmappsservice/delete-scm-app.md): Delete an SCM app by its ID. - [Get public GitHub app status](https://docs.semgrep.dev/api-reference/v2/scmappsservice/get-public-github-app-status.md): Get the status of a public GitHub App. - [Get SCM app](https://docs.semgrep.dev/api-reference/v2/scmappsservice/get-scm-app.md): Get an SCM app by its request ID. - [List SCM apps](https://docs.semgrep.dev/api-reference/v2/scmappsservice/list-scm-apps.md): List all SCM apps for a deployment. - [Rotate SCM app webhook secret](https://docs.semgrep.dev/api-reference/v2/scmappsservice/rotate-scm-app-webhook-secret.md): Generate a new webhook secret, update it on the SCM provider, and persist it. - [Start Cursor Origin installation](https://docs.semgrep.dev/api-reference/v2/scmappsservice/start-cursor-origin-installation.md): Create an installation request for the Semgrep app or a configured private app. #### Source Code Management (SCM) configurations - [Check SCM config](https://docs.semgrep.dev/api-reference/v2/scmservice/check-scm-config.md): Test the SCM connection for a config and update its stored status. - [List SCM configs](https://docs.semgrep.dev/api-reference/v2/scmservice/list-scm-configs.md): List all SCM configs for a deployment. - [Create SCM config](https://docs.semgrep.dev/api-reference/v2/scmservice/create-scm-config.md): Create a new SCM config. - [Delete SCM config](https://docs.semgrep.dev/api-reference/v2/scmservice/delete-scm-config.md): Delete an SCM config by its ID. - [Update SCM config](https://docs.semgrep.dev/api-reference/v2/scmservice/update-scm-config.md): Update an existing SCM config. - [Search SCM configs](https://docs.semgrep.dev/api-reference/v2/scmservice/search-scm-configs.md): Search for SCM configs for a deployment. - [Sync SCM config](https://docs.semgrep.dev/api-reference/v2/scmservice/sync-scm-config.md): Sync an SCM config. #### Source Code Management (SCM) webhooks - [List SCM webhook subscriptions](https://docs.semgrep.dev/api-reference/v2/scmsubscriptionsservice/list-scm-webhook-subscriptions.md): List all SCM webhook subscriptions for a deployment. - [Subscribe to SCM webhook](https://docs.semgrep.dev/api-reference/v2/scmsubscriptionsservice/subscribe-to-scm-webhook.md): Subscribe to SCM webhook events. - [Unsubscribe from SCM webhook](https://docs.semgrep.dev/api-reference/v2/scmsubscriptionsservice/unsubscribe-from-scm-webhook.md): Unsubscribe from SCM webhook events. - [Rotate SCM webhook secret](https://docs.semgrep.dev/api-reference/v2/scmsubscriptionsservice/rotate-scm-webhook-secret.md): Generate a new webhook secret, update it on the SCM provider, and persist it. #### Supply Chain - [Generate a project's SBOM](https://docs.semgrep.dev/api-reference/v2/supplychain2service/generate-a-projects-sbom.md): Starts a job to asynchronously generate a Software Bill of Materials (SBOM) for a given project. It does not return the SBOM itself, only schedules the job and returns a task JWT. - [List dependencies](https://docs.semgrep.dev/api-reference/v2/supplychain2service/list-dependencies.md): Returns all (or filtered) dependencies for a deployment using pagination - [List dependencies](https://docs.semgrep.dev/api-reference/v2/supplychain2service/list-dependencies-1.md): Returns all (or filtered) dependencies for a deployment using pagination - [List findings for advisory](https://docs.semgrep.dev/api-reference/v2/supplychain2service/list-findings-for-advisory.md): Returns a summary of findings grouped by project and branch for a specific advisory using pagination - [List lockfiles with dependencies in a given repository](https://docs.semgrep.dev/api-reference/v2/supplychain2service/list-lockfiles-with-dependencies-in-a-given-repository.md): Returns all (or filtered) lockfiles that contain dependencies within the specified repository - [List repositories with dependencies](https://docs.semgrep.dev/api-reference/v2/supplychain2service/list-repositories-with-dependencies.md): Returns any repositories which contain dependencies that match the given filter for a deployment #### Supply Chain - Managed Scans dependency resolution configurations - [Get SCA resolution configs](https://docs.semgrep.dev/api-reference/v2/smsscaresolutionconfigservice/get-sca-resolution-configs.md): Retrieve custom dependency resolution configurations for a given deployment and repository. #### Supply Chain - Managed Scans package manager configurations - [List package manager auth configs](https://docs.semgrep.dev/api-reference/v2/smspackagemanagerconfigservice/list-package-manager-auth-configs.md): Retrieve all package manager authentication configurations for a deployment. - [Create package manager auth config](https://docs.semgrep.dev/api-reference/v2/smspackagemanagerconfigservice/create-package-manager-auth-config.md): Create a new package manager authentication configuration for a deployment. - [Delete package manager auth config](https://docs.semgrep.dev/api-reference/v2/smspackagemanagerconfigservice/delete-package-manager-auth-config.md): Delete a package manager authentication configuration. - [Update package manager auth config](https://docs.semgrep.dev/api-reference/v2/smspackagemanagerconfigservice/update-package-manager-auth-config.md): Update an existing package manager authentication configuration. #### Tasks - [Get task result](https://docs.semgrep.dev/api-reference/v2/tasksservice/get-task-result.md): Returns the status of a task or task group, and if completed, the result. #### Teams - [Check RBAC status](https://docs.semgrep.dev/api-reference/v2/teamsservice/check-rbac-status.md): Indicates if deployment has Role-Based Access Control enabled - [Create a deployment RBAC team](https://docs.semgrep.dev/api-reference/v2/teamsservice/create-a-deployment-rbac-team.md): Create a new Role-Based Access Control team for a deployment - [Get a deployment RBAC team](https://docs.semgrep.dev/api-reference/v2/teamsservice/get-a-deployment-rbac-team.md): Get a deployment's Role-Based Access Control team - [Delete a deployment RBAC team](https://docs.semgrep.dev/api-reference/v2/teamsservice/delete-a-deployment-rbac-team.md): Delete a deployment's Role-Based Access Control team - [Update a deployment RBAC team](https://docs.semgrep.dev/api-reference/v2/teamsservice/update-a-deployment-rbac-team.md): Update a deployment team's name, users, and repositories - [List an RBAC team's child teams](https://docs.semgrep.dev/api-reference/v2/teamsservice/list-an-rbac-teams-child-teams.md): List the child teams assigned to a Role-Based Access Control team - [List an RBAC team's repositories](https://docs.semgrep.dev/api-reference/v2/teamsservice/list-an-rbac-teams-repositories.md): List the repositories assigned to a Role-Based Access Control team - [List an RBAC team's users](https://docs.semgrep.dev/api-reference/v2/teamsservice/list-an-rbac-teams-users.md): List the users assigned to a Role-Based Access Control team - [List deployment teams](https://docs.semgrep.dev/api-reference/v2/teamsservice/list-deployment-teams.md): List a deployment's Role-Based Access Control teams #### Tokens - [Delete tokens](https://docs.semgrep.dev/api-reference/v2/tokenservice/delete-tokens.md): Delete all tokens matching the given filters #### Versions - [Get project version info](https://docs.semgrep.dev/api-reference/v2/versionsservice/get-project-version-info.md): Get Semgrep version information for recent scans #### Wiz Credentials - [List Wiz credentials](https://docs.semgrep.dev/api-reference/v2/wizcredentialservice/list-wiz-credentials.md): List all Wiz credentials for a deployment. - [Create Wiz credential](https://docs.semgrep.dev/api-reference/v2/wizcredentialservice/create-wiz-credential.md): Create a Wiz credential for a deployment. - [Get Wiz credential](https://docs.semgrep.dev/api-reference/v2/wizcredentialservice/get-wiz-credential.md): Get a single Wiz credential by ID. - [Update Wiz credential](https://docs.semgrep.dev/api-reference/v2/wizcredentialservice/update-wiz-credential.md): Replace an existing Wiz credential. - [Delete Wiz credential](https://docs.semgrep.dev/api-reference/v2/wizcredentialservice/delete-wiz-credential.md): Delete a Wiz credential by ID. - [Validate Wiz credential](https://docs.semgrep.dev/api-reference/v2/wizcredentialservice/validate-wiz-credential.md): Check that a Wiz credential can authenticate against Wiz. #### Other - [Get identity](https://docs.semgrep.dev/api-reference/v2/miscservice/get-identity.md): Returns the agent's bearer identity ## OpenAPI Specs - [public_v2.openapi](/public_v2.openapi.yaml)