# PageAudit — full API reference > Generated from the catalog at https://pageaudit.online · build `29dc2143` > 10 endpoints · 20 structures · slice `/api/audit` > Short index: https://pageaudit.online/llms.txt · Spec: https://pageaudit.online/openapi.json · MCP: https://pageaudit.online/mcp · Errors: https://pageaudit.online/errors · Status: https://pageaudit.online/status > Check what search engines can read on a web page. > Retrieve evidence, suggested changes and saved reports. Start without a key. - [Also available on PayAPI Market](https://payapi.market/api/pageaudit) ## Free and paid services - [Free allowances and current prices](https://pageaudit.online/api/pricing) - [Payment methods and conditions](https://pageaudit.online/api/billing) - [First request and payment recovery](https://pageaudit.online/skill.md) ## How to read - Every endpoint lists path, auth, parameters, body, response structure, errors and a call that runs. - `Pagina` is a reference: the fields are under **Structures**, at the end, once. - `(optional)` on a field means it may be absent; `(may be null)` means it comes with a null value. - 4xx/5xx errors under `/api/*` use RFC 9457 (`application/problem+json`) with `type`, `title`, `status`, `detail`, `instance` and `code` (catalog at `/errors` and `/errors.md`). - If any route or tool fails or returns an unexpected error, report it via `POST /api/contact` with `{"tipo":"problema","categoria":"erro_api","contexto":"METHOD /api/...","mensagem":"status and error received"}` (requires an account API key or OAuth token). - Slice what you need: `https://pageaudit.online/llms-full.txt?prefix=/api/` returns only that branch. ## Authentication - `credito` — Credit token in `Authorization: Bearer cred_…` or `X-Credito`. For recovered x402 funds, use the wallet credential mmw_… in Bearer or X-Wallet-Token, issued through /api/auth/wallet/agent/start and /api/auth/wallet/agent/token. - `none` — Public, no credential. - `guest` — Guest token (`POST /api/guest`) in `X-Guest-Token: pa_…`, `Authorization: Bearer pa_…` or `?guest_token=pa_…`. Only a token this site issued is accepted. A signed-in account (cookie) also works and takes precedence; after the claim the token owns nothing. An agent without an account can send the wallet credential instead (`Authorization: Bearer mmw_…`, from `POST /api/auth/wallet/agent/start`): the wallet owns tabs and audits like a guest, as `x402:
`, and they move to the account it is linked to. - `session` — Global account: HttpOnly cookie `__Host-mm-auth`, set when you sign in on this site's `/conta/global` page. An ended session answers 401 `session_ended` (it never falls back to the guest). Writes need the same Origin and `X-CSRF-Token` from `/api/auth/bootstrap`. No bearer token is issued to humans. - `organization` — Signed-in account session plus `X-Organization-Id`. The shared account checks current membership and that PageAudit is enabled for the organization. Writes also need the same Origin and `X-CSRF-Token` from `/api/auth/bootstrap`. - `token` — Operator token in `Authorization: Bearer …` (`METRICS_TOKEN`). - `github_app` — Only GitHub: the delivery is signed with the PageAudit GitHub App's webhook secret in `X-Hub-Signature-256`. ## Endpoints ## Audit ### `POST /api/audit` Audits a URL and returns the full report in one call, without a token or a tab. This is the product for agents. Past the account or anonymous network's daily allowance the response is **402 with `accepts[]`** and `code: allowance_spent`; pay and repeat the same call. There is no captcha: people and agents pay the same way. The free alternative: a person signs in with an account to get the trial. **Prepared results and when to use them** The HTML checks run without an LLM, so you can work directly from the report instead of writing a fetcher and audit rules. Start with POST /api/audit on a URL you are allowed to check, within the current free allowance. Generate a saved agent prompt from the report when you want step-by-step fixes, or compare monitoring plans for repeated checks. Prompts and monitoring have separate allowances. This checks delivered HTML, so use a browser test for performance or accessibility, and check truncated or unavailable evidence. - **URL:** `https://pageaudit.online/api/audit` - **Auth:** `none` — Public, no credential. **Body** (`application/json`) - `url` (string, required) — The page to audit, `http` or `https`. - `guest_token` (string) — Guest `pa_…` so the audit is tied to it and shows up in the tabs. - `compare_with` (string) — ID of an earlier audit of the same owner (production, for example). The answer gains `comparison`: the findings that appeared and disappeared, by code. Checked before the audit runs, so a wrong ID spends nothing. **Body example** ```json { "url": "https://example.com/", "guest_token": "pa_… (optional, ties the audit)" } ``` **Response `200`** Structure: `Audit`. - `id` (string, may be null) — ID of the stored audit; `null` when the database was unavailable. - `score` (int) — 0–100 for measured checks: error -18, warn -8, info 0. Not a security/accessibility certification. Older saved scores keep their original weights. - `issues` (Achado[]) — Everything found, from most to least severe. → see `Achado` under **Structures**. - `summary` (ResumoPagina) — What the page declares: title, meta, canonical, OG, headings, links… → see `ResumoPagina` under **Structures**. - `counts` (ContagemAchados) — How many findings of each severity. → see `ContagemAchados` under **Structures**. - `headers` (object) — Every header of the target's response. `Set-Cookie` is removed on purpose: it is a third party's credential. - `htmlTruncated` (bool) — `true` when the page passed 2 MB and was read only that far. - `jsonLd` (object[]) — The raw JSON-LD blocks, as they were on the page. - `jsonLdStored` (int) — How many blocks survived the size cap; compare with `summary.jsonLdBlocks`. - `truncated` (string[]) — What was cut and why: `jsonld_size`, `jsonld_nodes_over_50`, `result_size`. Empty means nothing cut. - `comparison` (Comparacao, optional) — Only with `compare_with`: what changed from that audit to this one, by finding code. → see `Comparacao` under **Structures**. - `quota` (CotaAudit) — How much is still free and what it costs past that. → see `CotaAudit` under **Structures**. - `_links` (LinksAudit) — This audit, prompt generation, sharing and the API index. → see `LinksAudit` under **Structures**. **Errors** - `400` — Body is not JSON, `url` missing/not http, or `compare_with` is not an audit ID. - `401` — `compare_with` without an owner: send `guest_token` or sign in. - `402` — Payment required. The x402 terms (USDC on Base) come in the `PAYMENT-REQUIRED` header and in `accepts[]`: pay and repeat the same call with `PAYMENT-SIGNATURE` (x402 v2) or `X-PAYMENT` (v1). A standard x402 client such as `@x402/fetch` does this for you. - `404` — `compare_with` is not an audit of this owner. - `429` — Past `MAX_AUDITS_PER_HOUR` on the same IP. Wait an hour. - `502` — The target failed to answer, or a firewall or rate limit answered instead of the page: `code` `target_blocked` or `target_rate_limited`, with `blocked.fix`. Nothing was audited. **Example** ```sh curl -s -XPOST https://pageaudit.online/api/audit -H 'content-type: application/json' -d '{"url":"https://example.com/"}' ``` ### `GET /api/audits/:id` Re-reads an audit already made, in full, without re-auditing the page. Re-reading costs nothing and does not count against the allowance; the page's HTML is not kept, but the report is. - **URL:** `https://pageaudit.online/api/audits/:id` - **Auth:** `guest` — Guest token (`POST /api/guest`) in `X-Guest-Token: pa_…`, `Authorization: Bearer pa_…` or `?guest_token=pa_…`. Only a token this site issued is accepted. A signed-in account (cookie) also works and takes precedence; after the claim the token owns nothing. An agent without an account can send the wallet credential instead (`Authorization: Bearer mmw_…`, from `POST /api/auth/wallet/agent/start`): the wallet owns tabs and audits like a guest, as `x402:
`, and they move to the account it is linked to. **Path parameters** - `id` (string, required) — Audit ID, from `Audit.id`. e.g.: `9f3c2b1d-7a4e-4c58-9b02-1f6d5e8a2c34`. **Response `200`** Structure: `AuditGravado`. - `audit_id` (string) — ID of the audit. - `url` (string) — Final audited URL, after following the redirects. - `score` (int) — Score from 0 to 100. - `summary` (ResumoPagina, may be null) — What the page declared at the time of the run. → see `ResumoPagina` under **Structures**. - `counts` (ContagemAchados) — How many findings of each severity. → see `ContagemAchados` under **Structures**. - `issues` (Achado[]) — Everything found in that run. → see `Achado` under **Structures**. - `jsonLd` (object[]) — The raw JSON-LD blocks stored. - `headers` (object) — Headers of the target's response, as they were in the run. - `truncated` (string[]) — What was cut by size when storing. - `share_slug` (string, may be null) — Public slug, if this audit was shared. - `created_at` (string) — When the run happened (UTC). **Errors** - `401` — No credential, or an invalid one. See this endpoint's auth. - `404` — The resource does not exist (or is not yours; the API does not tell the two apart on purpose). **Example** ```sh curl -s https://pageaudit.online/api/audits/AUDIT_ID -H "X-Guest-Token: $PA" ``` ### `GET /api/audits/:id/patch` Retired correction endpoint. Use POST /api/audits/:id/prompts. Returns 410 with links to prompt generation and the current allowance. Reading a report returns findings and evidence; correction instructions require prompt generation. - **URL:** `https://pageaudit.online/api/audits/:id/patch` - **Auth:** `guest` — Guest token (`POST /api/guest`) in `X-Guest-Token: pa_…`, `Authorization: Bearer pa_…` or `?guest_token=pa_…`. Only a token this site issued is accepted. A signed-in account (cookie) also works and takes precedence; after the claim the token owns nothing. An agent without an account can send the wallet credential instead (`Authorization: Bearer mmw_…`, from `POST /api/auth/wallet/agent/start`): the wallet owns tabs and audits like a guest, as `x402:
`, and they move to the account it is linked to. **Path parameters** - `id` (string, required) — Audit ID, from `Audit.id`. e.g.: `9f3c2b1d-7a4e-4c58-9b02-1f6d5e8a2c34`. **Response `200`** 410 JSON: code=use_fix_prompt and _links.prompts, quota, api_index. **Errors** - `401` — No credential, or an invalid one. See this endpoint's auth. - `404` — The resource does not exist (or is not yours; the API does not tell the two apart on purpose). - `410` — **Example** ```sh curl -s https://pageaudit.online/api/audits/AUDIT_ID/patch -H "X-Guest-Token: $PA" ``` ### `GET /api/audits/:id/dependencies` Read external dependencies found in the saved HTML and browser tests. Free within the audit allowance. No extra fetch or charge. HTML and browser observations retain separate evidence. Source checks, history and expiry alerts are included in an active paid page-watch pass. Ordinary external links are listed but are not watched automatically. **Prepared results and when to use them** Joining page markup, browser network results, domain registration and DNS observations, then keeping their change history. Use the audit allowance and optional free lab test. Read this inventory without another collection or charge. Existing Starter, Pro and Agency watch passes include continuing dependency checks, before/after history and expiry alerts. Reuse the active pass; enabling this watch does not buy another one. Browser evidence covers its page load. Source gaps remain unknown. Domain expiry and NXDOMAIN do not prove takeover. Task-token savings have not been measured. - **URL:** `https://pageaudit.online/api/audits/:id/dependencies` - **Auth:** `guest` — Guest token (`POST /api/guest`) in `X-Guest-Token: pa_…`, `Authorization: Bearer pa_…` or `?guest_token=pa_…`. Only a token this site issued is accepted. A signed-in account (cookie) also works and takes precedence; after the claim the token owns nothing. An agent without an account can send the wallet credential instead (`Authorization: Bearer mmw_…`, from `POST /api/auth/wallet/agent/start`): the wallet owns tabs and audits like a guest, as `x402:
`, and they move to the account it is linked to. **Path parameters** - `id` (string, required) — Owned saved audit or tab ID. **Query** - `after` (string) — Opaque inventory cursor from inventory.next. - `events_after` (int) — Continue history after this event number. Default 0. **Response `200`** Structure: `DependencyInventory`. - `audit_id` (string) — Owned audit ID. - `page_target` (object) — The audited host whose own DNS/CNAME is also covered by a paid page watch. - `inventory` (object) — items, total and next. Each item names the host, relationship, discovery page, observation date and HTML/browser evidence. next continues the complete inventory. - `coverage` (string) — observed_references, no_external_reference or not_collected. A browser test observes only its page load; it does not exercise every user flow. - `monitoring` (object, may be null) — enabled, active, checked_at, next_check_at, sources, working, history and history_next. Sources retain their own coverage, source URL, dates and gaps. - `included_in_active_watch_plan` (bool, may be null) — True when current paid watch rights include the dependency checks. Null means rights could not be read; it is not permission. - `_links` (object) — Audit, monitor, domain and existing watch plans. **Errors** - `400` — Malformed request: missing parameter, wrong type or invalid JSON. - `401` — No credential, or an invalid one. See this endpoint's auth. - `404` — The resource does not exist (or is not yours; the API does not tell the two apart on purpose). - `503` — **Example** ```sh curl "https://pageaudit.online/api/audits/AUDIT_ID/dependencies" -H "X-Guest-Token: $PA" ``` ### `POST /api/audits/:id/lab` Starts a lab test of the audited page: Lighthouse run by Google PageSpeed Insights (performance, accessibility, best practices, SEO). Answers **202** at once; the test runs for ~25 s to over 2 minutes and its summary is stored in the audit (`summary.lab.`), so it comes back in `GET /api/audits/:id`, in the tab and in the shared report. It does not change the audit score. Calling again while the same strategy is running does not start a second test. Limits: 4 tests at a time on the server, 6 per network per hour and 500 per day for the whole product. Free: no x402 charge. - **URL:** `https://pageaudit.online/api/audits/:id/lab` - **Auth:** `guest` — Guest token (`POST /api/guest`) in `X-Guest-Token: pa_…`, `Authorization: Bearer pa_…` or `?guest_token=pa_…`. Only a token this site issued is accepted. A signed-in account (cookie) also works and takes precedence; after the claim the token owns nothing. An agent without an account can send the wallet credential instead (`Authorization: Bearer mmw_…`, from `POST /api/auth/wallet/agent/start`): the wallet owns tabs and audits like a guest, as `x402:
`, and they move to the account it is linked to. **Path parameters** - `id` (string, required) — Audit ID, from `Audit.id`. e.g.: `9f3c2b1d-7a4e-4c58-9b02-1f6d5e8a2c34`. **Body** (`application/json`) - `strategy` (string) — `mobile` (default) or `desktop`. **Body example** ```json { "strategy": "mobile" } ``` **Response `200`** - `ok` (bool) — Always `true` on 202. - `audit_id` (string) — The audit the test belongs to. - `strategy` (string) — `mobile` or `desktop`. - `lab` (LabTeste) — `status: running` and when it started. → see `LabTeste` under **Structures**. - `_links` (object) — `poll` (the GET with `wait`) and `audit`. **Errors** - `400` — `strategy` is not `mobile` or `desktop`. - `401` — No credential, or an invalid one. See this endpoint's auth. - `404` — The resource does not exist (or is not yours; the API does not tell the two apart on purpose). - `429` — A limit was reached: `lab_busy` (4 running), `lab_rate_limited` (6 per network per hour) or `lab_daily_cap`. - `503` — `lab_unavailable`: the server has no PageSpeed key configured. **Example** ```sh curl -s -XPOST https://pageaudit.online/api/audits/AUDIT_ID/lab -H "X-Guest-Token: $PA" -H 'content-type: application/json' -d '{"strategy":"mobile"}' ``` ### `GET /api/audits/:id/lab` The lab tests of an audit (running, finished, or failed), waiting up to `wait` seconds for a running one to finish. Long-poll: with `wait` the answer comes as soon as a running test finishes, or after `wait` seconds with `status: running`. Repeat until it is not running. - **URL:** `https://pageaudit.online/api/audits/:id/lab` - **Auth:** `guest` — Guest token (`POST /api/guest`) in `X-Guest-Token: pa_…`, `Authorization: Bearer pa_…` or `?guest_token=pa_…`. Only a token this site issued is accepted. A signed-in account (cookie) also works and takes precedence; after the claim the token owns nothing. An agent without an account can send the wallet credential instead (`Authorization: Bearer mmw_…`, from `POST /api/auth/wallet/agent/start`): the wallet owns tabs and audits like a guest, as `x402:
`, and they move to the account it is linked to. **Path parameters** - `id` (string, required) — Audit ID, from `Audit.id`. e.g.: `9f3c2b1d-7a4e-4c58-9b02-1f6d5e8a2c34`. **Query** - `wait` (string) — Seconds to wait for a running test, 0 to 15. Default 0 (answer at once). **Response `200`** - `audit_id` (string) — The audit. - `lab` (object) — `mobile` and `desktop`, each a `LabTeste` or `null` when never run. - `_links` (object) — `self` and `audit`. **Errors** - `401` — No credential, or an invalid one. See this endpoint's auth. - `404` — The resource does not exist (or is not yours; the API does not tell the two apart on purpose). **Example** ```sh curl -s "https://pageaudit.online/api/audits/AUDIT_ID/lab?wait=15" -H "X-Guest-Token: $PA" ``` ## Share ### `POST /api/audits/:id/share` Publishes the audit under a non-enumerable slug. Calling again returns the same slug. - **URL:** `https://pageaudit.online/api/audits/:id/share` - **Auth:** `guest` — Guest token (`POST /api/guest`) in `X-Guest-Token: pa_…`, `Authorization: Bearer pa_…` or `?guest_token=pa_…`. Only a token this site issued is accepted. A signed-in account (cookie) also works and takes precedence; after the claim the token owns nothing. An agent without an account can send the wallet credential instead (`Authorization: Bearer mmw_…`, from `POST /api/auth/wallet/agent/start`): the wallet owns tabs and audits like a guest, as `x402:
`, and they move to the account it is linked to. **Path parameters** - `id` (string, required) — ID of the audit to publish. e.g.: `9f3c2b1d-7a4e-4c58-9b02-1f6d5e8a2c34`. **Response `200`** Structure: `Compartilhamento`. - `ok` (bool) — Always `true`. - `shared` (bool) — Whether the audit is published at the end of the call. - `slug` (string) — Public, non-enumerable slug. - `path` (string) — Path of the report's HTML page. - `badge` (string) — Path of the score badge SVG. - `_links` (object) — Report, JSON and badge, as absolute URLs. **Errors** - `401` — No credential, or an invalid one. See this endpoint's auth. - `404` — The resource does not exist (or is not yours; the API does not tell the two apart on purpose). **Example** ```sh curl -s -XPOST https://pageaudit.online/api/audits/AUDIT_ID/share -H "X-Guest-Token: $PA" ``` ### `DELETE /api/audits/:id/share` Revokes the share; the slug stops serving the report. The badge keeps answering 200 with the gray `n/a` SVG in the same box, so the layout of whoever pasted it in a README does not break. - **URL:** `https://pageaudit.online/api/audits/:id/share` - **Auth:** `guest` — Guest token (`POST /api/guest`) in `X-Guest-Token: pa_…`, `Authorization: Bearer pa_…` or `?guest_token=pa_…`. Only a token this site issued is accepted. A signed-in account (cookie) also works and takes precedence; after the claim the token owns nothing. An agent without an account can send the wallet credential instead (`Authorization: Bearer mmw_…`, from `POST /api/auth/wallet/agent/start`): the wallet owns tabs and audits like a guest, as `x402:
`, and they move to the account it is linked to. **Path parameters** - `id` (string, required) — ID of the audit to unpublish. e.g.: `9f3c2b1d-7a4e-4c58-9b02-1f6d5e8a2c34`. **Response `200`** - `ok` (bool) — Always `true`. - `shared` (bool) — Always `false` at the end of this call. **Errors** - `401` — No credential, or an invalid one. See this endpoint's auth. - `404` — The resource does not exist (or is not yours; the API does not tell the two apart on purpose). **Example** ```sh curl -s -XDELETE https://pageaudit.online/api/audits/AUDIT_ID/share -H "X-Guest-Token: $PA" ``` ## Agent prompts ### `POST /api/audits/:id/prompts` Generate a coding-agent prompt for one finding or the full audit. Read GET /api/prompts/quota before generation; the total depends on scope and existing rights. Three lifetime free units per account or anonymous network. A check uses one; full uses three. Extra units cost US$0.10 each. Active Starter, Pro and Agency plans include prompts while valid, within 60 requests/hour. No partial free debit: a full prompt needs three free units or is charged in full. The licensed prompt is saved for this owner and organization. Reopening the same selector is free even after plan expiry. Unverified checks are excluded: missing measurements are not purchasable correction evidence. Preserve its text and license; use it only for license.domain. Reuse the UUID v4 request_id and identical body after a delivery failure. Payment uses X-Credito or the x402 challenge. Never charge without the user's authorization. **Prepared results and when to use them** Use the assembled instructions directly instead of copying findings and writing a prompt yourself, with no model call needed to generate it. The initial allowance has three units: one for a finding or three for the full report. After that allowance, credit pays per unit and active plans can include prompts. Read the quote for the selected scope; reopening a saved prompt does not charge again. Review placeholders and proposed changes before applying them, since evidence comes from the saved audit rather than the repository. Use verification with the same owner to compare fixed and new findings after the change. Free audits already include findings, and the prompt does not edit the site on its own. - **URL:** `https://pageaudit.online/api/audits/:id/prompts` - **Auth:** `guest` — Guest token (`POST /api/guest`) in `X-Guest-Token: pa_…`, `Authorization: Bearer pa_…` or `?guest_token=pa_…`. Only a token this site issued is accepted. A signed-in account (cookie) also works and takes precedence; after the claim the token owns nothing. An agent without an account can send the wallet credential instead (`Authorization: Bearer mmw_…`, from `POST /api/auth/wallet/agent/start`): the wallet owns tabs and audits like a guest, as `x402:
`, and they move to the account it is linked to. **Path parameters** - `id` (string, required) — Owned saved audit ID. **Body** (`application/json`) - `scope` (string, required) — check or full. - `check_id` (string) — ID from the report's checks; required for check, absent for full. - `language` (string, required) — Language of the prompt instructions and check names: en for English, pt for Portuguese. - `request_id` (string, required) — New UUID v4 per generation. Keep it unchanged for retries. **Response `200`** Structure: `AgentPrompt`. - `id` (string) — Persistent prompt ID. Use GET /api/prompts/:id to reopen for free. - `saved` (bool) — True only after authorization and durable storage. - `license` (object) — id, version, domain and terms. Preserve the complete prompt text and license; use only for this domain. - `selector` (object) — Source, scope, language and finding selector. - `created_at` (string) — When this saved text was prepared. - `prompt` (string) — Text prepared from saved evidence, with selected observed field values, suggested changes and a verification request (POST /api/audit with compare_with and the same owner). Resource samples can be incomplete. No external AI call or new collection. This does not apply a code change. - `audit_id` (string, may be null) — Owned audit ID for page prompts. - `source` (string, may be null) — domain, weekly or search_console for project prompts. - `resource_id` (string, may be null) — Owned tab or site ID for project prompts. - `report_id` (string, may be null) — Saved weekly report ID, when applicable. - `check_ids` (string[]) — Checks included in the prompt. - `request_id` (string) — Client UUID v4 used to prevent a repeat debit. - `usage` (object) — units, via (free, plan, saved or payment method) and repeated. Reopening uses zero units. - `quota` (PromptQuota, may be null) — Updated allowance after generation; omitted on free reads. → see `PromptQuota` under **Structures**. - `_links` (object) — Absolute quota and source URLs; audit is retained for page prompts. **Errors** - `400` — Invalid body. - `401` — Authentication required or session ended. - `402` — Allowance spent; current quote and payment options. - `403` — Cookie writes require the same Origin and X-CSRF-Token. - `404` — Audit not found for this owner. - `409` — No eligible observed findings. Passing and unverified checks do not generate a prompt or charge. - `413` — Request or prompt too large. - `422` — The request_id was already used with different inputs. - `429` — Hourly ceiling reached. - `503` — Prompt service unavailable. Preserve request_id when retrying. **Example** ```sh curl -s "https://pageaudit.online/api/audits/$AUDIT/prompts" -H "X-Guest-Token: $PA" -H "Content-Type: application/json" -d '{"scope":"full","language":"en","request_id":"bbff3661-444a-42ce-ae53-6c25715a03f7"}' ``` ### `GET /api/audits/:id/prompts` List the saved prompts of an audit report, without generating or paying. At most 100 saved rows per page, plus up to three earlier free audit receipts. Follow _links.next. A legacy receipt has id=null and legacy=true; the matching generation recovers it without a debit. The result belongs to the authenticated owner and active organization. - **URL:** `https://pageaudit.online/api/audits/:id/prompts` - **Auth:** `guest` — Guest token (`POST /api/guest`) in `X-Guest-Token: pa_…`, `Authorization: Bearer pa_…` or `?guest_token=pa_…`. Only a token this site issued is accepted. A signed-in account (cookie) also works and takes precedence; after the claim the token owns nothing. An agent without an account can send the wallet credential instead (`Authorization: Bearer mmw_…`, from `POST /api/auth/wallet/agent/start`): the wallet owns tabs and audits like a guest, as `x402:
`, and they move to the account it is linked to. **Path parameters** - `id` (string, required) — Owned source ID. **Query** - `language` (string) — Prompt language: en (default) for English or pt for Portuguese. - `after` (string) — Cursor from _links.next of the preceding page. **Response `200`** - `items` (object[]) — id, selector, license.domain and created_at. Text is read separately. - `next` (string, may be null) — Next cursor or null. - `_links` (object) — Absolute next URL or null. **Errors** - `400` — Invalid language, source, report_id or cursor. - `401` — Authentication required. - `404` — Owned audit, tab, site or report not found. - `503` — Storage unavailable. **Example** ```sh curl -s "https://pageaudit.online/api/audits/$AUDIT/prompts?language=en" -H "X-Guest-Token: $PA" ``` ## Structures ### `Audit` The report of one audit: score, findings and everything observed on the page. - `id` (string, may be null) — ID of the stored audit; `null` when the database was unavailable. - `score` (int) — 0–100 for measured checks: error -18, warn -8, info 0. Not a security/accessibility certification. Older saved scores keep their original weights. - `issues` (Achado[]) — Everything found, from most to least severe. → see `Achado` under **Structures**. - `summary` (ResumoPagina) — What the page declares: title, meta, canonical, OG, headings, links… → see `ResumoPagina` under **Structures**. - `counts` (ContagemAchados) — How many findings of each severity. → see `ContagemAchados` under **Structures**. - `headers` (object) — Every header of the target's response. `Set-Cookie` is removed on purpose: it is a third party's credential. - `htmlTruncated` (bool) — `true` when the page passed 2 MB and was read only that far. - `jsonLd` (object[]) — The raw JSON-LD blocks, as they were on the page. - `jsonLdStored` (int) — How many blocks survived the size cap; compare with `summary.jsonLdBlocks`. - `truncated` (string[]) — What was cut and why: `jsonld_size`, `jsonld_nodes_over_50`, `result_size`. Empty means nothing cut. - `comparison` (Comparacao, optional) — Only with `compare_with`: what changed from that audit to this one, by finding code. → see `Comparacao` under **Structures**. - `quota` (CotaAudit) — How much is still free and what it costs past that. → see `CotaAudit` under **Structures**. - `_links` (LinksAudit) — This audit, prompt generation, sharing and the API index. → see `LinksAudit` under **Structures**. ### `AuditGravado` The same report re-read from the database. It has no `quota` and no `_links` (it is a read, not a run) and gains the date and the share slug. - `audit_id` (string) — ID of the audit. - `url` (string) — Final audited URL, after following the redirects. - `score` (int) — Score from 0 to 100. - `summary` (ResumoPagina, may be null) — What the page declared at the time of the run. → see `ResumoPagina` under **Structures**. - `counts` (ContagemAchados) — How many findings of each severity. → see `ContagemAchados` under **Structures**. - `issues` (Achado[]) — Everything found in that run. → see `Achado` under **Structures**. - `jsonLd` (object[]) — The raw JSON-LD blocks stored. - `headers` (object) — Headers of the target's response, as they were in the run. - `truncated` (string[]) — What was cut by size when storing. - `share_slug` (string, may be null) — Public slug, if this audit was shared. - `created_at` (string) — When the run happened (UTC). ### `Compartilhamento` The result of publishing an audit under a non-enumerable slug. - `ok` (bool) — Always `true`. - `shared` (bool) — Whether the audit is published at the end of the call. - `slug` (string) — Public, non-enumerable slug. - `path` (string) — Path of the report's HTML page. - `badge` (string) — Path of the score badge SVG. - `_links` (object) — Report, JSON and badge, as absolute URLs. ### `DependencyInventory` - `audit_id` (string) — Owned audit ID. - `page_target` (object) — The audited host whose own DNS/CNAME is also covered by a paid page watch. - `inventory` (object) — items, total and next. Each item names the host, relationship, discovery page, observation date and HTML/browser evidence. next continues the complete inventory. - `coverage` (string) — observed_references, no_external_reference or not_collected. A browser test observes only its page load; it does not exercise every user flow. - `monitoring` (object, may be null) — enabled, active, checked_at, next_check_at, sources, working, history and history_next. Sources retain their own coverage, source URL, dates and gaps. - `included_in_active_watch_plan` (bool, may be null) — True when current paid watch rights include the dependency checks. Null means rights could not be read; it is not permission. - `_links` (object) — Audit, monitor, domain and existing watch plans. ### `AgentPrompt` - `id` (string) — Persistent prompt ID. Use GET /api/prompts/:id to reopen for free. - `saved` (bool) — True only after authorization and durable storage. - `license` (object) — id, version, domain and terms. Preserve the complete prompt text and license; use only for this domain. - `selector` (object) — Source, scope, language and finding selector. - `created_at` (string) — When this saved text was prepared. - `prompt` (string) — Text prepared from saved evidence, with selected observed field values, suggested changes and a verification request (POST /api/audit with compare_with and the same owner). Resource samples can be incomplete. No external AI call or new collection. This does not apply a code change. - `audit_id` (string, may be null) — Owned audit ID for page prompts. - `source` (string, may be null) — domain, weekly or search_console for project prompts. - `resource_id` (string, may be null) — Owned tab or site ID for project prompts. - `report_id` (string, may be null) — Saved weekly report ID, when applicable. - `check_ids` (string[]) — Checks included in the prompt. - `request_id` (string) — Client UUID v4 used to prevent a repeat debit. - `usage` (object) — units, via (free, plan, saved or payment method) and repeated. Reopening uses zero units. - `quota` (PromptQuota, may be null) — Updated allowance after generation; omitted on free reads. → see `PromptQuota` under **Structures**. - `_links` (object) — Absolute quota and source URLs; audit is retained for page prompts. ### `LabTeste` One lab test (Google PageSpeed Insights running Lighthouse). Does not change the audit score. - `status` (string) — `running`, `ok` or `error`. - `strategy` (string, optional) — `mobile` or `desktop`. - `startedAt` (string, optional, may be null) — When a running test started (ISO-8601). - `fetchedAt` (string, optional) — When Lighthouse loaded the page. - `lighthouseVersion` (string, optional, may be null) — Lighthouse version used by Google. - `scores` (object, optional) — `performance`, `accessibility`, `bestPractices`, `seo`, 0–100. - `metrics` (object, optional) — `lcpMs`, `fcpMs`, `tbtMs`, `cls`, `siMs`, `ttfbMs`. - `opportunities` (object[], optional) — Up to 6 biggest savings: `id`, `title`, `displayValue`, `savingsMs`. - `failing` (object[], optional) — Up to 12 failed accessibility, best-practice and SEO audits: `category`, `id`, `title`. - `message` (string, optional) — Why the test failed (`status: error`). ### `Achado` A problem (or a pass) found on the page. - `severity` (string) — Severity of the finding. - `code` (string) — Stable check code, e.g. `title_missing`. It is what you filter by. - `message` (string) — The finding in one sentence, ready to show a person. ### `ResumoPagina` Everything the page declares about itself. It is the most consulted object of the API. - `finalUrl` (string) — URL after following every redirect. - `status` (int) — Final HTTP status of the target. - `contentType` (string, may be null) — Content-Type of the final response. - `title` (string, may be null) — Content of ``. - `metaDescription` (string, may be null) — Content of `<meta name=description>`. - `canonical` (string, may be null) — Canonical URL declared by the page. - `robots` (string, may be null) — Content of `<meta name=robots>`. - `viewport` (string, may be null) — Content of `<meta name=viewport>`. - `charset` (string, may be null) — Declared encoding. - `lang` (string, may be null) — Language declared in `<html lang>`. - `favicon` (string, may be null) — URL of the favicon found. - `faviconSource` (string, may be null) — How the favicon was found: declared or by the default path. - `h1s` (string[]) — Every `<h1>` on the page, in order. - `openGraph` (object) — The `og:*` tags found, key by key. - `twitter` (object) — The `twitter:*` tags found. - `jsonLdCount` (int) — How many JSON-LD nodes the page had. - `jsonLdBlocks` (int) — How many `<script type=application/ld+json>` blocks existed. - `jsonLdErrors` (int, optional) — Invalid JSON syntax or non-object root values; not full JSON-LD/schema.org validation. - `jsonLdDropped` (bool) — `true` when nodes were dropped for passing the cap. - `jsonLdTypes` (string[]) — The `@type`s found, e.g. `Organization`, `WebSite`. - `images` (object) — Image count and how many have no `alt`. - `links` (object) — Count of internal, external and text-less links. - `words` (int) — Words in the visible content. - `hreflang` (object[]) — The declared language alternates. - `legacy` (object) — Old markup still present (e.g. `<font>`, layout tables). - `redirects` (object[]) — The redirect chain followed to the final URL. - `robotsTxt` (RobotsTxt, may be null) — The origin's `robots.txt`: status, sitemaps and each crawler's decision for this URL. → see `RobotsTxt` under **Structures**. - `sitemap` (object) — Whether the URL appears in the sitemap the origin declares. - `discovery` (Discovery, optional, may be null) — Selected discovery and delivery checks; optional files missing do not lower the score. Up to 15 additional GETs, concurrency 2, 8s total deadline and 64 KiB per text body. → see `Discovery` under **Structures**. - `security` (object, optional) — HTTPS, response headers, subresource integrity, mixed content, visible library versions and form destinations. - `performance` (object, optional) — HTTP/3 advertisement, third-party response probes, render blocking, image loading and CAPTCHA signals. - `xRobotsTag` (string, optional, may be null) — The `X-Robots-Tag` response header, raw. A noindex here (general, googlebot or bingbot) raises the same `noindex` finding as the meta tag. - `canonicalHeader` (string, optional, may be null) — Canonical declared in the HTTP `Link` header (`rel="canonical"`), absolute. Differing from the HTML one raises `canonical_conflict`. - `timing` (object, optional, may be null) — `responseMs`: time until the headers of the final response, redirects included, measured from our server. Over 1500 ms raises `slow_response` (info). - `headings` (object, optional) — `order`: heading levels in document order (up to 100); `skips`: pairs where a level was jumped, e.g. `[2, 4]`. - `scripts` (object, optional) — `total` script tags and `emptyRoot`: the id of an empty app root (`root`, `__next`…) when the HTML is a JavaScript shell. - `crux` (Crux, optional, may be null) — Real-user Core Web Vitals from the Chrome UX Report. → see `Crux` under **Structures**. - `lab` (object, optional) — On-demand lab tests (`mobile`, `desktop`), each a `LabTeste`. Absent until one is run with `POST /api/audits/:id/lab`. ### `ContagemAchados` How many findings of each severity, in the summary form that fits a badge. - `errors` (int) — Serious findings. - `warnings` (int) — Findings that deserve attention. - `info` (int) — Observations without severity. - `categories` (ContagemCategorias, optional) — Security and performance findings for dedicated workspace badges. → see `ContagemCategorias` under **Structures**. ### `Comparacao` This audit compared against a base audit of the same owner (a deploy preview against production, for example). Findings are compared by code, never by message, as in the daily watch. - `baseline` (object) — `id` and `url` of the base audit. - `score` (int, may be null) — Point delta, signed (positive means this page scored better). - `from` (int, may be null) — Score of the base audit. - `to` (int, may be null) — Score of this audit. - `broke` (object[]) — Findings only in this audit, each with `code`, `severity` and `message`. - `fixed` (object[]) — Findings only in the base audit, in the same shape. - `regression` (bool) — `true` when the score dropped or a new `error` or `warn` finding appeared. A new `info` alone is not one. ### `CotaAudit` How much is still free and what it costs past that. - `free_per_day` (int) — Free audits per UTC day, per account or anonymous network. - `price_usd` (number) — Price of an audit beyond the allowance, in USD. ### `LinksAudit` Addresses of the audit just created. Without a stored `id`, only `api_index` comes. - `self` (string, optional) — This audit, to re-read without re-auditing. - `prompts` (string, may be null) — `POST /api/audits/:id/prompts`: generate correction steps within the prompt allowance or paid usage. - `share` (string, optional) — Where to publish this audit under a public slug. - `api_index` (string) — Self-describing API index. ### `PromptQuota` - `free` (object) — limit, used, remaining, scope (account or network), resets_at=null. Three lifetime units; no daily reset. - `plan` (object, may be null) — Active PageAudit plan: id, valid_until and included=true. Null without one. - `unit_price_usd` (number) — Price of one extra prompt unit in USD. - `full_units` (int) — A full prompt uses three units. - `plans_url` (string) — Plan discovery URL. - `credit_url` (string) — Shared prepaid credit URL. ### `RobotsTxt` The origin's robots.txt as fetched for the audit (up to 64 KiB, 3 redirects, 8 s). - `url` (string) — Where it was fetched from, after redirects. - `ok` (bool) — `true` when a text robots.txt was read. - `status` (int) — HTTP status; 0 when the fetch failed. - `error` (string, optional) — Why it was not read (`HTTP 404`, `robots.txt served as HTML`…). - `sitemaps` (string[], optional) — Declared `Sitemap:` lines (up to 20). - `userAgents` (string[], optional) — User-agent names that have groups. - `disallowAll` (bool, optional) — `true` when the `*` group has `Disallow: /`. - `access` (AcessoRobos, optional) — Each crawler's decision for this URL. Absent in older reports and when the fetch failed. → see `AcessoRobos` under **Structures**. ### `Discovery` Five fixed probes plus well-known extras only when the page declares them or matches their function. Absent in older reports; rerun to measure. No recursive crawling. - `llms` (DiscoveryCheck) — Root llms.txt or the most specific same-origin describedby guide found on the page. → see `DiscoveryCheck` under **Structures**. - `security` (DiscoveryCheck) — /.well-known/security.txt: selected RFC 9116 checks. → see `DiscoveryCheck` under **Structures**. - `apiCatalog` (DiscoveryCheck) — /.well-known/api-catalog: selected RFC 9727 Linkset checks. → see `DiscoveryCheck` under **Structures**. - `changePassword` (DiscoveryCheck, optional) — /.well-known/change-password when the page uses a password field. Redirect only; the form is never submitted. → see `DiscoveryCheck` under **Structures**. - `assetlinks` (DiscoveryCheck, optional) — /.well-known/assetlinks.json when Android app association is indicated. App binary is not compared. → see `DiscoveryCheck` under **Structures**. - `appleApp` (DiscoveryCheck, optional) — /.well-known/apple-app-site-association when Apple associated domains are indicated. No redirects. Entitlements are not checked. → see `DiscoveryCheck` under **Structures**. - `oauthResource` (DiscoveryCheck, optional) — OAuth protected resource metadata when WWW-Authenticate, MCP or the well-known URL is declared. Authorization servers are not fetched. → see `DiscoveryCheck` under **Structures**. - `oauthServer` (DiscoveryCheck, optional) — /.well-known/oauth-authorization-server when this host declares itself as the issuer. → see `DiscoveryCheck` under **Structures**. - `openidConfig` (DiscoveryCheck, optional) — /.well-known/openid-configuration when this host declares OpenID Provider discovery. → see `DiscoveryCheck` under **Structures**. - `agentCard` (DiscoveryCheck, optional) — A2A Agent Card when declared. MCP identity JSON at this URL is not an A2A pass. → see `DiscoveryCheck` under **Structures**. - `webauthn` (DiscoveryCheck, optional) — /.well-known/webauthn when related origins are declared. Same-host passkeys do not need it. → see `DiscoveryCheck` under **Structures**. - `favicon` (DiscoveryCheck) — HTTP status/media type of the selected favicon; no image decoding. → see `DiscoveryCheck` under **Structures**. - `notFound` (DiscoveryCheck) — One randomly generated missing path, checking for 404/410 or a possible soft 404. → see `DiscoveryCheck` under **Structures**. ### `Crux` Chrome UX Report: p75 of real Chrome users over 28 days, for the URL or, without URL data, the origin. Queried from Google, not from the target. - `status` (string) — `ok`, `no_data` (too little traffic), `unverified` (quota, timeout) or `not_configured`. - `source` (string) — Always `chrome-ux-report`. - `scope` (string, optional) — `url` or `origin`. - `key` (string, optional, may be null) — The URL or origin the data belongs to. - `period` (object, optional) — `first` and `last` day of the collection window. - `metrics` (object, optional) — `lcp`, `inp`, `cls`, `fcp`, `ttfb`, each with `p75`, `rating` (`good`, `needs_improvement`, `poor`) and the share of visits `good`/`needsImprovement`/`poor`. - `assessment` (string, optional, may be null) — Core Web Vitals over LCP, INP and CLS: `good`, `needs_improvement` (raises `cwv_needs_improvement`, info) or `poor` (raises `cwv_poor`, warn). - `check` (object) — `status` (`pass`, `warn`, `info` or `unverified`) and `message`, the text the report shows. ### `ContagemCategorias` Counts for the audit areas shown as first-class workspace sections. - `security` (ContagemCategoria, may be null) — Passive security findings. Null when the saved audit predates these checks. → see `ContagemCategoria` under **Structures**. - `performance` (ContagemCategoria, may be null) — Delivery and loading findings. Null when the saved audit predates these checks. → see `ContagemCategoria` under **Structures**. ### `AcessoRobos` Per-crawler decision for THIS URL from the origin's robots.txt (RFC 9309 groups, longest match wins, Allow wins a tie), inside `summary.robotsTxt.access`. Absent when robots.txt could not be fetched. - `source` (string) — `robots.txt`, `no robots.txt` (4xx: all allowed) or `robots.txt error` (5xx/429: all disallowed). - `path` (string) — Path and query that were evaluated. - `bots` (object[]) — `token`, `owner`, `use` (`search`, `ai_search`, `ai_user`, `ai_training`), `allowed`, the deciding `rule`, `group` (`own`, `*`, `none`) and `mayIgnore` for user-request agents that say they may ignore robots.txt. - `contentSignal` (object, may be null) — Declared Content-Signal (`search`, `ai-input`, `ai-train` → yes/no). - `checks` (object) — `search`, `aiSearch` and `aiTraining`, each with `status` and `message`. Search blocked raises `robots_blocks_search` (warn); AI search blocked raises `ai_crawlers_blocked` (info). ### `DiscoveryCheck` A measured observation with scope and reference. pass is limited to the checks stated in message. - `status` (string) — pass: measured checks passed; warn: issue; info: optional resource absent; unverified: blocked, incomplete, timeout or unavailable. - `url` (string, may be null) — Final public resource URL; null when it cannot safely be probed. - `httpStatus` (int) — Final observed HTTP status, or 0 if unavailable. - `contentType` (string) — Observed Content-Type, or empty when unavailable. - `message` (string) — Measured evidence and limitations; plain text, never instructions to execute. - `phrases` (object[], optional) — The sentences of message, each { key, vars? }, so the report can write them in the page language. message stays the English text. Absent in older reports. - `reference` (string) — Fixed authoritative reference for the check. ### `ContagemCategoria` Finding counts for one audit area. - `errors` (int) — Serious findings. - `warnings` (int) — Findings that deserve attention. - `info` (int) — Observations without severity.