Scan a URL
Authentication
A flash_ API key, sent as Authorization: Bearer <key>.
Request
The full http or https URL to scan. Flash scans URLs of at most 2048 characters and refuses a longer one with 422 rejected; a url over 4096 characters is 400 invalid_request.
The question the scan answers. safety always runs, first, and every objective gets its own verdicts entry. safety: Should I interact with this URL? domain_ownership: Beta. Who is behind the domain? entity_reputation: Beta. Is the domain’s owner reputable? Runs domain_ownership first. entity_representation: Beta. How does each brand show up on the page? Runs domain_ownership first. entity_extraction: deprecated, use entity_representation. entity_legitimacy: deprecated, use domain_ownership or entity_reputation. The objectives one scan answers, each once; safety always runs. Left out, the scan runs safety and each of domain_ownership, entity_reputation, and entity_representation the caller’s plan includes, and none of them is refused; send [“safety”] for safety alone. Every plan includes safety; a plan must include domain_ownership, entity_reputation, and entity_representation for a scan to run them. An objective outside the caller’s plan gets a refused verdicts entry, with reason not_entitled, and the rest of the scan still runs. A deprecated objective gets 422 objective_unavailable and nothing is scanned; its error names what to send instead.
Beta. The policies to apply to the scan’s verdicts, each once; merchant when left out. merchant is the only policy today.
Keep the scan off every public read. Needs an internal API key; other keys get 403 forbidden.
Name who answers this scan’s objectives, the agent run or the fixed rules, for comparison runs. Needs an internal API key; other keys get 403 forbidden.
Response headers
This request’s id, the same as request_id in the body.
IETF RateLimit-Policy: one named policy per limit window, with its quota q and window w in seconds, such as “caller-hour”;q=30;w=3600, “caller-day”;q=100;w=86400.
IETF RateLimit: what remains (r) of each policy, and in how many seconds (t) its next slot frees up, such as “caller-hour”;r=29;t=3600, “caller-day”;r=99;t=86400.
Response
pending: still running; read it again in a few seconds. scanned: verdicts and policies are set. rejected: the URL was refused (reason says why). error: the scan failed or never finished; scan again.
Why a rejected or error scan has no verdicts; null otherwise.
The objectives asked for, or the ones the caller’s plan runs when the request named none; safety first, each once. Once the scan is scanned, verdicts answers every one.
The scan’s answers: safety first, then each other objective in objectives, plus domain_ownership when another objective ran it first. entity_representation has one entry per entity the page represents, or one none entry. An objective the scan never reached still gets one inconclusive entry, with a reason and no subject, and one the caller’s plan doesn’t include gets one refused entry. Empty unless status is scanned.
The facts this scan found, the same on every surface and for every reader: nodes first, then edges. Flash places all of them in its graph except where the page’s links lead, which stay on this scan. Derived from the scan alone, so it never waits on, or shows, any other scan. Empty unless status is scanned, and when Flash couldn’t place the page.
Whether anything was on the site when Flash checked, read by code, not the model. state is live, taken_down, removed, no_dns, parked, error or blocked_us, and reason says why. error means no page loaded, so the safety verdict is inconclusive rather than not_live. reason is “unrecorded” when only the state was stored. state is “unknown” with reason “not_checked” when the scan finished without checking the site. null unless status is scanned.
The scan’s measured LLM cost in USD; null when unmeasured. Only POST /v1/scan measures it.
The scan’s LLM tokens; null when unmeasured. Only POST /v1/scan measures them.
The request’s Datadog trace id, for support. Only POST /v1/scan has one.
This request’s id, also sent as x-request-id. Quote it when you contact support.