Skip to navigation

Scan a URL, paid per call

404 while paid scans are off. For an agent with no API key. Paid over MPP: the served document’s x-payment-info lists the methods and prices on offer, by card through a Stripe shared payment token or in USDC on Tempo, and the 402 challenge states the price that applies. The first call answers 402 with a WWW-Authenticate: Payment challenge; pay it and retry with the credential in Authorization: Payment. The paid call runs one scan of the objectives sent, safety and the core objectives when none are, at one price whatever is sent, and returns it as GET /v1/scans/{id} would, with request_id and a receipt. Paying opens the closed-beta objectives. Every scanned scan gets policies.merchant, from whichever verdicts it has. A check refused or failed after payment, or one whose payer hangs up before its verdict is delivered, is refunded. The scan belongs to the payer, and no API key can read it.

Request

This endpoint expects an object.
urlstringRequired1-4096 characters

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.

objectiveslist of enumsOptional

The objectives the scan answers, each once, as POST /v1/scan takes them. 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. One price whatever is sent. Paying opens the closed-beta objectives, such as domain_ownership and entity_reputation. A deprecated objective gets 422 objective_unavailable before any payment.

policieslist of enumsOptional

Beta. The policies to apply to the scan’s verdicts, each once; merchant when left out. merchant is the only policy today.

Allowed values:

Response headers

x-agent-armor-versionstringOptional
The Flash build that answered.
x-request-idstringOptional

This request’s id, the same as request_id in the body.

payment-receiptstringOptional
The payment method's receipt for this charge.

Response

The finished scan and its receipt.
scanIdstringformat: "uuid"
The scan's id.
statusenum

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.

Allowed values:
reasonstring or null

Why a rejected or error scan has no verdicts; null otherwise.

created_atdatetime
finished_atdatetime or null
null while the scan is pending.
urlstring
The URL scanned.
objectiveslist of enums

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.

verdictslist of objects

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.

observationslist of objects

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.

policiesobject
Beta. Each policy's outcome, by name, read from verdicts. Every scan applies merchant.
site_stateobject or null

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.

page_tagslist of objects or null

Beta. The ad and analytics tag ids in the page’s HTML; empty when the page carries none. null unless status is scanned, and when Flash read no page HTML.

enginestring
The engine that ran the scan.
cost_usddouble or null>=0

The scan’s measured LLM cost in USD; null when unmeasured. Only POST /v1/scan measures it.

llm_usageobject or null

The scan’s LLM tokens; null when unmeasured. Only POST /v1/scan measures them.

trace_idstring or null

The request’s Datadog trace id, for support. Only POST /v1/scan has one.

report_urlstring or nullformat: "uri"
The scan's result page, where its account can report a wrong verdict. It opens for the account that ran the scan and its org's members, and for anyone with the link once that account makes it public. null unless status is scanned, and when the scan has no page.
request_idstring

This request’s id, also sent as x-request-id. Quote it when you contact support.

receiptobject
The payment this check charged.

Errors

400
Bad Request Error
402
Payment Required Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
503
Service Unavailable Error