Async Code Scans

Submit an asynchronous code scan

Authenticates with the existing ZeroPath API token path, resolves the requested target, stores a queued scan job, and starts background processing for the supplied diff, file, files, or snippets payload. Repository targets use repository authorization. Auto targets use repository context when an accessible remote URL resolves to exactly one repository, otherwise they run standalone.

post/api/v2/async-code-scans/submit

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

Optional organization context. Required only when the caller credential or session does not already imply a single organization.

additionalContextstring

Optional supplemental caller context. It is treated as untrusted background information, not as scanner instructions.

Response

Scan job accepted and queued

jobIdstring required

Asynchronous code scan job ID.

status'queued' | 'running' | 'completed' | 'failed' required
createdAtstring date-time required

Changes

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