Docs menu
Partner integration
Building ora scores into your own product takes two endpoints: one runs a scan, one reads the latest stored result. Call both from your server with a scan API key, and render the response as ora returns it.
1. Run a scan. Stream it, and forward the events to your UI. Add force=1 to rescan a result younger than the 6-hour freshness window.
curl -N "https://ora.ai/api/scan/stream?domain=example.com&format=audit&include=siteType" \
-H "Authorization: Bearer $ORA_API_KEY"scan_complete carries the audit in result and the site-type reading beside it in siteType. A live scan may then send relevance_assessed (checks marked not applicable, plus the corrected score and grade) and summary_ready; both are optional. Read events until the stream closes, then go to step 2. A closed stream is not always a final score: when deep checks are still running, ora finishes the analysis in the background. If you cannot hold a stream open, POST /api/scan returns the same audit in one response, and a 202 points you at the score endpoint to poll.
2. Read the stored score. This never starts a scan. While analysisStatus is partial, the score can still change: poll until it reads complete. Add &siteType=store (or content, business, app) to read the scan as that type. The siteType reading is experimental: its shape can change without a contract version bump.
curl "https://ora.ai/api/score/example.com?format=audit&include=siteType" \
-H "Authorization: Bearer $ORA_API_KEY"It reads by hostname, so a path such as example.com/mcp returns the scan for example.com. A 404 means the site has not been scanned yet: run step 1.
Agent journeys
A journey sends a real agent at the site and records every step it takes. Your key unlocks one call that returns a domain's journey, starting one only when none exists.
1. Get the domain's journey. Send no body: ora picks the task and the agent. A 201 means a new run started. A 200 means nothing new ran: you get the stored run, with its result and run_age_seconds once status is succeeded. A succeeded journey is kept indefinitely and serving it costs nothing, so call this on every page view. A failed run carries no result and is not kept: the next call starts a new run, so back off after a failure instead of retrying at once.
curl -X POST "https://ora.ai/api/journey/domains/example.com" \
-H "Authorization: Bearer $ORA_API_KEY"The response is a compact view with what drawing the journey needs: verdict, the steps in result.trajectory.steps, and result.insight.summary. Add ?view=full for the full payload, including key_observations.
Both views of a finished run carry flags. blocked means the site refused the agent with HTTP 401, 403 or 429, and answered_from_memory means half or more of the answer came from the model's memory, not from pages it fetched. A raised flag has flagged: true and a reason written for people. A flag never changes the verdict; it tells you how much the verdict says about the site.
2. Stream a running journey to the end. While status is running, open stream_url (a path on ora.ai) and read it until result or error. Hold it open: the stream is what saves the finished run, so calling step 1 again only reads what a stream has saved. If the connection drops, open it again; it picks up the same run without restarting the agent. A run can take up to 10 minutes. Open it from your server with your key: it has no CORS headers, and the key lifts the per-IP limit your viewers would otherwise share.
The stream sends run_id, then trajectory snapshots (each one carries every step so far), then result. A live run also sends processing while insights are written; reopening a finished run does not. error can arrive at any point and ends the stream. A running 200 from step 1 carries retry_after_ms; more than three calls for one domain within two seconds return 429 POLL_TOO_FAST. Every 429 carries a Retry-After header.
Your own tasks. To run a task you write, send it as free text (4 to 300 characters) with an agent from GET /api/journey/agents. This starts a new run on every call, up to 1,000 per key per 24 hours. Stream the stream_url it returns to the end, as in step 2. Afterwards, GET /api/journey/runs/{id} reads the saved run. Until the run succeeds, each response names the one request to send next in next_action (method, url, sometimes body, and a reason), which is the stream; a refused request names the request that fixes it instead. After a 429 or 503, wait wait_seconds, then send the same request again.
From an agent over MCP. With your key as the MCP connection's Authorization: Bearer header, the run_journey tool takes the same free text as task and counts against the same allowance and usage limits. It waits up to 50 seconds for the agent; a longer run comes back with a run id to pass to get_journey_run. A refusal or limit ends with the one call to make next, written out with its arguments.
curl -X POST "https://ora.ai/api/journey/runs" \
-H "Authorization: Bearer $ORA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"intent":{"custom":"Find the pricing for the team plan","domain":"example.com"},"harness":"claude-agent-sdk","model":"claude-haiku-5-5"}'Scoring version
Every result names the scoring version behind its score. Your key uses ora's current version, unless ora assigns your key a specific one.
Scan, score, rerun and catalog calls with your key all use your key's version, over REST and over MCP. Results carry scoringVersion and rulesUrl, which lists that version's checks, points and weights. Compare scores only under the same version. A score read for a domain with no result under that version answers 404 until you scan it.
To use another published version for one call, pass scoringVersion: in the body of POST /api/scan and POST /api/scan/checks, as a query parameter on the stream, score and catalog calls, or as an input to the MCP tools. It overrides your key's version for that call only. A version that is not published is refused with code: "scoring_version_unavailable" and the list of published versions: HTTP 400 over REST, a tool error over MCP. The first scan of a domain under a version it was not scanned under runs live.
Usage limits
Your key can carry a daily limit, a monthly limit or both, on scans and on journeys, set by ora. Check where you stand at any time.
curl "https://ora.ai/api/usage" \
-H "Authorization: Bearer $ORA_API_KEY"For scans and for journeys, the answer has a day and a month entry, each with used (new runs your key started since 00:00 UTC today, or since the 1st of the month), limit, remaining and resets_at (00:00 UTC tomorrow, or the 1st of next month). A period with no limit reads limit: null. Only new runs count: a cached scan or a stored journey costs nothing and is still served after the limit is used up.
Errors
A refused scan returns a message for people and a stable code for your program. The Errors page lists every code and what it means.