Collector capture report API
Collector reports send normalized findings from a local capture. The original PCAP or PCAPNG stays on the collector. Use hosted capture analysis when you want to upload the capture itself for processing.
Collector report uploads require platform 0.51.316 or newer and scanner 0.26.52. The Python bundle and Windows native 0.26.52 include this protocol. Linux native 0.26.50 and older agents retain their earlier upload behavior; check the installed version before relying on partial-report uploads.
Choose the credential
For standalone imports, use a workspace ingestor, analyst or administrator credential. For a managed capture job, use the agent credential that holds its current lease. The scanner version must match that agent's claimed version. An agent cannot submit a standalone report or substitute another agent's job.
The updated Python collector includes file identity even when no findings remain.
Save a local report with python scanner/qr.py capture capture.pcap --output report.json,
then send its findings with python scanner/qr.py upload report.json. A partial
scan exits with code 2 after writing the report; inspect it before uploading.
The upload command negotiates protocol 1 and does not fall back to an upload that
would discard coverage. It never rereads the raw capture while sending findings.
These commands require the updated collector and server release noted above.
Retrying the same saved report uses a stable request ID and resumes accepted
chunks. Changed metadata or a different managed attempt produces a different ID.
Do not edit a report while retrying its upload. The JavaScript and Python SDKs
also expose the six collector-report control operations for custom integrations.
For a standalone report that was cancelled or expired, start a new upload with
python scanner/qr.py upload report.json --request-id NEW_UUID, replacing
NEW_UUID with a newly generated UUID. Keep that UUID for retries of the new upload.
Managed reports require a new authorized job attempt after cancellation or expiry.
The credential that creates the report owns subsequent upload-control status, chunk, completion and cancellation requests. Workspace administrators, analysts and viewers can separately review report metadata and coverage. Keep credentials and lease tokens in headers or JSON bodies, never URLs. Revocation prevents further publication.
Upload a report
- Read
GET /api/v1/collector-capture-capabilitiesand require protocol version 1. - Serialize each observation as one UTF-8 JSON line, ending with a newline. Reject duplicate JSON keys. Divide the stream only at finding boundaries.
- Calculate SHA-256 over the exact concatenated line bytes, including newlines.
This is
reportSha256; it is different from the original file'scaptureSha256. - Create
POST /api/v1/collector-captureswith{manifest, leaseToken?}. The manifest includes a stablerequestId, source, scanner, capture digest and byte count, report digest and byte count, chunk and finding counts, coverage, and an optional managedjobId. Preserve these values for retries. - Send ordered chunks to
POST /api/v1/collector-captures/{id}/chunksas{chunk: {index, data}, leaseToken?}. Indexes start at zero;datais base64 of the chunk's exact bytes. Staging does not publish inventory findings. - Call
POST /api/v1/collector-captures/{id}/completewith{leaseToken?}. Completion checks the digest, counts, coverage and certificate links across the entire report, then writes inventory, immutable evidence and archive work.
Managed job completion is part of that same transaction. A client using this
protocol must not submit a second job-completion request after the report succeeds.
Read result.jobStatus: it is completed or partial. The report's own
status: completed means processing finished; inspect analysisComplete to
understand coverage. Zero findings can still be a partial result.
The API records collector-declared capture identity. It cannot independently verify the contents, retention or deletion of a file that stayed on the collector. Passive findings do not authenticate peers or prove completed TLS handshakes.
Limits
| Limit | Maximum |
|---|---|
| Original local capture | 64 MiB |
| Encoded finding stream before base64 | 8 MiB |
| Decoded bytes per chunk | 256 KiB |
| Findings per chunk | 200 |
| Chunks per report | 128 |
| Findings per report | 5,000 |
| Active reports per workspace | 2 |
| Report history per workspace | 10,000 |
| Upload lifetime | 1 hour |
All limits apply together. Never split a certificate-linked report into separate reports merely to bypass a size limit. A zero-finding report has zero chunks, zero stream bytes and the SHA-256 digest of the empty stream, with explicit coverage.
Resume, cancel and diagnose
Use POST /api/v1/collector-captures/{id}/status with {leaseToken?} to read
receivedChunks, receivedBytes, receivedFindings, status and expiry. Retry
creation with the original request ID and metadata. An identical chunk retry
does not increment counts; changing a previously accepted chunk is rejected.
A repeated successful completion returns the original receipt.
Honor Retry-After on rate-limit responses. After an interrupted request, inspect
status before resending. Never assume a lost response means the transaction failed.
Use POST /api/v1/collector-captures/{id}/cancel to discard staged findings.
Expiry also discards them. Cancellation does not separately cancel a managed job;
use the job controls when you intend to stop that scan. A cancelled report cannot
be resumed, and a managed attempt cannot be reused for a different report.
If completion rejects missing certificate references, a changed digest or count mismatch, fix the report writer rather than deleting individual findings. An expired lease, different scanner claim or new job attempt requires new work under the correct lease. Older evidence is retained without replacing a newer inventory snapshot. Completed reports retain coverage in evidence and CBOM exports.
Review reports in the workspace
Open Capture analysis ? Collector reports to review local report history. Select a report to see received chunks and finding counts, coverage gaps and capture/report references. Uploaded captures continues to show hosted processing and raw-upload cleanup separately.
Receiving findings and awaiting confirmation are distinct states: findings remain staged until the collector confirms completion. An interrupted managed upload needs a new authorized scan attempt. Expired reports show when cleanup is still pending. A partial report with zero findings is explicitly incomplete.
Workspace read-only history uses GET /api/v1/collector-captures and
GET /api/v1/collector-captures/{id}. It requires an administrator, analyst or
viewer role and never returns upload credentials, lease hashes or staged finding
bodies. Pagination is bounded to 100 reports and uses the returned nextCursor
as before; the default page size is 20. Agents and standalone ingestor tokens
use their own POST status operation instead of workspace-wide history.
Opening a collector report shows loading feedback beside capture history. If the report cannot be read, choose Retry report in that same area. You can close the details while a request is pending; a late response will not reopen them. Switching reports ignores responses from the previous selection.