Start an ad-hoc detection
Starts a detection over a document against an explicit list of policies, with no pipeline. Returns 202 with the pending detection; fetch the findings from .../detections/{detectionId}/analysis/ once it reaches complete. A repeated Idempotency-Key returns the existing detection.
Path Parameters
Workspace identifier.
Body
Request payload to start an ad-hoc detection over a document, naming its policies directly rather than through a pipeline.
Analyzes the document against the given policies (authored or one-shot) and returns the detection holding the findings for review before redaction.
Request payload to start an ad-hoc detection over a document, naming its policies directly rather than through a pipeline.
Analyzes the document against the given policies (authored or one-shot) and returns the detection holding the findings for review before redaction.
The document to analyze.
The policies to run against, by id. At least one is required.
1 - 64 elementsRetention override for the outputs this detection produces. Absent falls back to the workspace retention baseline.
Per-document scope (languages, jurisdictions, document labels).
Response
Response type for a detection.
A detection is addressed by its own opaque id; the owning pipeline and
workspace handles are carried for context. Redacted outputs are not here — a
detection produces many redactions, each fetched from its redactions
endpoint.
Response type for a detection.
A detection is addressed by its own opaque id; the owning pipeline and
workspace handles are carried for context. Redacted outputs are not here — a
detection produces many redactions, each fetched from its redactions
endpoint.
Opaque identifier of the detection.
^detection_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Source document this detection analyzes.
Non-encrypted metadata for filtering/display.
When the detection started.
Current detection status.
The detections are available to fetch from the detection's analysis
endpoint once this reaches complete.
"pending"How the detection was triggered.
"user"Account that triggered the detection.
URL-safe workspace handle. Display-only.
3 - 32^[a-z0-9]+(?:-[a-z0-9]+)*$Unique identifier of the workspace.
When the detection completed analysis.
Human-readable failure reason, present only when the detection failed.
Display name of the source document, for showing the detection without a
separate file lookup. None if the file was removed (e.g. by retention).
Unique identifier of the pipeline this detection belongs to; absent for an ad-hoc detection.