Walk the scan's log messages and record every URL/host match as a discovery.
POST/v1/scans/:scan_id/discoveries/extract
Worker-facing backfill for the discovery feed. Parses every scan_logs.message for URL and host:port patterns, runs each match through the same dedup + blacklist path as /discoveries, and returns the resulting rows.
Idempotent — re-running returns the same set (with refreshed last_seen_at), never duplicates. Safe to invoke from the worker's "scan completed" hook or from an operator-triggered re-extraction.
Request
Responses
- 200
- 204
- 401
Extraction ran; the body reports the number of rows and includes the full asset list.
No URLs to extract — the scan's logs had no recognisable matches (or the scan doesn't accept discoveries).
Missing or invalid bearer token.