Skip to content
Patronus
Website

Get a scan

Retrieve the current state of a scan job returned by an asynchronous submission.

GET/api/v1/scan/{job_id}

Read a job returned in a 202 response. Requires scan:read and the account that submitted it. Query parameters are not supported.

Use the job ID from an HTTP 202 response or a completed Prefer: wait=1 response.

Terminal window
curl --fail-with-body \
"https://control.patronus.studio/api/v1/scan/$JOB_ID" \
-H "Authorization: Bearer $PATRONUS_API_KEY"
statusNext step
runningWait before polling again. Progress may be available.
completedStop polling. Check completion and category results.
failedStop polling. Handle the failure; do not treat the input as clean.

Start with one poll per second and a bounded deadline. Honor Retry-After on rate-limited responses. The complete clients stop on HTTP errors so your application can decide whether to retry.

Polling does not consume the account’s scan-request quota, but request rate limits still apply.

Accepted jobs remain available for 15 minutes after storage. Retrieve and store required results before the window ends. 404 JOB_NOT_FOUND also covers another account’s jobs and expired jobs.

A synchronous text job (submit without Prefer) is not stored for polling. URL, file, and MCP server jobs are asynchronous by default. A completed job returned with HTTP 200 after Prefer: wait=1 can be retrieved by its job_id for 15 minutes.

NameLocationDescription
job_id (required)pathPublic job ID returned by createScan.
HTTPMeaningBody
200Current job state. HTTP 200 also includes running or failed jobs; inspect status.Job
400Malformed request or unsupported query parameters.Error
401Missing, expired, revoked, or invalid API key.Error
403The key lacks the required scan scope.Error
404Job missing, expired, or owned by another account.Error
429Rate limit or account quota reached.Error
500Request could not be completed.Error
503Authentication or scan service unavailable.Error
504Scan service timeout; submission may already have started.Error

Generated from the OpenAPI specification.