---
title: "Search issues"
method: POST
path: "/api/v1/issues/search"
tags: ["Issues"]
---

# Search issues

`POST /api/v1/issues/search`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v1/issues/search`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Search for security issues across your repositories. You can filter by various criteria including custom rule ID.

To find all issues detected by a specific custom rule, include the `ruleId` parameter in your request.

## Request body

- ListIssuesInput
  - `organizationId` string
  - `page` integer
  - `pageSize` integer
  - `searchQuery` string: Free-text filter matched against issue title, vulnerability class, and affected file path. A query that looks like an issue id — hex digits and dashes only, at least 4 hex digits — also matches the issue id as a prefix, so the full UUID, the short 8-character issue id, and any longer prefix all find the issue. Dashes and surrounding whitespace are ignored for id matching.
  - `severities` object
    - `min` integer, required
    - `max` integer, required
  - `scores` object: Filter by score range (severity × confidence). Applied additively with other filters.
    - `min` integer, required: Minimum score (inclusive)
    - `max` integer, required: Maximum score (inclusive)
  - `sortBy` 'createdAt' | 'severity' | 'score' | 'title' | 'class' | 'file' | 'detected' | 'patch'
  - `sortOrder` 'asc' | 'desc'
  - `languages` string[]
  - `vulnerabilityClasses` string[]
  - `repositoryIds` string[]
  - `projectId` string
  - `scanId` string
  - `codeScanTypes` string[]
  - `types` string[]
  - `status` string[]: Filter issues by issue status
  - `getCounts` boolean
  - `returnAll` boolean
  - `ruleId` string: Filter issues by custom rule ID - returns only issues that were found by the specified custom rule

## Response `200`

Successful response

- IssueListResponse
  - `issues` Issue[]
    - `id` string, required
    - `repositoryId` string, required
    - `repositoryName` string
    - `status` 'open' | 'patched' | 'falsePositive' | 'notExploitable' | 'archived' | 'silenced', required
    - `issueStatus` 'PENDING_REVIEW' | 'REVIEWING' | 'PATCHING' | 'NON_EXPLOITABLE' | 'FALSE_POSITIVE' | 'ACCEPTED_RISK' | 'RESOLVED' | 'BACKLOG' | 'INFORMATIONAL'
    - `generatedTitle` string, required
    - `generatedDescription` string, required
    - `businessLogicScenario` string
    - `language` string, required
    - `vulnClass` string, required
    - `cwes` string[], required
    - `vulnCategory` 'SAST' | 'SCA' | 'IAC' | 'SECRETS' | 'SMART_CONTRACT', required
    - `severity` number, nullable, required: Raw severity (0-10); null when no severity was ever measured for the finding, e.g. a dependency advisory with no CVSS score.
    - `confidence` number
    - `score` integer, nullable: Composite ZeroPath score (0-100, severity x confidence); null when no severity was ever measured for the finding. Such a finding belongs to no score band.
    - `discoveryTool` string, required
    - `codeScanId` string, required
    - `affectedFile` string, required
    - `sastCodeSegment` string, required
    - `startLine` integer, required
    - `endLine` integer, required
    - `startColumn` integer
    - `endColumn` integer
    - `isPrBlocked` boolean, required
    - `validated` 'CONFIRMED' | 'DISCONFIRMED' | 'UNKNOWN', nullable
    - `validationSecurityAssessment` string, nullable
    - `unpatchable` boolean, nullable
    - `unpatchableReason` string, nullable
    - `unpatchableRemediationInstructions` string, nullable
    - `archivedAt` string, date-time, nullable
    - `noLongerDetectedAt` string, date-time, nullable
    - `noLongerDetectedReason` string, nullable
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `naturalLanguageRuleEvaluationId` string, nullable: ID of the natural language rule evaluation that found this issue (if applicable)
    - `naturalLanguageRuleViolationId` string, nullable: ID of the natural language rule violation that found this issue (if applicable)
    - `naturalLanguageRuleViolation` object, nullable: Natural language rule violation details if this issue was found by a custom rule
      - `id` string, required: Unique identifier for the rule violation
      - `ruleId` string, required: ID of the rule that was violated
      - `title` string, required: Title of the violation
      - `description` string, required: Detailed description of why this is a violation
      - `confidence` number, required: Confidence score for the violation (0-1)
      - `rule` object, nullable: The rule that was violated
        - `id` string, required: Unique identifier for the rule
        - `name` string, nullable, required: Name of the rule
    - `codeScan` object
      - `id` string
      - `scanTargetBranchCommitSha` string, nullable
    - `stateChangeAuthor` string
    - `closedBy` object, nullable
      - `id` string, nullable
      - `name` string, nullable
      - `email` string, nullable
    - `falsePositiveReason` string, nullable
    - `falsePositiveAt` string, date-time, nullable
    - `introducedBy` object, nullable
      - `contributorId` string, nullable
      - `userId` string, nullable
      - `name` string, nullable
      - `email` string, nullable
      - `platform` string, nullable
      - `username` string, nullable
      - `profileUrl` string, nullable
      - `profileImageUrl` string, nullable
      - `lineStart` integer, nullable
      - `lineEnd` integer, nullable
      - `timestamp` string, date-time, nullable
    - `scaVulnerabilityAlertingGroupId` string, nullable: ID of the SCA vulnerability alerting group that created this issue (if applicable)
    - `scaReachabilityAnalyses` object[], nullable: Reachability analyses associated with this SCA vulnerability
      - `id` string, required
      - `title` string, nullable
      - `description` string, nullable
      - `confidence` number, nullable
      - `severity` number, nullable
      - `isFalsePositive` boolean, nullable
      - `falsePositiveReasoning` string, nullable
      - `pocCode` string, nullable
      - `vulnerabilityLocation` object, nullable
        - `id` string
        - `filePath` string, nullable
        - `startLine` integer, nullable
        - `endLine` integer, nullable
        - `startColumn` integer, nullable
        - `endColumn` integer, nullable
        - `snippet` string, nullable
        - `language` string, nullable
      - `cvssScore` object, nullable
        - `id` string
        - `cvssVector` string, nullable
        - `severity` number, nullable
    - `patchAttemptErrorDuringScan` object
      - `id` string
      - `rawError` string
      - `displayError` string
      - `errorType` string
      - `createdAt` string, date-time
    - `prSubmissionErrorDuringScan` object
      - `id` string
      - `rawError` string
      - `displayError` string
      - `errorType` string
      - `createdAt` string, date-time
    - `patch` object, nullable
      - `id` string
      - `prLink` string, nullable
      - `prTitle` string, nullable
      - `prDescription` string, nullable
      - `gitDiff` string
      - `pullRequestStatus` string
      - `validated` string
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
    - `detectedSecret` object, nullable
      - `detectorName` string, nullable
      - `detectorDescription` string, nullable
      - `decoderName` string, nullable
      - `rotationGuide` string, nullable
      - `redactedSecret` string, nullable
      - `verified` boolean, nullable
    - `url` string, required: URL to view the issue in the ZeroPath UI
  - `totalCount` integer
  - `totalCountAllCategories` integer
  - `categoryCounts` IssueCounts
    - `open` integer
    - `patched` integer
    - `falsePositive` integer
    - `notExploitable` integer
    - `archived` integer
    - `silenced` integer
    - `closed` integer
  - `currentPage` integer
  - `pageSize` integer

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api-2.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api-2/revisions/ea6ae4b68cd3?raw)
