Skip to main content
The bugs endpoints give you full programmatic access to Detail’s findings. You can list all pending bugs for a repository, fetch a single bug’s details, and update a bug’s review state — all without leaving your own tooling.

GET /public/v1/bugs

Returns a paginated list of bugs for a repository, filtered by review status.

Query parameters

string
required
The repository ID to fetch bugs for. Repository IDs are prefixed with repo_ and can be retrieved from GET /public/v1/repos. Example: repo_abc123.
string
required
Filter bugs by review state. One of:
  • pending — bugs that have not yet been reviewed
  • resolved — bugs marked as fixed
  • dismissed — bugs marked as not actionable
integer
Number of results to return. Between 1 and 100. Defaults to 50.
integer
Number of results to skip for pagination. Defaults to 0.
string
Filter bugs to those surfaced by a specific scan. Workflow request IDs are prefixed with wr_ and are returned by GET /public/v1/scans.

Response

Bug[]
Array of bug objects matching the query.
integer
Total number of bugs matching the query, regardless of limit and offset.

Example response


GET /public/v1/bugs/{bug_id}

Returns a single bug by its ID. The response shape is identical to an individual item in the bugs array above.

Path parameters

string
required
The bug ID to retrieve. Must match the pattern bug_*.

Example response


POST /public/v1/bugs/{bug_id}/review

Creates or updates a review on a bug. Use this to resolve, dismiss, or reopen a finding programmatically.

Path parameters

string
required
The bug ID to review. Must match the pattern bug_*.

Request body

string
required
The new review state for the bug. One of:
  • resolved — the bug has been fixed
  • dismissed — the bug is not actionable
  • pending — reopen a previously reviewed bug
string
Required when state is dismissed. One of:
  • not_a_bug — the finding is a false positive
  • wont_fix — the team has decided not to address this
  • duplicate — already tracked elsewhere
  • other — any other reason
string
Optional free-text note to record with the review. Useful for explaining triage decisions.

Response

Returns the created or updated BugReview object.
string
The review state: pending, resolved, or dismissed.
integer
Unix timestamp (milliseconds) when this review was recorded.
string
The dismissal reason, if state is dismissed.
string
The note recorded with the review, if provided.
string
How the review was created. For API-created reviews this is review.

Example response

Calling this endpoint on a bug that already has a review will overwrite the existing review with the new state.