Docs menu
Scanning
Run agent-readiness scans and stream progress. Scans are rate-limited per IP and cached; cached responses never consume quota.
/api/scanScan a domain, MCP server URL, or MCP App URL for agent-readiness
Runs a full agent-readiness scan on the given URL. Accepts a domain, MCP server URL, or MCP App URL (server that supports the MCP Apps extension io.modelcontextprotocol/ui) - the server auto-detects which kind of input was provided and selects the appropriate check set. Catalog-style listing pages are folded into the mcp kind by classifying the first validated embedded MCP URL. Returns score, grade, and detailed layer breakdown. The response includes an optional urlKind field indicating the detected kind ('domain', 'mcp', or 'mcp-app'). Scoring completes within the request, but deeper analysis can continue asynchronously afterwards: when the returned analysisStatus is 'partial', the response is a 202 Accepted with a Location header pointing at the polling endpoint for the remaining work; a 200 means analysis is already complete. For real-time progress updates, use GET /api/scan/stream which serves a text/event-stream. A complete stored result younger than the freshness window is returned as-is (servedFromCache, resultAgeSeconds, Age header) without running or persisting a scan - pass force: true, or widen/narrow maxAgeSeconds, to control that. Rate limited two ways: 10 requests per minute per IP (burst) and a durable daily scan budget shared with the other scan entry points - both return 429 with a Retry-After header.
PARAMETERS
competitors object in the response: the category top-5 leaders plus the neighbor window (2 above / self / 2 below) drawn from the leaderboard. Returned only for domains with a market category - unclassified domains (Community, or no leaderboard row) get competitors: null. Omitted by default so the plain response stays lean.audit to receive the versioned, allowlisted audit shape (AuditScanResult / AuditScoreResult) instead of the default body: every field is documented, carries a contractVersion, and internal fields are dropped. Omit it and the response is unchanged from previous releases. On GET /api/scan/stream, only the scan_complete event's result is projected - all other events are identical to the default stream.essentials adds one response key, essentials: an alternate reading of the same scan carrying its own score (0-100 or null - required checks share 80 points, recommended 20, forward-looking signals upside-only), the required/recommended buckets, label copy, per-surface sub-scores, access signals, and a checks map keyed by check id. That map holds the essentials INTERPRETATION only (tier, bonus, fraction, occurrences, essentialsGain) - name, status, details, ora's recommendation, and estScoreGain for the same id stay in layers[].checks[], so nothing serializes twice; join on the id. The pre-sorted issues list and scoreEvidence are arrays of ids resolving in that map. Omit the parameter and the response is byte-identical to previous releases. On GET /api/checks, essentials instead adds essentialsTier, essentialsBonusOnly, and essentialsExcluded to every catalog check (an excluded check never enters the essentials model; since 1.19.1 that is the two robots.txt policy checks). Experimental: the audit schemas declare siteType only as a loose object, so its inner fields may change without a version bump, and pinning the contract major does not freeze them. siteType adds one response key, siteType: the same scan scored against what the site is (content, business, app, or store). It carries type, source (declared, self-declared, classified, default, blocked, or unavailable), confidence (high or low), basis, score (0-100 or null), per-layer layers (id, score, maxScore), per-check states (req, bonus, gated, or emerging), and gatedOut (each excluded check id with the gate that excluded it). A site-type score uses a different rubric from the canonical score and can land above or below it: never compare the two, only another siteType.score of the same type. When no type resolves, the key is { type: null, source: "unavailable", confidence: "low", score: null, layers: [] } with a basis saying why.REQUEST BODYrequired
stripe.comservedFromCache / resultAgeSeconds fields.e.g. 21600?include=siteType, scores the response's siteType reading against this type instead of the inferred one. Absent, the type is inferred.content | business | app | storescoring_version_unavailable listing the published versions; a value that is not a positive integer answers 400 invalid_scoring_version. Until release management is active, a request can name 3 (the same opt-in as the older rankerVersion: 3) or the version it would run anyway; any other version answers 400. A version other than the one a domain was last scanned under has no stored result yet, so the first scan of a domain under it runs live.RESPONSES
200Scan completed successfully and analysis is complete. With ?competitors=1, also carries a competitors object (category leaders + neighbor window drawn from the leaderboard). With ?format=audit the body is #/components/schemas/AuditScanResult instead of the shape below. A response served from the freshness window instead of a new scan additionally carries servedFromCache: true and resultAgeSeconds (on both body shapes) plus an Age header, and consumed no scan. -> ScanResult202Scan accepted and scored, but analysis is still in progress (analysisStatus is 'partial'). The body is the same shape as a 200 (including competitors when ?competitors=1 was passed, and #/components/schemas/AuditScanResult when ?format=audit was passed). Poll the Location header URL (GET /api/score/{domain}) until analysisStatus is 'complete' and pendingChecks is empty. -> ScanResult400The request was refused. The body carries a stable code next to the error sentence: branch on code, since the sentence is written for people and can be reworded. Refusal codes: INVALID_INPUT (error: "Invalid input"), INVALID_DOMAIN (error: "Invalid domain"), DOMAIN_UNREACHABLE (error: "Domain is not reachable"), DOMAIN_LOOKUP_FAILED (error: "Domain is not reachable"), DOMAIN_PRIVATE_ADDRESS (error: "Domain resolves to a private IP"), DOMAIN_REDIRECT_LOOP (error: "Domain has a redirect loop"), DOMAIN_SCANNING_OFF (error: "Scanning is turned off for this domain."), INVALID_URL (error: "invalid_url"). INVALID_INPUT adds details. INVALID_URL adds reason (invalid-url, unreachable or mcp-unavailable). DOMAIN_LOOKUP_FAILED means the name lookup did not finish, so ora could not check the domain and the same request can succeed later. Also 400: ephemeral: true for a domain that already has a real stored scan (body carries code: "EPHEMERAL_CLOBBER"; storing a disposable result would replace the real one). -> ErrorResponse422MCP authentication is required. No score or grade was produced. The failed attempt does not overwrite a previous measured scan. -> McpAuthRequiredResponse429Rate limit exceeded - either the 10-per-minute burst cap or the durable daily quota (30 scans per rolling 24h per IP; 6 per day for force=true). Cache-served responses never count against the daily quota. The response includes a Retry-After header indicating seconds until the next request is allowed, and a JSON body with error and retry_after_ms. A keyed caller whose key has used its daily or monthly scan limit gets 429 with error usage_limit_reached and kind, period (day or month), used, limit, resets_at and retry_after_ms; its Retry-After counts to resets_at: the next 00:00 UTC for a daily limit, the next 1st of the month (UTC) for a monthly one, and the later of the two when both are used up. That refusal is key-wide; GET /api/usage shows the numbers. -> ErrorResponse500Scan failed/api/scan/streamStream an agent-readiness scan as Server-Sent Events
Runs a full agent-readiness scan on the given URL and streams progress as text/event-stream. Accepts a domain, MCP server URL, or MCP App URL (server that supports the MCP Apps extension io.modelcontextprotocol/ui) - the server auto-detects which kind of input was provided and selects the appropriate check set. Catalog-style listing pages are folded into the mcp kind by classifying the first validated embedded MCP URL. The stream emits a kind_detecting event immediately after the cheap reachability probe, followed by exactly one kind_detected event with payload { kind: 'domain' | 'mcp' | 'mcp-app', mcpUrl?: string, embeddedMcpUrls?: string[], hint?: string } once URL-kind detection resolves. Progress events follow (the 200 response lists every event type), and finally scan_complete whose payload mirrors the ScanResult schema (including the optional urlKind field indicating the detected kind). The same freshness gate as POST /api/scan applies: a hit is a kind_detected frame followed by the terminal scan_complete event, rather than a full run. Rate limited two ways: 10 requests per minute per IP (burst) and a durable daily scan budget shared with the other scan entry points - both return 429 with a Retry-After header.
PARAMETERS
activeProbes: true on POST /api/scan. Absent, they are not sent.scoring_version_unavailable listing the published versions; a value that is not a positive integer answers 400 invalid_scoring_version. Until release management is active, a request can name 3 (the same opt-in as the older rankerVersion: 3) or the version it would run anyway; any other version answers 400. A version other than the one a domain was last scanned under has no stored result yet, so the first scan of a domain under it runs live.audit to receive the versioned, allowlisted audit shape (AuditScanResult / AuditScoreResult) instead of the default body: every field is documented, carries a contractVersion, and internal fields are dropped. Omit it and the response is unchanged from previous releases. On GET /api/scan/stream, only the scan_complete event's result is projected - all other events are identical to the default stream.siteType only as a loose object, so its inner fields may change without a version bump, and pinning the contract major does not freeze them. siteType adds one response key, siteType: the same scan scored against what the site is (content, business, app, or store). It carries type, source (declared, self-declared, classified, default, blocked, or unavailable), confidence (high or low), basis, score (0-100 or null), per-layer layers (id, score, maxScore), per-check states (req, bonus, gated, or emerging), and gatedOut (each excluded check id with the gate that excluded it). A site-type score uses a different rubric from the canonical score and can land above or below it: never compare the two, only another siteType.score of the same type. When no type resolves, the key is { type: null, source: "unavailable", confidence: "low", score: null, layers: [] } with a basis saying why. On the stream the key rides the scan_complete event beside result, never inside it.include=siteType: scores the scan against this type instead of the resolved one, without rescanning or storing anything. An unrecognized value is ignored, not rejected.RESPONSES
200Server-Sent Events stream of scan progress. If MCP authentication is required, the stream ends with an error event carrying code MCP_AUTH_REQUIRED, mcpAuthRequired: true, mcpUrl and urlKind, without scan_complete or a score. With ?format=audit, the scan_complete event's result is #/components/schemas/AuditScanResult; every other event is unchanged. When a stored result inside the freshness window answers the request, the stream is a kind_detected frame followed by a terminal scan_complete event carrying servedFromCache: true and resultAgeSeconds, and the response carries an Age header. After scan_complete, a live scan may emit two correction events before the stream closes, both optional: relevance_assessed ({ naCheckIds, reasons, score, grade }, only when some checks are judged not applicable for this product) carries the corrected score and grade, and summary_ready ({ agenticSummary }) carries the summary. Consume events until the stream closes. Closing does not mean the analysis is final: when deep checks are still pending, the stream closes early and a background worker finishes relevance and summary later. Read GET /api/score/{domain} after the stream closes and poll it while analysisStatus is partial. When present, preserve result.scanId as the scanId query parameter. Managed live progress frames carry the same optional scanId after allocation, so early deep-check polling can use it. A freshness-window hit is already final and emits neither event. Event types (the type field), in emission order: kind_detecting - reachability passed and URL-kind detection is running (no payload); kind_detected - detection resolved: { kind: 'domain' | 'mcp' | 'mcp-app', mcpUrl?, embeddedMcpUrls?, hint? }, exactly once, before any check_start; discovery_phase (optional) - a context-gathering step, or after scan_complete a post-scan finalize step: { step, label?, stepIndex?, totalSteps? }, zero or more times; scan_init - the check plan: { layerMaxScores, totalChecks?, checkRoster?, staticOnly? }; may be sent twice, the later one is authoritative; check_start - one check slot started: { layerId, layerName, checkId, checkName, mcpKind?, mcpUrl? }; check_complete - one check slot finished: { layerId, layerName, checkId, checkName, status, score, maxScore, details?, bonus?, naKind?, expectedScore?, maturity?, mcpKind?, mcpUrl? }; layer_complete - every check in a layer finished: { layerId, layerName }; scan_complete - the scored result, not the last frame: { result } (AuditScanResult under ?format=audit), plus siteType with ?include=siteType and servedFromCache / resultAgeSeconds on a freshness hit; relevance_assessed (optional) - after scan_complete, only when checks were judged not applicable: { naCheckIds, reasons, score, grade } with the corrected score and grade; summary_ready (optional) - after scan_complete: { agenticSummary }; error (terminal, optional) - the scan failed and no scan_complete follows: { message }, plus code when the target was refused (a DOMAIN_* code or INVALID_URL, the codes of POST /api/scan), or code: 'MCP_AUTH_REQUIRED', mcpAuthRequired, mcpUrl and urlKind when an MCP server requires authentication. Read until the stream closes; only a terminal event is guaranteed to be the last frame.400Missing or invalid domain parameter429Rate limit exceeded - either the 10-per-minute burst cap or the durable daily quota (30 scans per rolling 24h per IP; 6 per day for force=1). The response carries a Retry-After header with the seconds until the caller's window frees up. A keyed caller whose key has used its daily or monthly scan limit gets 429 with error usage_limit_reached and kind, period (day or month), used, limit, resets_at and retry_after_ms; its Retry-After counts to resets_at: the next 00:00 UTC for a daily limit, the next 1st of the month (UTC) for a monthly one, and the later of the two when both are used up. That refusal is key-wide; GET /api/usage shows the numbers./api/scan/checksRun a selected subset of checks against a URL
Runs only the checks you select against the given URL and returns per-check results - the re-verify step after shipping a fix, with check ids from GET /api/checks. The run always executes; results are never served from a cache, so a re-check reflects the fix you just deployed (allow for DNS and CDN caches clearing). For most or all of the catalog, use POST /api/scan instead: same budget unit, and it returns a score. The response carries no aggregate score; GET /api/score/{domain} is the score surface. Callers holding a scan API key also get stored-scan patching - see storedScanUpdated on the response. Rate limited two ways: 10 requests per minute per IP, and one run spends one unit of the daily scan budget shared with POST /api/scan, spent once the target has been probed and classified; requests rejected earlier (invalid input, unknown ids, unreachable) spend nothing. Scan API key callers are exempt from both - an exemption, not a larger allowance; keys are issued manually on request - contact ora.
REQUEST BODYrequired
RESPONSES
200Per-check results for the selection - at least one entry per requested id, including 'na' entries for ids that cannot apply to the detected kind. Always synchronous and complete: there is no 202 and no pending status. -> RunChecksResponse400Invalid input - either a schema failure ({ error, details } with the Zod detail, whose checkIds bounds messages point at POST /api/scan for full runs) or an id the catalog does not list (code: "UNKNOWN_CHECK_IDS" with the offending ids echoed in details and GET /api/checks as the pointer), or an invalid / unreachable domain. Every refusal carries a stable code, as on POST /api/scan. Refusal codes: INVALID_INPUT (error: "Invalid input"), INVALID_DOMAIN (error: "Invalid domain"), DOMAIN_UNREACHABLE (error: "Domain is not reachable"), DOMAIN_LOOKUP_FAILED (error: "Domain is not reachable"), DOMAIN_PRIVATE_ADDRESS (error: "Domain resolves to a private IP"), DOMAIN_REDIRECT_LOOP (error: "Domain has a redirect loop"), DOMAIN_SCANNING_OFF (error: "Scanning is turned off for this domain."), INVALID_URL (error: "invalid_url"). INVALID_INPUT adds details. INVALID_URL adds reason (invalid-url, unreachable or mcp-unavailable). DOMAIN_LOOKUP_FAILED means the name lookup did not finish, so ora could not check the domain and the same request can succeed later. -> ErrorResponse429Rate limit exceeded - either the 10-per-minute burst cap (body { error }) or the durable daily scan budget shared with POST /api/scan (body also carries retry_after_ms). Both carry a Retry-After header with the seconds until the caller's window frees up. A keyed caller whose key has used its daily or monthly scan limit gets 429 with error usage_limit_reached and kind, period (day or month), used, limit, resets_at and retry_after_ms; its Retry-After counts to resets_at: the next 00:00 UTC for a daily limit, the next 1st of the month (UTC) for a monthly one, and the later of the two when both are used up. That refusal is key-wide; GET /api/usage shows the numbers. -> ErrorResponse500Selective run failed