Scans

List Scans

Retrieves a list of scans with cursor-based pagination, supporting both PR and Full scans by default

post/api/v2/scans/list

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

organizationIdstring

Organization ID (optional)

repositoryIdsstring[]

Filter scans to specific repositories

cursorstring

Cursor for pagination (obtained from nextCursor in previous response)

limitnumber

Number of items to return

searchQuerystring

Optional search query to filter scans

projectIdstring

Filter by project ID

scanTypesstring[]

Filter by scan types. Defaults to FullScan and PrScan if not specified.

scoreLevelsstring[]

Filter scans by vulnerability score levels

showEphemeralboolean

Whether to include ephemeral scans in results

getCountsboolean

Whether to fetch vulnerability counts for scans. Set to false for better performance.

Response

Scans retrieved successfully

nextCursorstring nullable required

Cursor for next page, null if no more results

hasMoreboolean required

Whether there are more results available

Changes

No recorded changes to this operation across all 1 revision of this API.