Platform

DryRun API

Programmatic access to DryRun Security findings, scans, configurations, and insights via the Simple API.

Overview

DryRun Simple API #

The DryRun Simple API provides programmatic access to your organization's security data: pull request scans and findings, DeepScans and their findings, SBOMs, finding triage, configurations, repositories, and insights.

Access

Authentication #

For information on creating and managing API keys, see the API Access Keys page. All API requests require a valid API key sent in the Authorization header using the Bearer scheme.

First request

Quick Start #

Most endpoints are scoped to an account. You will need:

  • account_id - provided by the DryRun Security platform (e.g., 12345678-1234-1234-1234-1234567890ab)
  • repository_id - a UUID for a repository

Typical workflow:

  1. List your accessible accounts.
  2. Pick an account, then list repositories in that account.
  3. Use repository IDs to fetch pull request scans, DeepScans, and their findings.

Step 1: List accounts #

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts"

Example response:

{
  "data": [
    {
      "account_id": "22222222-2222-2222-2222-222222222222",
      "org_name": "SampleOrg",
      ...
    }
  ]
}

Step 2: Get repositories #

curl -X 'GET' \
  -H 'Authorization: Bearer $DRYRUN_API_KEY' \
  'https://simple-api.dryrun.security/v1/accounts/22222222-2222-2222-2222-222222222222/repositories'

Example response:

{
  "data": [
    {
      "id": "11111111-1111-1111-1111-111111111111",
      "name": "some-demo-repo-name",
      ...
    }
  ]
}

Step 3: Get pull request findings for a repository #

curl -X 'GET' \
  -H 'Authorization: Bearer $DRYRUN_API_KEY' \
  'https://simple-api.dryrun.security/v1/accounts/22222222-2222-2222-2222-222222222222/repositories/11111111-1111-1111-1111-111111111111/pr_findings'

Example response:

{
  "data": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "dashboard_url": "https://app.dryrun.security/risk-register/44444444-4444-4444-4444-444444444444",
      "severity": "error",
      "type": "Missing Authorization and IDOR in User Deletion",
      "description": "The new DELETE /users/{id} endpoint is registered without any authentication or authorization middleware...",
      "filename": "backend/main.go",
      "line_start": 516,
      "line_end": 553,
      "created_at": "2026-03-03T00:00:00Z"
    },
    ...
  ]
}

Reference

Endpoint Reference #

Accounts #

GET /v1/accounts List accounts accessible by the API key.

Retrieve all accounts that the authenticated API key has access to, including organization information.

Parameters

NameInRequiredTypeDescription
page_sizequerynointegerRecords per page (1-500). Omit page_size and page_token to keep the default behavior: all matching records.
page_tokenquerynostringContinuation token from the previous response's pagination.next_page_token.
sort_byquerynostringSort field. Default: created_at. One of: created_at
sort_orderquerynostringSort direction. Default: desc. One of: asc, desc

Response Fields (each item in data)

FieldTypeDescription
account_idstring (uuid)Account ID
org_idstringOrganization ID (nullable)
org_namestringOrganization name (nullable)
org_pathstringOrganization path in the SCM (for example, a GitLab group path) (nullable)
provider_typestringProvider type (for example,, 'github', 'gitlab') (nullable)
activebooleanWhether the account is active
created_atstring (date-time)(nullable)

Responses

  • 200 - accounts listed

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts"

Repositories #

GET /v1/accounts/{account_id}/repositories List repositories for an account.

Retrieve repositories for an account. Use the 'id' field when assigning configurations to repositories.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
page_sizequerynointegerRecords per page (1-500). Omit page_size and page_token to keep the default behavior: all matching records.
page_tokenquerynostringContinuation token from the previous response's pagination.next_page_token.
sort_byquerynostringSort field. Default: name. One of: name, created_at
sort_orderquerynostringSort direction. Default: asc. One of: asc, desc

Response Fields (each item in data)

FieldTypeDescription
idstring (uuid)Repository ID - use this when assigning configurations
namestringRepository name (nullable)
provider_repo_idintegerExternal provider repository ID (for example,, GitHub repo ID)
configuration_idstring (uuid)Legacy repository-configuration ID. PR configuration assignments are NOT reflected here; use repository_ids on GET /configurations to see which repositories a configuration is assigned to. (nullable)
enabledbooleanWhether the repository is enabled for scanning
created_atstring (date-time)(nullable)

Responses

  • 200 - repositories listed

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/repositories"

Pull Request Scans #

GET /v1/accounts/{account_id}/repositories/{repository_id}/pr_findings List pull-request findings for a repository.

Retrieve all findings for a repository. When paginating with commit_sha, use the same commit_sha with each page_token.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
repository_idpathyesstringRepository ID
commit_shaquerynostringReturn only findings produced by this exact commit SHA
page_sizequerynointegerRecords per page (1-500). Omit page_size and page_token to keep the default behavior: all matching records.
page_tokenquerynostringContinuation token from the previous response's pagination.next_page_token.
sort_byquerynostringSort field. Default: created_at. One of: created_at
sort_orderquerynostringSort direction. Default: desc. One of: asc, desc

Response Fields (each item in data)

FieldTypeDescription
idstring (uuid)
dashboard_urlstring (uri)URL to view this finding in the DryRun Security risk register
pull_request_dashboard_urlstring (uri)URL to the pull request view of this finding in the DryRun Security dashboard. (nullable)
severitystring
commit_shastringGit commit SHA that produced this finding (nullable)
branch_namestringBranch recorded for the finding's commit (nullable)
repository_namestring(nullable)
repository_domainstringSCM host, such as github.com or gitlab.com. Null when it cannot be determined uniquely.
typestring
labelstringClassifier label (for example, auth_bypass, sqli, idor) (nullable)
descriptionstring
filenamestring
line_startinteger(nullable)
line_endinteger(nullable)
created_atstring (date-time)(nullable)

Responses

  • 200 - findings listed

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/repositories/{repository_id}/pr_findings"
GET /v1/accounts/{account_id}/repositories/{repository_id}/findings Deprecated List pull-request findings for a repository.

Deprecated. Use GET /v1/accounts/{account_id}/repositories/{repository_id}/pr_findings instead. This path still works, but new integrations should use the replacement.

GET /v1/accounts/{account_id}/repositories/{repository_id}/pr_scans List PR scans for a repository.

Retrieve PR scan results for a repository with optional filtering. Without pagination parameters this endpoint returns the 100 most recent scans; use page_size/page_token to walk the full history.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
repository_idpathyesstringRepository ID
page_sizequerynointegerRecords per page (1-500). Omit page_size and page_token to keep the default behavior: the 100 most recent scans (pagination.has_more/next_page_token are still populated).
page_tokenquerynostringContinuation token from the previous response's pagination.next_page_token.
sort_byquerynostringSort field. Default: created_at. One of: created_at
sort_orderquerynostringSort direction. Default: desc. One of: asc, desc
date_fromquerynostringFilter scans from this date (ISO 8601 format)
date_toquerynostringFilter scans to this date (ISO 8601 format)
initiated_byquerynostringFilter by user ID who initiated the scan
resultquerynostringFilter by risk level (comma-separated: failing, risky, info)
severityquerynostringFilter by scan severity (comma-separated: critical, high, medium, low, none). Matches the top-level severity response field.
pr_numberquerynointegerFilter scans by pull request number
pr_statusquerynostringFilter by pull request status (comma-separated: open, draft, closed, merged)

Response Fields (each item in data)

FieldTypeDescription
scan_idstring (uuid)Scan/Run ID
dashboard_urlstring (uri)URL to view this scan in the DryRun Security dashboard
pr_numberintegerPull request number
pr_titlestringPull request title (nullable)
pr_statusstringPull request status (nullable)
scan_datestring (date-time)When the scan was performed (nullable)
initiated_bystring (uuid)User ID who initiated the scan (nullable)
statusstringScan status (nullable)
summarystringDeveloper-facing scan summary/comment (nullable)
vulnerability_summarystringAppSec-facing vulnerability summary (nullable)
severitystringHighest severity finding on this scan/PR. Null when the scan has no risk threshold assigned yet (for example, the scan is still running). none means the scan produced zero findings. One of: none, low, medium, high, critical
risk_thresholdstringLegacy pass/fail identifier for the same risk assessment as severity. The two are different views of one value: none to none, passing to low, risky to medium, unknown to none, failing to critical. Prefer severity. One of: none, passing, risky, unknown, failing (nullable)

Responses

  • 200 - scans listed

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/repositories/{repository_id}/pr_scans"
GET /v1/accounts/{account_id}/repositories/{repository_id}/scans Deprecated List PR scans for a repository.

Deprecated. Use GET /v1/accounts/{account_id}/repositories/{repository_id}/pr_scans instead. This path still works, but new integrations should use the replacement.

GET /v1/accounts/{account_id}/repositories/{repository_id}/pr_scans/{id} Get detailed PR scan results.

Retrieve detailed scan results including findings/vulnerabilities for a specific PR scan.

Each finding in findings has the same details and current triage as Get complete finding details by ID, so you do not need a separate request per finding.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
repository_idpathyesstringRepository ID
idpathyesstringScan ID
findings_resultquerynostringFilter findings by severity (comma-separated: failing, risky, info)

Response Fields

FieldTypeDescription
scan_idstring (uuid)Scan/Run ID
dashboard_urlstring (uri)URL to view this scan in the DryRun Security dashboard. Null when the scan was not triggered by a pull request.
pr_numberintegerPull request number
pr_titlestringPull request title (nullable)
pr_statusstringPull request status (nullable)
scan_datestring (date-time)When the scan was performed (nullable)
initiated_bystring (uuid)User ID who initiated the scan (nullable)
statusstringScan status (nullable)
summarystringDeveloper-facing scan summary/comment (nullable)
vulnerability_summarystringAppSec-facing vulnerability summary (nullable)
severitystringHighest severity finding on this scan/PR. Null when the scan has no risk threshold assigned yet (for example, the scan is still running). none means the scan produced zero findings. Not affected by the findings_result filter, which only narrows the findings array. One of: none, low, medium, high, critical
risk_thresholdstringLegacy pass/fail identifier for the same risk assessment as severity. The two are different views of one value: none to none, passing to low, risky to medium, unknown to none, failing to critical. Prefer severity. One of: none, passing, risky, unknown, failing (nullable)
findingsarray of objectsFindings from this scan, with the same finding details and current triage as finding-by-ID. Account, repository, and scan context are omitted from individual findings except for the commit SHA and pull request dashboard URL.
findings_countintegerTotal number of findings

Responses

  • 200 - scan found

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/repositories/{repository_id}/pr_scans/{id}"
GET /v1/accounts/{account_id}/repositories/{repository_id}/scans/{id} Deprecated Get detailed PR scan results.

Deprecated. Use GET /v1/accounts/{account_id}/repositories/{repository_id}/pr_scans/{id} instead. This path still works, but new integrations should use the replacement.

DeepScans #

GET /v1/accounts/{account_id}/deepscans List all DeepScans for an account.

List all DeepScans for an account.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
date_fromquerynostringLower bound. Filters DeepScan created_at. Use YYYY-MM-DD (UTC calendar day) or ISO 8601 timestamps with Z or an explicit offset. Bounds are inclusive; a date-only date_to includes the entire UTC day. Either bound may be omitted. Invalid/blank values and reversed ranges return 400. Repeat the same date filters with page_token.
date_toquerynostringUpper bound. Filters DeepScan created_at. Use YYYY-MM-DD (UTC calendar day) or ISO 8601 timestamps with Z or an explicit offset. Bounds are inclusive; a date-only date_to includes the entire UTC day. Either bound may be omitted. Invalid/blank values and reversed ranges return 400. Repeat the same date filters with page_token.
page_sizequerynointegerRecords per page (1-500). Omit page_size and page_token to return all matching records.
page_tokenquerynostringContinuation token from the previous response's pagination.next_page_token.
sort_byquerynostringSort field. Default: created_at. One of: created_at
sort_orderquerynostringSort direction. Default: desc. One of: asc, desc

Response Fields (each item in data)

FieldTypeDescription
idstring (uuid)
repository_idstring (uuid)
repository_namestring
typestring
branchstring(nullable)
commit_shastring(nullable)
retry_countinteger
triggered_by
created_atstring (date-time)

Responses

  • 200 - DeepScans listed
  • 400 - invalid date range or pagination parameters

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/deepscans"
GET /v1/accounts/{account_id}/deepscans/limits Get remaining DeepScan credits for an account.

Returns the account's DeepScan rate-limit state. repository_deep_scan.available is the number of full scans the account can still trigger in the current window; it already accounts for scans that are in flight. Check this before calling the trigger endpoint from CI/CD to avoid 429 responses. A window of until:<timestamp> ends at that exclusive UTC deadline.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID

Response Fields

FieldTypeDescription
limitsobjectSame structure agent-router returns on the trigger endpoint, plus resets_at
last_scan_atstring (date-time)Created time of the account's most recent full scan (nullable)

Responses

  • 200 - DeepScan limits returned
  • 403 - API key cannot access account
  • 503 - limits temporarily unavailable

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/deepscans/limits"
GET /v1/accounts/{account_id}/repositories/{repository_id}/deepscans/{deepscan_id}/findings List findings for a DeepScan.

List findings for a DeepScan.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
repository_idpathyesstringRepository ID
deepscan_idpathyesstringDeepScan ID
severityquerynostringFilter by severity (comma-separated). Valid values: critical, high, medium, low
page_sizequerynointegerRecords per page (1-500). Omit page_size and page_token to keep the default behavior: all matching records.
page_tokenquerynostringContinuation token from the previous response's pagination.next_page_token.
sort_byquerynostringSort field. Default: created_at. One of: created_at, severity
sort_orderquerynostringSort direction. Default: asc. One of: asc, desc

Response Fields (each item in data)

FieldTypeDescription
idstring (uuid)
dashboard_urlstring (uri)URL to view this finding in the DryRun Security risk register
titlestring
descriptionstring
severitystring
commit_shastringGit commit SHA that produced this finding (nullable)
technical_detailsstring
impactstring
remediationstring
locationsarray of objects(nullable)
created_atstring (date-time)(nullable)

Responses

  • 200 - findings listed

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/repositories/{repository_id}/deepscans/{deepscan_id}/findings"
GET /v1/accounts/{account_id}/repositories/{repository_id}/deepscans/{deepscan_id}/results Deprecated List findings for a DeepScan.

Deprecated. Use GET /v1/accounts/{account_id}/repositories/{repository_id}/deepscans/{deepscan_id}/findings instead. This path still works, but new integrations should use the replacement.

GET /v1/accounts/{account_id}/repositories/{repository_id}/deepscans List DeepScans for a repository.

List DeepScans for a repository.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
repository_idpathyesstringRepository ID
date_fromquerynostringLower bound. Filters DeepScan created_at. Use YYYY-MM-DD (UTC calendar day) or ISO 8601 timestamps with Z or an explicit offset. Bounds are inclusive; a date-only date_to includes the entire UTC day. Either bound may be omitted. Invalid/blank values and reversed ranges return 400. Repeat the same date filters with page_token.
date_toquerynostringUpper bound. Filters DeepScan created_at. Use YYYY-MM-DD (UTC calendar day) or ISO 8601 timestamps with Z or an explicit offset. Bounds are inclusive; a date-only date_to includes the entire UTC day. Either bound may be omitted. Invalid/blank values and reversed ranges return 400. Repeat the same date filters with page_token.
page_sizequerynointegerRecords per page (1-500). Omit page_size and page_token to keep the default behavior: all matching records.
page_tokenquerynostringContinuation token from the previous response's pagination.next_page_token.
sort_byquerynostringSort field. Default: created_at. One of: created_at
sort_orderquerynostringSort direction. Default: desc. One of: asc, desc

Response Fields (each item in data)

FieldTypeDescription
idstring (uuid)
repository_idstring (uuid)
typestring
branchstring(nullable)
commit_shastring(nullable)
retry_countinteger
triggered_by
created_atstring (date-time)

Responses

  • 200 - DeepScans listed
  • 400 - invalid date range or pagination parameters

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/repositories/{repository_id}/deepscans"
POST /v1/accounts/{account_id}/repositories/{repository_id}/deepscans Trigger a new DeepScan.

Trigger a new DeepScan.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
repository_idpathyesstringRepository ID

Request Body

{
  "branch": "string"
}
FieldTypeDescription
branchstringValid Git branch name to scan (for example, main or feature/my-change). Invalid names return 400. If omitted or null, the repository's default branch is scanned.

Response Fields

FieldTypeDescription
idstring (uuid)
repository_idstring (uuid)
statusstring
limitsobjectAccount DeepScan quota state after this trigger. Null if the limiter lookup failed upstream.

Responses

  • 202 - DeepScan triggered
  • 400 - Returned when branch is not a valid Git branch name or request contains unsupported parameters. Note commit_sha and full_scan are not currently supported.
  • 404 - repository not found
  • 409 - A DeepScan is already in progress for this repository
  • 422 - API key has no associated user
  • 429 - scan quota exceeded
  • 502 - scan could not be started

Example (curl)

curl -X POST \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"branch": "string"}' \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/repositories/{repository_id}/deepscans"
GET /v1/accounts/{account_id}/repositories/{repository_id}/deepscans/{id}/artifacts List downloadable artifacts for a DeepScan.

List downloadable artifacts for a DeepScan.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
repository_idpathyesstringRepository ID
idpathyesstringDeepScan ID

Response Fields (each item in data)

FieldTypeDescription
namestring
titlestring
download_urlstring (uri)
download_url_expires_atstring (date-time)

Responses

  • 200 - artifact links returned
  • 404 - DeepScan not found

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/repositories/{repository_id}/deepscans/{id}/artifacts"
GET /v1/accounts/{account_id}/repositories/{repository_id}/deepscans/{deepscan_id}/sca_results List SCA findings for a DeepScan.

List SCA findings for a DeepScan.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
repository_idpathyesstringRepository ID
deepscan_idpathyesstringDeepScan ID
severityquerynostringFilter by severity (comma-separated). Valid values: critical, high, medium, low
page_sizequerynointegerRecords per page (1-500). Omit page_size and page_token to keep the default behavior: all matching records.
page_tokenquerynostringContinuation token from the previous response's pagination.next_page_token.
sort_byquerynostringSort field. Default: created_at. One of: created_at, severity
sort_orderquerynostringSort direction. Default: asc. One of: asc, desc

Response Fields (each item in data)

FieldTypeDescription
idstring (uuid)
dashboard_urlstring (uri)URL to view this finding in the DryRun Security risk register
titlestring
descriptionstring(nullable)
severitystring
commit_shastringGit commit SHA that produced this finding (nullable)
package_namestring
package_versionstring
package_ecosystemstring
cve_idstring(nullable)
cvss_scorenumber(nullable)
cvss_vectorstring(nullable)
fixed_versionstring(nullable)
remediationstring(nullable)
locationsarray of objects(nullable)
referencesarray of objects(nullable)
first_detected_atstring (date-time)(nullable)
last_detected_atstring (date-time)(nullable)
created_atstring (date-time)(nullable)

Responses

  • 200 - SCA findings listed
  • 404 - DeepScan not found

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/repositories/{repository_id}/deepscans/{deepscan_id}/sca_results"

SBOM #

GET /v1/accounts/{account_id}/repositories/{repository_id}/deepscans/{deepscan_id}/sbom Get SBOM for a DeepScan.

Retrieve SBOM metadata and a time-limited download URL for the latest generated CycloneDX SBOM.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
repository_idpathyesstringRepository ID
deepscan_idpathyesstringDeepScan ID

Response Fields

FieldTypeDescription
deepscan_idstring (uuid)
repository_idstring (uuid)
branchstring(nullable)
commit_shastring(nullable)
formatstring
component_countinteger
generated_atstring (date-time)(nullable)
vulnerability_summaryobject
download_urlstring (uri)
download_url_expires_atstring (date-time)

Responses

  • 200 - SBOM metadata and download URL
  • 404 - DeepScan not found

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/repositories/{repository_id}/deepscans/{deepscan_id}/sbom"
GET /v1/accounts/{account_id}/repositories/{repository_id}/deepscans/sbom Get latest SBOM for a repository.

Retrieve SBOM metadata and a time-limited download URL for the most recent CycloneDX SBOM generated for a repository.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
repository_idpathyesstringRepository ID

Response Fields

FieldTypeDescription
repository_idstring (uuid)
branchstring(nullable)
commit_shastring(nullable)
formatstring
component_countinteger
generated_atstring (date-time)(nullable)
vulnerability_summaryobject
download_urlstring (uri)
download_url_expires_atstring (date-time)

Responses

  • 200 - SBOM metadata and download URL
  • 404 - repository not found

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/repositories/{repository_id}/deepscans/sbom"

Findings #

GET /v1/accounts/{account_id}/all_findings List all findings for an account.

Retrieve all findings across Pull Request Scans, DeepScans, SCA, and code policies for an account. By default, only returns findings from the latest scan (from_latest_scan=true). For SCA and DeepScan findings, returns findings from all branches unless a branch parameter is specified.

Each finding includes a state field indicating its current status: open (present in the latest scan and not triaged), dismissed (triaged with a category such as false positive or accepted risk), or resolved (no longer present in the latest scan). Triaged findings also include a triage object with the category and category_name.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
daysqueryyesintegerFilter to findings from the last N days (1-365). Required to prevent unbounded queries.
finding_typequerynostringFilter by finding type. Defaults to 'all' One of: deepscan, pullrequest, sca, code_policy, all
severityquerynostringFilter by severity (comma-separated: critical,high,medium,low)
repository_idquerynostringFilter by repository ID
commit_shaquerynostringReturn only findings with this exact stored commit SHA. Findings without a commit SHA are excluded. Use all_results=true to include historical scans.
branchquerynostringFilter SCA and DeepScan findings by branch name. When not specified, returns findings from all branches. Does not affect PR or Code Policy findings.
all_resultsquerynobooleanWhen true, returns all findings including historical scans. When false (default), returns only findings from the latest scan for each repository/branch.
page_sizequerynointegerResults per page (default: 50, max: 100). Preferred over per_page.
page_tokenquerynostringContinuation token from the previous response's pagination.next_page_token. Takes precedence over page.
pagequerynointegerLegacy page number (default: 1). Prefer page_token.
per_pagequerynointegerLegacy alias of page_size (default: 50, max: 100)

Response Fields (each item in data)

FieldTypeDescription
idstring (uuid)Finding ID - use this with the triage endpoints
finding_typestringSource of the finding One of: deepscan, pullrequest, sca, code_policy
dashboard_urlstring (uri)URL to view this finding in the DryRun Security dashboard
pull_request_dashboard_urlstring (uri)URL to the pull request view of this finding in the DryRun Security dashboard. (nullable)
severitystringFinding severity (critical, high, medium, low)
typestringFinding type/title
labelstringVulnerability type label (for example, auth_bypass, sqli, idor) (nullable)
commit_shastringGit commit SHA that produced this finding (nullable)
branch_namestringBranch recorded for the finding's commit or scan (nullable)
descriptionstring(nullable)
filenamestring(nullable)
line_startinteger(nullable)
line_endinteger(nullable)
repository_namestring(nullable)
repository_domainstringSCM host, such as github.com or gitlab.com. (nullable)
pr_numberintegerPull/merge request number (for pullrequest findings only) (nullable)
created_atstring (date-time)(nullable)
statestringDerived finding state: open (from latest scan, not triaged), dismissed (triaged), resolved (not in latest scan) One of: open, dismissed, resolved
triageobjectTriage status if set, null if not triaged

Responses

  • 200 - findings listed

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/all_findings?days=7"
GET /v1/accounts/{account_id}/findings/{finding_id} Get complete finding details by ID.

Retrieve full details about an individual finding.

The fields returned depend on the finding type: pullrequest, deepscan, or sca. The example below is a pull request finding.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount UUID (case-insensitive)
finding_idpathyesstringFinding UUID (case-insensitive)
finding_typequerynostringOptional exact type filter. Omit to auto-detect; supply to search only that type and disambiguate possible ID collisions. One of: pullrequest, deepscan, sca

Example response

{
  "data": {
    "id": "11111111-1111-4111-8111-111111111111",
    "account_id": "22222222-2222-4222-8222-222222222222",
    "repository_id": "33333333-3333-4333-8333-333333333333",
    "repository_name": "api",
    "repository_full_name": "example/api",
    "provider_repo_id": 12345,
    "dashboard_url": "https://app.dryrun.security/risk-register?finding=11111111-1111-4111-8111-111111111111",
    "severity": "high",
    "description": "Untrusted input reaches a SQL query without parameter binding.",
    "scan_id": "44444444-4444-4444-8444-444444444444",
    "branch": "main",
    "commit_sha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "pr_number": 42,
    "from_latest_scan": false,
    "state": "resolved",
    "triage": null,
    "created_at": "2026-01-01T00:00:00Z",
    "finding_type": "pullrequest",
    "type": "SQL injection",
    "label": "sqli",
    "confidence": "high",
    "filename": "src/api.rb",
    "line_start": 12,
    "line_end": 15,
    "pull_request_dashboard_url": "https://app.dryrun.security/pull-requests/55555555-5555-4555-8555-555555555555",
    "meta": {
      "remediation": "Use bound parameters"
    },
    "investigation_details": {
      "impact": "Database contents can be exposed"
    },
    "severity_details": {
      "rationale": "Unauthenticated access"
    }
  }
}

Responses

  • 200 - canonical finding details
  • 400 - invalid account/finding UUID or finding_type
  • 401 - missing, invalid, or revoked API key
  • 403 - API key cannot access account
  • 404 - finding absent from this account
  • 409 - finding UUID matches more than one supported type in this account
  • 500 - unable to retrieve finding

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/findings/{finding_id}"

Triage #

GET /v1/accounts/{account_id}/triage/categories List triage categories.

List the current UI triage categories. Use a returned slug when setting triage. The aliases object maps legacy API inputs to canonical slugs; aliases are not separate categories. Without pagination parameters all categories are returned.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
page_sizequerynointegerRecords per page (1-500). Omit page_size and page_token to keep the default behavior: all matching records.
page_tokenquerynostringContinuation token from the previous response's pagination.next_page_token.
sort_byquerynostringSort field. Default: slug. One of: slug, name
sort_orderquerynostringSort direction. Default: asc. One of: asc, desc

Response Fields (each item in data)

FieldTypeDescription
slugstring
namestring(nullable)
descriptionstring(nullable)

Responses

  • 200 - categories listed
  • 400 - invalid pagination or sorting
  • 401 - authentication required
  • 403 - account access denied

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/triage/categories"
GET /v1/accounts/{account_id}/findings/{finding_id}/triage Get triage status for a finding.

Get the current triage status for a finding.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
finding_idpathyesstringFinding ID (UUID)
finding_typequeryyesstringType of finding One of: deepscan, pullrequest, sca, code_policy

Response Fields

FieldTypeDescription
idstring (uuid)
finding_idstring (uuid)
finding_typestring
categorystring
category_namestring(nullable)
notesstring(nullable)
created_bystring(nullable)
created_atstring (date-time)(nullable)

Responses

  • 200 - no triage found (returns null data)

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/findings/{finding_id}/triage?finding_type={finding_type}"
POST /v1/accounts/{account_id}/findings/{finding_id}/triage Set triage category for a finding.

Set or update the triage category for a finding. Supports DeepScan, pull request, SCA, and code policy findings.

Use GET /v1/accounts/{account_id}/triage/categories for current category slugs. wont_fix is an alias for nit.

Valid finding types: deepscan, pullrequest, sca, code_policy.

notes is optional, but triage decisions without an explanation are not used to inform future scans.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
finding_idpathyesstringFinding ID (UUID)

Request Body

{
  "finding_type": "deepscan",
  "category": "false_positive",
  "notes": "Input is validated by the upstream gateway before reaching this handler"
}
FieldTypeDescription
finding_typestringRequired. Type of finding. Valid values: deepscan, pullrequest, sca, code_policy
categorystringRequired. Category slug from GET /v1/accounts/{account_id}/triage/categories (for example resolved, nit, false_positive, accepted_risk, in_progress). Legacy wont_fix is an alias for nit. Responses use the canonical slug.
notesstringOptional notes explaining the triage decision (nullable)

Response Fields

FieldTypeDescription
idstring (uuid)
finding_idstring (uuid)
finding_typestring
categorystring
category_namestring(nullable)
notesstring(nullable)
created_bystring(nullable)
created_atstring (date-time)(nullable)

Responses

  • 200 - triage set successfully

Example (curl)

curl -X POST \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"finding_type": "deepscan", "category": "false_positive", "notes": "Input is validated by the upstream gateway before reaching this handler"}' \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/findings/{finding_id}/triage"
DELETE /v1/accounts/{account_id}/findings/{finding_id}/triage Remove triage category from a finding.

Remove the triage category from a finding.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
finding_idpathyesstringFinding ID (UUID)
finding_typequeryyesstringType of finding One of: deepscan, pullrequest, sca, code_policy

Responses

  • 204 - triage removed successfully

Example (curl)

curl -X DELETE \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/findings/{finding_id}/triage?finding_type={finding_type}"

Configurations #

GET /v1/accounts/{account_id}/configurations List configurations for an account.

List configurations for an account.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
page_sizequerynointegerRecords per page (1-500). Omit page_size and page_token to keep the default behavior: all matching records.
page_tokenquerynostringContinuation token from the previous response's pagination.next_page_token.
sort_byquerynostringSort field. Default: created_at. One of: created_at, name
sort_orderquerynostringSort direction. Default: desc. One of: asc, desc

Response Fields (each item in data)

FieldTypeDescription
idstring (uuid)
namestring(nullable)
configurationobject(nullable)
repository_idsarray of stringsRepositories explicitly assigned to this configuration. Repositories without an explicit assignment use the account default configuration and are not listed.
created_atstring (date-time)(nullable)

Responses

  • 200 - configurations listed

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/configurations"
POST /v1/accounts/{account_id}/configurations Create a new configuration.

Create a new configuration.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID

Request Body

{
  "configuration": {
    "name": "string",
    "configuration": {
      "comment": "disabled",
      "show_scan_confirmation": false,
      "risk_threshold": 0,
      "analyzers": {},
      "code_policies": [
        {
          "id": null,
          "enabled": null,
          "silent": null,
          "blocking": null
        }
      ],
      "notifications": {
        "enabled": false,
        "deduplicate": false,
        "integrationNames": [null]
      }
    }
  },
  "repositories": [
    "00000000-0000-0000-0000-000000000000"
  ]
}
FieldTypeDescription
configurationobjectRequired.
repositoriesarray of stringsOptional: repository IDs to assign this configuration to (use /repositories endpoint to get valid IDs). A repository can belong to one configuration; listed repositories are moved off any configuration they were previously assigned to.

Response Fields

FieldTypeDescription
idstring (uuid)
namestring
configurationobject(nullable)
created_atstring (date-time)

Responses

  • 201 - configuration created

Example (curl)

curl -X POST \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"configuration": {"name": "My Config", "configuration": {"comment": "disabled", "risk_threshold": 0, "analyzers": {}}}, "repositories": []}' \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/configurations"
GET /v1/accounts/{account_id}/configurations/{id} Get a single configuration.

Get a single configuration.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
idpathyesstringConfiguration ID

Response Fields

FieldTypeDescription
idstring (uuid)
namestring(nullable)
configurationobject(nullable)
repository_idsarray of stringsRepositories explicitly assigned to this configuration
created_atstring (date-time)(nullable)

Responses

  • 200 - configuration found

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/configurations/{id}"
PUT /v1/accounts/{account_id}/configurations/{id} Update a configuration.

Update a configuration.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
idpathyesstringConfiguration ID

Request Body

{
  "configuration": {
    "name": "string",
    "configuration": {
      "comment": "disabled",
      "show_scan_confirmation": false,
      "risk_threshold": 0,
      "analyzers": {},
      "code_policies": [
        {
          "id": null,
          "enabled": null,
          "silent": null,
          "blocking": null
        }
      ],
      "notifications": {
        "enabled": false,
        "deduplicate": false,
        "integrationNames": [null]
      }
    }
  }
}
FieldTypeDescription
configurationobjectRequired.
repositoriesarray of stringsOptional: the COMPLETE list of repository IDs for this configuration. Replaces the current assignment list: repositories omitted here are unassigned (they fall back to the account default) and listed repositories are moved off any other configuration. Omit the field to leave assignments unchanged.

Response Fields

FieldTypeDescription
idstring (uuid)
namestring(nullable)
configurationobject(nullable)
repository_idsarray of stringsRepositories explicitly assigned to this configuration
created_atstring (date-time)(nullable)

Responses

  • 200 - configuration updated

Example (curl)

curl -X PUT \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"configuration": {"name": "Updated Config", "configuration": {"risk_threshold": 5}}}' \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/configurations/{id}"
PATCH /v1/accounts/{account_id}/configurations/{id} Update a configuration.

Update a configuration.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
idpathyesstringConfiguration ID

Request Body

{
  "configuration": {
    "name": "string",
    "configuration": {
      "comment": "disabled",
      "show_scan_confirmation": false,
      "risk_threshold": 0,
      "analyzers": {},
      "code_policies": [
        {
          "id": null,
          "enabled": null,
          "silent": null,
          "blocking": null
        }
      ],
      "notifications": {
        "enabled": false,
        "deduplicate": false,
        "integrationNames": [null]
      }
    }
  }
}
FieldTypeDescription
configurationobjectRequired.
repositoriesarray of stringsOptional: the COMPLETE list of repository IDs for this configuration. Replaces the current assignment list: repositories omitted here are unassigned (they fall back to the account default) and listed repositories are moved off any other configuration. Omit the field to leave assignments unchanged.

Response Fields

FieldTypeDescription
idstring (uuid)
namestring(nullable)
configurationobject(nullable)
repository_idsarray of stringsRepositories explicitly assigned to this configuration
created_atstring (date-time)(nullable)

Responses

  • 200 - configuration updated

Example (curl)

curl -X PATCH \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"configuration": {"configuration": {"risk_threshold": 5}}}' \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/configurations/{id}"
DELETE /v1/accounts/{account_id}/configurations/{id} Delete a configuration.

Delete a configuration.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
idpathyesstringConfiguration ID

Responses

  • 204 - configuration deleted

Example (curl)

curl -X DELETE \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/configurations/{id}"
POST /v1/accounts/{account_id}/configurations/bulk_update Bulk update multiple configurations.

Bulk update multiple configurations.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID

Request Body

{
  "configuration_ids": [
    "00000000-0000-0000-0000-000000000000"
  ],
  "updates": {
    "comment": "disabled",
    "show_scan_confirmation": false,
    "risk_threshold": 0,
    "analyzers": {},
    "code_policies": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "enabled": false,
        "silent": false,
        "blocking": false
      }
    ],
    "notifications": {
      "enabled": false,
      "deduplicate": false,
      "integrationNames": ["string"]
    }
  }
}
FieldTypeDescription
configuration_idsarray of stringsRequired. Array of configuration IDs to update
updatesobjectRequired. Configuration updates to apply to all specified configurations

Response Fields

FieldTypeDescription
updated_countinteger
total_countinteger
errorsarray of objects

Responses

  • 200 - configurations updated

Example (curl)

curl -X POST \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"configuration_ids": ["CONFIG_ID_1", "CONFIG_ID_2"], "updates": {"risk_threshold": 5}}' \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/configurations/bulk_update"
POST /v1/accounts/{account_id}/configurations/assign_repositories Assign a configuration to multiple repositories.

Sets the configuration's repository list to exactly the repositories matched by the request. This REPLACES the configuration's current assignments: repositories already assigned to it but not matched here are unassigned and fall back to the account default configuration. A repository can belong to only one configuration, so matched repositories are moved off any other configuration they were assigned to. To add a repository while keeping the existing ones, read repository_ids from GET /configurations/{id} and submit the combined list. Exactly one of repository_ids, repository_names or repository_pattern is used (in that order of precedence).

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID

Request Body

{
  "configuration_id": "00000000-0000-0000-0000-000000000000",
  "repository_ids": [
    "00000000-0000-0000-0000-000000000000"
  ],
  "repository_names": [
    "string"
  ],
  "repository_pattern": "string"
}
FieldTypeDescription
configuration_idstring (uuid)Required.
repository_idsarray of stringsComplete list of repository IDs for the configuration (replaces current assignments)
repository_namesarray of stringsComplete list of repository names for the configuration (replaces current assignments)
repository_patternstringLiteral name prefix (% and _ are not wildcards). Must be a string when used; ignored when repository_ids or repository_names takes precedence. Other types return 400 when no higher-priority selector is used; every repository whose name starts with it becomes the configuration's complete list (replaces current assignments)

Response Fields

FieldTypeDescription
configuration_idstring (uuid)
configuration_namestring
assigned_countintegerNumber of repositories now assigned to the configuration (the full list, not the delta)
total_matchedinteger
errorsarray of objects

Responses

  • 200 - repositories assigned
  • 400 - repository_pattern must be a string

Example (curl)

curl -X POST \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"configuration_id": "CONFIG_ID", "repository_ids": ["REPO_ID"]}' \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/configurations/assign_repositories"

Analyzers #

GET /v1/accounts/{account_id}/analyzers List available analyzers.

Retrieve non-hidden analyzers the account is permitted to access, including disabled analyzers. Use the 'slug' field as the key in configuration analyzers object.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
page_sizequerynointegerRecords per page (1-500). Omit page_size and page_token to keep the default behavior: all matching records.
page_tokenquerynostringToken from the previous response's pagination.next_page_token.
sort_byquerynostringSort field. Default: name. One of: name
sort_orderquerynostringSort direction. Default: asc. One of: asc, desc

Response Fields (each item in data)

FieldTypeDescription
idstring (uuid)Analyzer ID
namestringInternal analyzer name
slugstringAnalyzer slug - use this as the key in configuration analyzers object
display_namestringHuman-readable display name (nullable)
descriptionstringAnalyzer description (nullable)
enabledbooleanWhether the analyzer is enabled in the account's default PR configuration
configurationobjectResolved analyzer settings for the account's default PR configuration (nullable)

Responses

  • 200 - analyzers listed
  • 503 - analyzer permissions unavailable

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/analyzers"

Custom Policies #

GET /v1/accounts/{account_id}/custom_policies List custom code policies for an account.

Retrieve all custom code policies (NLCPs) for an account. These policies can be referenced in configurations using their ID.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
page_sizequerynointegerRecords per page (1-500). Omit page_size and page_token to keep the default behavior: all matching records.
page_tokenquerynostringContinuation token from the previous response's pagination.next_page_token.
sort_byquerynostringSort field. Default: created_at. One of: created_at, updated_at
sort_orderquerynostringSort direction. Default: desc. One of: asc, desc

Response Fields (each item in data)

FieldTypeDescription
idstring (uuid)Policy ID - use this in configuration code_policies array
dashboard_urlstring (uri)URL to view this policy in the DryRun Security dashboard
titlestringPolicy title
backgroundstringBackground context for the policy (nullable)
guidancestringImplementation guidance (nullable)
questionstringThe policy question to evaluate
created_atstring (date-time)(nullable)
updated_atstring (date-time)(nullable)

Responses

  • 200 - custom policies listed

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/custom_policies"

Insights #

GET /v1/accounts/{account_id}/insights Get insights for an account.

Retrieve the daily insights digest for an account. Insights are generated daily and highlight important security-related changes from analyzed pull requests that deserve attention. Returns the latest insights by default, or insights for a specific date if provided.

Parameters

NameInRequiredTypeDescription
account_idpathyesstringAccount ID
datequerynostringFilter by date (YYYY-MM-DD format). If omitted, returns the latest available insights.

Response Fields

FieldTypeDescription
datestringDate of the insights (YYYY/MM/DD format) (nullable)
insightsarray of objects

Responses

  • 200 - insights retrieved

Example (curl)

curl \
  -H "Authorization: Bearer $DRYRUN_API_KEY" \
  "https://simple-api.dryrun.security/v1/accounts/{account_id}/insights"

Conventions

Conventions #

  • IDs and scoping: account_id is required for most endpoints. repository_id is required for repository-scoped endpoints.
  • Response shape: Most list endpoints return a top-level data array.
  • Pagination: List endpoints accept page_size (1-500) and page_token, and return a pagination object. To get the next page, pass pagination.next_page_token as page_token with the same filters. Without either parameter, most list endpoints return all matching records; the pull request scans list returns the 100 most recent scans.
  • Deprecated endpoints: Endpoints marked Deprecated still work, but each one lists its replacement. Use the replacement for new integrations.
  • Sorting: List endpoints accept sort_by and sort_order (asc or desc). Each endpoint lists its default.
  • Errors: If an item is not found, endpoints return 404 with {"error": "not found"}.

Help

Support #

If you have questions about authentication, account access, or expected responses, contact DryRun Security support and include the endpoint URL you called, the HTTP status code, and the request_id header (if present).

See adversarial review in action.

15 minutes with a security expert.

Get a demo