{"openapi":"3.1.0","info":{"title":"turbometrics API","version":"1.0.0","description":"REST API for programmatic access to scans, domains, alerts, live data (RUM) and changes. Authentication works via bearer tokens, which you manage under Account → API & apps. The API always responds with JSON.","contact":{"name":"turbometrics","url":"https://www.turbometrics.de"}},"externalDocs":{"url":"https://www.turbometrics.de/docs/api"},"servers":[{"url":"https://turbometrics.io/api/v1"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Account","description":"Your account, plan and API usage.","x-key":"account"},{"name":"Scans","description":"Start scans, read results, share and keep them.","x-key":"scans"},{"name":"Domains","description":"Monitored scan targets and their score history.","x-key":"domains"},{"name":"Alerts","description":"Alerts from monitoring.","x-key":"alerts"},{"name":"Live data (RUM)","description":"Real user monitoring of your websites. Starter plan and above.","x-key":"rum"},{"name":"Changes","description":"Detected and reported changes, diagnoses and the WordPress inventory.","x-key":"changes"}],"paths":{"/me":{"get":{"operationId":"getAccount","summary":"Account and API usage","description":"Returns account information and the current API usage. `api_daily_limit` and `limit_today` are `0` for plans without a daily limit.","tags":["Account"],"x-rate-limit":"Counts toward the daily request limit of your plan.","responses":{"200":{"description":"Account with plan, usage today and live data quota.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Account"}}},"example":{"data":{"id":42,"name":"Jane Doe","email":"jane@example.com","plan":{"key":"starter","label":"Starter","api_enabled":true,"api_daily_limit":1000},"api_usage":{"used_today":12,"limit_today":1000,"reset_at":"2026-04-01T23:59:59+02:00"},"rum":{"enabled":true,"pageviews_this_month":988,"monthly_limit":1000000,"sites_count":2}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}}},"/token-info":{"get":{"operationId":"getTokenInfo","summary":"Check a token","description":"Tells whether a bearer token is still valid. The MCP server asks this before each request; it works without a paid plan check.","tags":["Account"],"x-rate-limit":"Does not count toward the daily request limit. Limited to 120 requests per minute for each user.","responses":{"200":{"description":"The token is valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenInfo"},"example":{"valid":true,"user_id":42}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}}},"/scans":{"get":{"operationId":"listScans","summary":"List scans","description":"Returns a paginated list of your scans.","tags":["Scans"],"x-rate-limit":"Counts toward the daily request limit of your plan.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page"},{"name":"domain","in":"query","description":"Filters by URL content.","schema":{"type":"string"}},{"name":"status","in":"query","description":"`queued`, `running`, `finished`, `failed`.","schema":{"type":"string","enum":["queued","running","finished","failed"]}}],"responses":{"200":{"description":"List of scans with page information.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ScanListItem"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}},"example":{"data":[{"public_id":"01KN3X...","report_url":"https://turbometrics.io/scan/01KN3X...","status":"finished","submitted_url":"https://example.com/","region":"de-fsn1","auth_type":null,"requested_at":"2026-03-31T00:29:00+02:00","finished_at":"2026-03-31T00:29:45+02:00","result":{"scores":{"overall":87,"speed":100,"images":93,"caching":89,"wordpress":100,"technical":70}}}],"meta":{"current_page":1,"per_page":10,"total":143,"last_page":15}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}},"post":{"operationId":"createScan","summary":"Start a scan","description":"Starts a new scan. The scan is processed asynchronously; call `GET /scans/{id}` to check the status.\n\nWithout `force: true`, an existing result for the same URL is returned if it is less than 24 hours old. The response then contains `\"cached\": true` and HTTP `200` instead of `202`.\n\nScans with `auth` require the Pro plan, are always private, and credentials are never returned (`auth_type` only indicates the kind).","tags":["Scans"],"x-rate-limit":"Counts toward the daily request limit of your plan.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","maxLength":2048,"description":"The URL to scan."},"region":{"type":"string","description":"Scan location (e.g. `de-fsn1`, `de-nbg1`), from the locations of your plan."},"public":{"type":"boolean","default":false,"description":"Publicly visible (default: false)."},"force":{"type":"boolean","default":false,"description":"Force a fresh scan even if a recent result exists (default: false)."},"keep":{"type":"boolean","default":false,"description":"Keep the scan permanently: it is not deleted when your history period ends, and shared links stay valid. Counts against your plan's quota (default: false)."},"auth":{"type":"object","description":"Authentication for protected pages (Pro plan and above).","required":["type"],"properties":{"type":{"type":"string","enum":["basic","header"],"description":"`basic` or `header`."},"username":{"type":"string","description":"User name (only with `type: basic`)."},"password":{"type":"string","description":"Password (only with `type: basic`)."},"header_name":{"type":"string","description":"Name of the HTTP header (only with `type: header`)."},"header_value":{"type":"string","description":"Value of the HTTP header (only with `type: header`)."}}}}},"example":{"url":"https://example.com","force":true}}}},"responses":{"200":{"description":"Existing result from the last 24 hours (`cached: true`).","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ScanCreated"}}},"example":{"data":{"id":"01KN3X...","status":"finished","url":"https://example.com/","cached":true,"auth_type":null,"keep_forever":false}}}}},"202":{"description":"New scan queued.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ScanCreated"}}},"example":{"data":{"id":"01KN3X...","status":"queued","url":"https://example.com/","cached":false,"auth_type":null,"keep_forever":false}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/scans/{id}":{"get":{"operationId":"getScan","summary":"Get a scan","description":"Returns the details of a single scan.\n\n`report_url` points to the report in the web interface; for private scans it only works for the signed-in owner. To pass a report on, use `share_url`.\n\nWhile a scan is queued or running, `progress` shows its stage (`queued`, `preflight`, `html`, `runtime_desktop`, `runtime_mobile`, `assets` or `null`). It is `null` once the scan has finished or failed. Poll every few seconds and do not rely on a fixed order of the stages.\n\n`result.google_fonts.status` is `direct`, `embed_only`, `none` or `unknown`; it is `null` for scans created before the field existed. `result.preflight.page_cache_status` is `hit` or `miss` (scans before 18 Nov 2026 do not have the field).","tags":["Scans"],"x-rate-limit":"Counts toward the daily request limit of your plan.","parameters":[{"$ref":"#/components/parameters/scanId"},{"$ref":"#/components/parameters/locale"}],"responses":{"200":{"description":"The scan, with `result` once it has finished.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Scan"},"locale":{"type":"string","enum":["de","en"]}}},"example":{"data":{"public_id":"01KN3X...","report_url":"https://turbometrics.io/scan/01KN3X...","status":"finished","is_public":false,"submitted_url":"https://example.com/","region":"de-fsn1","auth_type":null,"progress":null,"share_enabled":false,"share_url":null,"requested_at":"2026-03-31T00:29:00+02:00","finished_at":"2026-03-31T00:29:45+02:00","result":{"final_url":"https://example.com/","final_host":"example.com","http_status":200,"scores":{"overall":87,"speed":100,"images":93,"caching":89,"wordpress":100,"technical":70},"summary_short":"The page loads quickly, but has room for improvement in technical metrics.","metrics":{"ttfb_ms":182,"desktop":{"fcp_ms":412,"lcp_ms":830,"cls":0.02,"tbt_ms":0,"request_count":34,"total_bytes":512000},"mobile":{"fcp_ms":980,"lcp_ms":2100,"cls":0.04,"tbt_ms":120,"request_count":34,"total_bytes":512000}},"findings":[{"category":"images","code":"unoptimized_images","severity":"warning","title":"Images not optimised","message":"3 images could be smaller.","recommendation":"Use WebP and compress images before upload."}],"google_fonts":{"status":"none","fonts":[]}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/scans/{id}/share/enable":{"post":{"operationId":"enableScanShare","summary":"Enable share link","description":"Enables the share link for a scan and returns the public share URL. Requires at least the Starter plan. The token stays stable: enabling it again after disabling it uses the same URL.","tags":["Scans"],"x-rate-limit":"Counts toward the daily request limit of your plan.","parameters":[{"$ref":"#/components/parameters/scanId"}],"responses":{"200":{"description":"Share link enabled.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ShareState"}}},"example":{"data":{"share_enabled":true,"share_url":"https://turbometrics.io/s/abc123xyz012"}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/scans/{id}/share/disable":{"post":{"operationId":"disableScanShare","summary":"Disable share link","description":"Disables the share link. The token is kept internally, so reactivating it later delivers the same URL.","tags":["Scans"],"x-rate-limit":"Counts toward the daily request limit of your plan.","parameters":[{"$ref":"#/components/parameters/scanId"}],"responses":{"200":{"description":"Share link disabled.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ShareState"}}},"example":{"data":{"share_enabled":false}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/scans/{id}/keep/enable":{"post":{"operationId":"enableScanKeep","summary":"Keep a scan permanently","description":"Marks a scan as kept permanently: it is no longer deleted when your plan's history period ends, and an enabled share link stays valid. Quota by plan: Free 0, Starter 3, Pro 10, Agency 50. If the quota is used up, the API answers `403` with an explanation. Enabling a scan that is already marked returns `200` (idempotent).","tags":["Scans"],"x-rate-limit":"Counts toward the daily request limit of your plan.","parameters":[{"$ref":"#/components/parameters/scanId"},{"$ref":"#/components/parameters/locale"}],"responses":{"200":{"description":"Scan is kept permanently.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/KeepState"}}},"example":{"data":{"keep_forever":true}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/scans/{id}/keep/disable":{"post":{"operationId":"disableScanKeep","summary":"Stop keeping a scan","description":"Removes the mark. The scan is subject to your plan's history period again, and its slot in the quota is freed.","tags":["Scans"],"x-rate-limit":"Counts toward the daily request limit of your plan.","parameters":[{"$ref":"#/components/parameters/scanId"}],"responses":{"200":{"description":"Mark removed.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/KeepState"}}},"example":{"data":{"keep_forever":false}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/domains":{"get":{"operationId":"listDomains","summary":"List monitored domains","description":"Returns a paginated list of your monitored scan targets.","tags":["Domains"],"x-rate-limit":"Counts toward the daily request limit of your plan.","parameters":[{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"List of scan targets with page information.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Domain"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}},"example":{"data":[{"id":7,"host":"example.com","url":"https://example.com/","schedule":"daily","is_active":true,"last_dispatched_at":"2026-03-31T08:00:00+02:00"}],"meta":{"current_page":1,"per_page":20,"total":5,"last_page":1}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}}},"/domains/{id}/history":{"get":{"operationId":"getDomainHistory","summary":"Score history of a domain","description":"Returns the last 30 finished scans for a scan target.","tags":["Domains"],"x-rate-limit":"Counts toward the daily request limit of your plan.","parameters":[{"name":"id","in":"path","required":true,"description":"Numeric ID from `GET /domains`.","schema":{"type":"integer"}}],"responses":{"200":{"description":"Score, time and location of the last 30 finished scans.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DomainHistoryEntry"}}}},"example":{"data":[{"score":87,"created_at":"2026-03-31T08:01:23+02:00","region":"de-fsn1"},{"score":84,"created_at":"2026-03-30T08:00:55+02:00","region":"de-fsn1"}]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/alerts":{"get":{"operationId":"listAlerts","summary":"List alerts","description":"Returns a paginated list of your alerts.\n\n`diagnosis` is `null`, or `{sentence, confidence, attribution_id}` when the decline behind the alert can be linked to a change (details via `GET /attributions`).","tags":["Alerts"],"x-rate-limit":"Counts toward the daily request limit of your plan.","parameters":[{"name":"status","in":"query","description":"`open` (open, not dismissed), `resolved`, `unread`.","schema":{"type":"string","enum":["open","resolved","unread"]}},{"name":"severity","in":"query","description":"`critical`, `warning`.","schema":{"type":"string","enum":["critical","warning"]}},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/locale"}],"responses":{"200":{"description":"List of alerts with page information.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Alert"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"},"locale":{"type":"string","enum":["de","en"]}}},"example":{"data":[{"id":123,"type":"score_below_threshold","severity":"critical","title":"Score below threshold","message":"Score 34 below the critical threshold of 60.","is_read":false,"is_dismissed":false,"url":"https://example.com/","host":"example.com","scan_id":"01KN3X...","diagnosis":null,"created_at":"2026-03-31T08:01:23+02:00","resolved_at":null}],"locale":"en","meta":{"current_page":1,"per_page":20,"total":3,"last_page":1}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}}},"/alerts/{id}":{"get":{"operationId":"getAlert","summary":"Get an alert","description":"Returns a single alert, with the same structure as an element from `GET /alerts`.","tags":["Alerts"],"x-rate-limit":"Counts toward the daily request limit of your plan.","parameters":[{"name":"id","in":"path","required":true,"description":"Alert ID.","schema":{"type":"integer"}},{"$ref":"#/components/parameters/locale"}],"responses":{"200":{"description":"The alert.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Alert"},"locale":{"type":"string","enum":["de","en"]}}},"example":{"data":{"id":123,"type":"score_below_threshold","severity":"critical","title":"Score below threshold","message":"Score 34 below the critical threshold of 60.","is_read":false,"is_dismissed":false,"url":"https://example.com/","host":"example.com","scan_id":"01KN3X...","diagnosis":null,"created_at":"2026-03-31T08:01:23+02:00","resolved_at":null}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/alerts/mark-read":{"post":{"operationId":"markAlertsRead","summary":"Mark alerts as read","description":"Marks alerts as read. Without `ids`, all unread alerts are marked.","tags":["Alerts"],"x-rate-limit":"Counts toward the daily request limit of your plan.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"integer"},"description":"Alert IDs; missing → all."}}},"example":{"ids":[123,124]}}}},"responses":{"200":{"description":"Number of alerts marked as read.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/MarkReadResult"}}},"example":{"data":{"marked_read":5}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/rum/sites":{"get":{"operationId":"listRumSites","summary":"List live data websites","description":"Returns a paginated list of your live data websites. Starter plan and above only.","tags":["Live data (RUM)"],"x-rate-limit":"Counts toward the daily request limit. Reads from the official WordPress plugin (header `x-turbometrics-client: wordpress-plugin/<version>`) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"List of live data websites with page information.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RumSite"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}},"example":{"data":[{"id":1,"domain":"turbometrics.io","active":true,"embed_snippet":"<script src=\"https://turbometrics.io/tm.min.js\" data-site-id=\"...\" async></script>","pageviews_this_month":988,"monthly_limit":1000000,"created_at":"2026-04-01T00:00:00+02:00"}],"meta":{"current_page":1,"per_page":20,"total":2,"last_page":1}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}}},"/rum/sites/{id}":{"get":{"operationId":"getRumSite","summary":"Get a live data website","description":"Returns the details of a single live data website.","tags":["Live data (RUM)"],"x-rate-limit":"Counts toward the daily request limit of your plan.","parameters":[{"$ref":"#/components/parameters/rumSiteId"}],"responses":{"200":{"description":"The live data website.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/RumSite"}}},"example":{"data":{"id":1,"domain":"turbometrics.io","active":true,"embed_snippet":"<script src=\"https://turbometrics.io/tm.min.js\" data-site-id=\"...\" async></script>","pageviews_this_month":988,"monthly_limit":1000000,"created_at":"2026-04-01T00:00:00+02:00"}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/rum/sites/{id}/summary":{"get":{"operationId":"getRumSummary","summary":"Core Web Vitals summary","description":"Returns p75 values and the Core Web Vitals status for a website. `cwv_pass` is `true` when LCP, CLS and INP are within the target range and each has at least 20 measurements. With too little data, `cwv_pass` is `null` and `cwv_insufficient_data` is `true`.","tags":["Live data (RUM)"],"x-rate-limit":"Counts toward the daily request limit. Reads from the official WordPress plugin (header `x-turbometrics-client: wordpress-plugin/<version>`) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.","parameters":[{"$ref":"#/components/parameters/rumSiteId"},{"name":"period","in":"query","description":"`24h`, `7d`, `30d` (default: `24h`).","schema":{"type":"string","enum":["24h","7d","30d"],"default":"24h"}},{"$ref":"#/components/parameters/device"},{"name":"path","in":"query","description":"Only measurements of this exact path, e.g. `/pricing/` (must start with `/`, at most 2048 characters, otherwise `422`).","schema":{"type":"string","maxLength":2048,"pattern":"^/"}}],"responses":{"200":{"description":"p75 values per metric and the Core Web Vitals status.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/RumSummary"}}},"example":{"data":{"domain":"turbometrics.io","period":"24h","device":"all","path":null,"cwv_pass":true,"cwv_insufficient_data":false,"metrics":{"LCP":{"p75":226,"rating":"good","samples":127},"CLS":{"p75":0.0,"rating":"good","samples":12},"INP":{"p75":112,"rating":"good","samples":16},"FCP":{"p75":201,"rating":"good","samples":26},"TTFB":{"p75":143,"rating":"good","samples":27}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/rum/sites/{id}/history":{"get":{"operationId":"getRumHistory","summary":"Metric history","description":"Returns daily p75/p50 values for one metric as a time series.","tags":["Live data (RUM)"],"x-rate-limit":"Counts toward the daily request limit. Reads from the official WordPress plugin (header `x-turbometrics-client: wordpress-plugin/<version>`) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.","parameters":[{"$ref":"#/components/parameters/rumSiteId"},{"name":"metric","in":"query","required":true,"description":"`LCP`, `CLS`, `INP`, `FCP`, `TTFB`.","schema":{"type":"string","enum":["LCP","CLS","INP","FCP","TTFB"]}},{"name":"days","in":"query","description":"`7`, `30`, `90` (default: `30`).","schema":{"type":"integer","enum":[7,30,90],"default":30}},{"$ref":"#/components/parameters/device"}],"responses":{"200":{"description":"Daily values, newest first.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RumHistoryPoint"}},"meta":{"type":"object","properties":{"metric":{"type":"string"},"days":{"type":"integer"},"device":{"type":"string"}}}}},"example":{"data":[{"date":"2026-04-04","p75":226,"p50":180,"samples":127},{"date":"2026-04-03","p75":240,"p50":195,"samples":98}],"meta":{"metric":"LCP","days":30,"device":"all"}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/rum/sites/{id}/pages":{"get":{"operationId":"getRumPages","summary":"Slowest pages","description":"Returns the slowest pages by p75 for one metric.","tags":["Live data (RUM)"],"x-rate-limit":"Counts toward the daily request limit. Reads from the official WordPress plugin (header `x-turbometrics-client: wordpress-plugin/<version>`) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.","parameters":[{"$ref":"#/components/parameters/rumSiteId"},{"name":"metric","in":"query","description":"`LCP`, `INP`, `FCP`, `TTFB` (default: `LCP`).","schema":{"type":"string","enum":["LCP","INP","FCP","TTFB"],"default":"LCP"}},{"name":"period","in":"query","description":"`24h`, `7d` (default: `24h`).","schema":{"type":"string","enum":["24h","7d"],"default":"24h"}},{"name":"limit","in":"query","description":"1–100 (default: 25).","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"Pages sorted by p75.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RumPage"}},"meta":{"type":"object","properties":{"metric":{"type":"string"},"period":{"type":"string"}}}}},"example":{"data":[{"path":"/","p75":1437,"samples":3},{"path":"/pricing","p75":98,"samples":12}],"meta":{"metric":"LCP","period":"24h"}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/rum/sites/{id}/breakdown":{"get":{"operationId":"getRumBreakdown","summary":"Breakdown by origin","description":"Returns what slows down interactions (INP) and which JS errors occur, grouped by origin: plugin, theme, third party, WordPress core or your own site. `ready` is `false` while less than 80 % of the window was measured with the current snippet; `origins` is empty then. Values are cached for 5 minutes.","tags":["Live data (RUM)"],"x-rate-limit":"Counts toward the daily request limit. Reads from the official WordPress plugin (header `x-turbometrics-client: wordpress-plugin/<version>`) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.","parameters":[{"$ref":"#/components/parameters/rumSiteId"},{"name":"days","in":"query","description":"`7`, `28` (default: `7`).","schema":{"type":"integer","enum":[7,28],"default":7}}],"responses":{"200":{"description":"Origins with their share of slow interactions and JS errors.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/RumBreakdown"}}},"example":{"data":{"ready":true,"days":7,"origins":[{"type":"plugin","key":"elementor","label":"Elementor","inp_share":42.0,"inp_count":12,"js_error_share":3.1,"js_error_pages":17,"js_error_message":"Uncaught TypeError: Cannot read properties of null"}]}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/rum/sites/{id}/alerts":{"get":{"operationId":"listRumAlerts","summary":"Live data alerts","description":"Returns the configured alerts for a live data website. `status` is `active` (configured, never triggered), `triggered` or `resolved`.\n\n`diagnosis` is only filled while `triggered`, otherwise `null`.","tags":["Live data (RUM)"],"x-rate-limit":"Counts toward the daily request limit. Reads from the official WordPress plugin (header `x-turbometrics-client: wordpress-plugin/<version>`) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.","parameters":[{"$ref":"#/components/parameters/rumSiteId"}],"responses":{"200":{"description":"Configured alerts.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RumAlert"}},"locale":{"type":"string","enum":["de","en"]}}},"example":{"data":[{"id":209,"title":"turbometrics.io – Auto Alert","mode":"auto","metric":null,"threshold":null,"window_minutes":60,"min_samples":20,"consecutive_threshold":2,"status":"active","emailed_at":null,"resolved_at":null,"diagnosis":null,"created_at":"2026-04-05T10:00:00+02:00"}]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/changes":{"get":{"operationId":"listChanges","summary":"List changes","description":"Returns the detected and reported changes of one website (plugins, theme, WordPress and PHP versions, third-party scripts, CDN, server, deploys), newest first. All times are ISO 8601 in UTC. `precision` is `exact`, `day` or `between_scans` (`window_start` then marks the start of the window).\n\nA switch that the very next scan reverses within 72 hours is usually a detection artifact; both entries are left out unless you set `include_flaps=1`.","tags":["Changes"],"x-rate-limit":"Counts toward the daily request limit of your plan.","parameters":[{"$ref":"#/components/parameters/host"},{"name":"since","in":"query","description":"Only changes from this time on, ISO 8601; without an offset, UTC is assumed (default: the last 30 days; never earlier than your plan's history period).","schema":{"type":"string","format":"date-time"}},{"name":"kind","in":"query","description":"Only one kind of change, e.g. `deploy` or `plugin_updated`.","schema":{"type":"string","enum":["plugin_updated","plugin_added","plugin_removed","plugin_activated","plugin_deactivated","theme_updated","theme_switched","wordpress_updated","php_changed","third_party_added","third_party_removed","assets_changed","server_changed","cache_config_changed","deploy","custom","platform_updated","resource_broken","lcp_image_changed"]}},{"name":"limit","in":"query","description":"1 to 200 (default: 100).","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"include_flaps","in":"query","description":"`1` or `true` also returns switches that the next scan reversed again (default: hidden).","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Changes, newest first.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Change"}}}},"example":{"data":[{"id":4711,"host":"example.com","kind":"deploy","component":null,"from":null,"to":null,"occurred_at":"2026-11-12T09:30:00+00:00","window_start":null,"precision":"exact","sources":["api"],"label":"Release 2.4.0","external_ref":"a1b2c3d"}]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}},"post":{"operationId":"reportChanges","summary":"Report changes","description":"Reports changes yourself, for example a deploy. Reported changes trigger a free scan of up to 5 monitored URLs of the domain (the homepage if there are none), at the earliest 5 minutes after the last reported change, at most 6 rounds per domain and day. If a change was already detected by a scan, it is merged with your report. Control characters are removed from texts, and longer texts are shortened to the lengths given (except `external_ref`, which is rejected with `422` above 100 characters).","tags":["Changes"],"x-rate-limit":"Does not count toward the daily request limit. Limited to 120 requests per hour for each user and website and 60 per minute for each account.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["host","changes"],"properties":{"host":{"type":"string","description":"The website's host. It must belong to your account (a scan, a live data website or a domain), otherwise `422`."},"source":{"type":"string","enum":["api","wp_plugin","turbopress_cockpit"],"default":"api","description":"`api` (default), `wp_plugin` or `turbopress_cockpit`."},"changes":{"type":"array","minItems":1,"maxItems":50,"description":"1 to 50 entries.","items":{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["plugin_updated","plugin_added","plugin_removed","plugin_activated","plugin_deactivated","theme_updated","theme_switched","wordpress_updated","php_changed","third_party_added","third_party_removed","assets_changed","server_changed","cache_config_changed","deploy","custom","platform_updated","resource_broken","lcp_image_changed"],"description":"Kind of change."},"component":{"type":"string","maxLength":500,"description":"Affected component, e.g. a plugin slug (up to 100 characters)."},"from":{"type":"string","maxLength":500,"description":"Version or value before (up to 100 characters)."},"to":{"type":"string","maxLength":500,"description":"Version or value after (up to 100 characters)."},"occurred_at":{"type":"string","format":"date-time","description":"ISO 8601; without an offset, UTC is assumed. Default: now. At most 5 minutes in the future and at most 30 days back."},"label":{"type":"string","maxLength":500,"description":"Short description, e.g. a release name (up to 200 characters)."},"external_ref":{"type":"string","maxLength":100,"description":"Your own reference, e.g. a commit hash (up to 100 characters, longer is rejected with `422`)."},"meta":{"type":"object","description":"Further details, at most 2 KB as JSON."}}}}}},"example":{"host":"example.com","changes":[{"kind":"deploy","label":"Release 2.4.0","external_ref":"a1b2c3d","occurred_at":"2026-11-12T09:30:00Z","meta":{"url":"https://git.example.com/acme/shop/commit/a1b2c3d"}}]}}}},"responses":{"201":{"description":"The stored changes in the same format as `GET /changes`.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Change"}},"ignored":{"type":"string","enum":["foreign_installation"],"description":"Only present if the report came from a different installation of the WordPress plugin for the same website (for example a staging copy) and was held back: `foreign_installation`. The report is not stored and triggers no scan; `data` is empty."}}},"example":{"data":[{"id":4711,"host":"example.com","kind":"deploy","component":null,"from":null,"to":null,"occurred_at":"2026-11-12T09:30:00+00:00","window_start":null,"precision":"exact","sources":["api"],"label":"Release 2.4.0","external_ref":"a1b2c3d"}]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/inventory":{"post":{"operationId":"reportInventory","summary":"Report WordPress inventory","description":"Reports the current state of a WordPress site (versions, theme, plugins). turbometrics compares it with the last reported state and records the differences as changes; the first report only stores the state. Facts you leave out are not compared and stay unchanged.","tags":["Changes"],"x-rate-limit":"Does not count toward the daily request limit. Limited to 120 requests per hour for each user and website and 60 per minute for each account.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["host","source","facts"],"properties":{"host":{"type":"string","description":"The website's host (must belong to your account, otherwise `422`)."},"source":{"type":"string","enum":["wp_plugin","turbopress_inventory"],"description":"`wp_plugin` or `turbopress_inventory`."},"reported_at":{"type":"string","format":"date-time","description":"ISO 8601; without an offset, UTC is assumed. Default: now. At most 5 minutes in the future, at most 30 days back."},"facts":{"type":"object","description":"The reported state.","properties":{"wordpress":{"type":"string","description":"WordPress version."},"php":{"type":"string","description":"PHP version."},"theme":{"type":"string","description":"Slug of the active theme."},"page_cache":{"type":"boolean","description":"Whether a page cache is active."},"plugins":{"type":"array","maxItems":500,"items":{"type":"object","required":["slug"],"properties":{"slug":{"type":"string","maxLength":100},"version":{"type":"string","maxLength":100},"active":{"type":"boolean"}}},"description":"Up to 500 entries."},"themes":{"type":"array","maxItems":100,"items":{"type":"object","required":["slug"],"properties":{"slug":{"type":"string","maxLength":100},"version":{"type":"string","maxLength":100},"active":{"type":"boolean"}}},"description":"Up to 100 entries."}}}}},"example":{"host":"example.com","source":"turbopress_inventory","facts":{"wordpress":"6.6.2","php":"8.3.12","theme":"astra","plugins":[{"slug":"elementor","version":"3.25.1","active":true}],"themes":[{"slug":"astra","version":"4.8.1","active":true}]}}}}},"responses":{"200":{"description":"Changes found compared with the last report (empty on the first report).","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}}}},"ignored":{"type":"string","enum":["foreign_installation"],"description":"Only present if the report came from a different installation of the WordPress plugin for the same website (for example a staging copy) and was held back: `foreign_installation`. The report is not stored and triggers no scan; `data` is empty."}}},"example":{"data":{"changes":[]}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/attributions":{"get":{"operationId":"listAttributions","summary":"List diagnoses","description":"Returns the diagnoses of one website: declines in metrics that match a detected or reported change in time and in the measurements, newest first. Several declining metrics of the same event appear together under `metrics`. Diagnoses you dismissed never appear.\n\nCorrelation, not proof: whether the change is the cause is best checked with the before/after comparison of the two scans in `compare`. `confidence` is `high`, `medium` or `low`.","tags":["Changes"],"x-rate-limit":"Counts toward the daily request limit. Reads from the official WordPress plugin (header `x-turbometrics-client: wordpress-plugin/<version>`) do not count; they have their own limit of 300 requests per hour for each website and 3,000 per hour for each account.","parameters":[{"$ref":"#/components/parameters/host"},{"name":"since","in":"query","description":"Only events that started from this time on, ISO 8601; without an offset, UTC is assumed (default: the last 30 days; never earlier than your plan's history period).","schema":{"type":"string","format":"date-time"}},{"name":"status","in":"query","description":"`open` (the decline persists, default), `recovered` or `all`.","schema":{"type":"string","enum":["open","recovered","all"],"default":"open"}},{"$ref":"#/components/parameters/locale"}],"responses":{"200":{"description":"Diagnoses, newest first.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Attribution"}}}},"example":{"data":[{"id":812,"started_at":"2026-11-12T10:00:00+00:00","confidence":"high","status":"open","sentence":"Main content mobile 1.20 s → 2.80 s (+133%). Likely cause: Elementor updated (3.24.0 → 3.25.1).","metrics":[{"metric":"lcp","device":"mobile","before":1200,"after":2800,"change_pct":1.333},{"metric":"fcp","device":"mobile","before":900,"after":1300,"change_pct":0.444}],"suspects":[{"change_id":4711,"kind":"plugin_updated","component":"elementor","from":"3.24.0","to":"3.25.1","occurred_at":"2026-11-12T05:00:00+00:00"}],"compare":{"before_scan_id":"01KN3W...","after_scan_id":"01KN3X..."}}]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Personal API token from Account → API & apps, sent as `Authorization: Bearer {token}`. Without a valid token the API answers `401`."}},"parameters":{"limit":{"name":"limit","in":"query","description":"Results per page, max. 50 (default: 20).","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},"page":{"name":"page","in":"query","description":"Page number.","schema":{"type":"integer","minimum":1}},"scanId":{"name":"id","in":"path","required":true,"description":"The scan's `public_id` (e.g. `01KN3X...`).","schema":{"type":"string"}},"rumSiteId":{"name":"id","in":"path","required":true,"description":"ID of the live data website from `GET /rum/sites`.","schema":{"type":"integer"}},"host":{"name":"host","in":"query","required":true,"description":"The website's host, e.g. `example.com` (`https://` and `www.` are ignored).","schema":{"type":"string"}},"device":{"name":"device","in":"query","description":"`all`, `desktop`, `mobile`, `tablet` (default: `all`).","schema":{"type":"string","enum":["all","desktop","mobile","tablet"],"default":"all"}},"locale":{"name":"locale","in":"query","description":"Language of texts in the response (`de` or `en`), otherwise your account's language setting.","schema":{"type":"string","enum":["de","en"]}}},"responses":{"E401":{"description":"No token or an invalid one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Unauthenticated"}}}},"E403":{"description":"Your plan does not include this (the API needs Starter or higher; scans with authentication need Pro).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Your current plan does not support API access. Available from Starter."}}}},"E404":{"description":"Resource not found or not yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Not found."}}}},"E422":{"description":"Validation error, e.g. an invalid URL.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationError"},{"$ref":"#/components/schemas/Error"}]},"example":{"message":"The url field is required.","errors":{"url":["The url field is required."]}}}}},"E429":{"description":"Limit exceeded: daily API limit, hourly scan limit or report limit.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LimitError"},{"$ref":"#/components/schemas/ThrottleError"}]},"example":{"error":"Daily API limit reached","limit":1000,"reset_at":"2026-04-01T23:59:59+02:00"}}}}},"schemas":{"Account":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"plan":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"api_enabled":{"type":"boolean"},"api_daily_limit":{"type":"integer"}}},"api_usage":{"type":"object","properties":{"used_today":{"type":"integer"},"limit_today":{"type":"integer"},"reset_at":{"type":["string","null"],"format":"date-time"}}},"rum":{"type":"object","properties":{"enabled":{"type":"boolean"},"pageviews_this_month":{"type":["integer","null"]},"monthly_limit":{"type":"integer"},"sites_count":{"type":"integer"}}}}},"Alert":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"string"},"severity":{"type":"string","enum":["critical","warning"]},"title":{"type":"string"},"message":{"type":"string"},"is_read":{"type":"boolean"},"is_dismissed":{"type":"boolean"},"url":{"type":["string","null"]},"host":{"type":["string","null"]},"scan_id":{"type":["string","null"]},"diagnosis":{"type":["object","null"],"properties":{"sentence":{"type":"string"},"confidence":{"type":"string","enum":["high","medium","low"]},"attribution_id":{"type":"integer"}}},"created_at":{"type":["string","null"],"format":"date-time"},"resolved_at":{"type":["string","null"],"format":"date-time"}}},"Attribution":{"type":"object","properties":{"id":{"type":"integer"},"started_at":{"type":["string","null"],"format":"date-time"},"confidence":{"type":"string","enum":["high","medium","low"]},"status":{"type":"string","enum":["open","recovered"]},"sentence":{"type":"string"},"metrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["lcp","fcp","ttfb","tbt","cls","inp","score","js_errors"]},"device":{"type":"string","enum":["mobile","desktop","all"]},"before":{"type":["number","null"]},"after":{"type":["number","null"]},"change_pct":{"type":["number","null"]}}}},"suspects":{"type":"array","items":{"type":"object","properties":{"change_id":{"type":"integer"},"kind":{"type":"string"},"component":{"type":["string","null"]},"from":{"type":["string","null"]},"to":{"type":["string","null"]},"occurred_at":{"type":["string","null"],"format":"date-time"}}}},"compare":{"type":["object","null"],"properties":{"before_scan_id":{"type":"string"},"after_scan_id":{"type":"string"}}}}},"Change":{"type":"object","properties":{"id":{"type":"integer"},"host":{"type":"string"},"kind":{"type":"string"},"component":{"type":["string","null"]},"from":{"type":["string","null"]},"to":{"type":["string","null"]},"occurred_at":{"type":["string","null"],"format":"date-time"},"window_start":{"type":["string","null"],"format":"date-time"},"precision":{"type":"string","enum":["exact","day","between_scans"]},"sources":{"type":"array","items":{"type":"string"}},"label":{"type":["string","null"]},"external_ref":{"type":["string","null"]}}},"Domain":{"type":"object","properties":{"id":{"type":"integer"},"host":{"type":"string"},"url":{"type":"string"},"schedule":{"type":"string"},"is_active":{"type":"boolean"},"last_dispatched_at":{"type":["string","null"],"format":"date-time"}}},"DomainHistoryEntry":{"type":"object","properties":{"score":{"type":["integer","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"region":{"type":["string","null"]}}},"Error":{"type":"object","properties":{"error":{"type":"string","description":"Error message in the API language."}},"required":["error"]},"KeepState":{"type":"object","properties":{"keep_forever":{"type":"boolean"}},"required":["keep_forever"]},"LimitError":{"type":"object","properties":{"error":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":["string","null"],"format":"date-time"},"retry_after":{"type":"integer"}},"required":["error"]},"MarkReadResult":{"type":"object","properties":{"marked_read":{"type":"integer"}}},"PaginationMeta":{"type":"object","properties":{"current_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"last_page":{"type":"integer"}},"description":"Page information of a paginated list."},"RumAlert":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"mode":{"type":"string"},"metric":{"type":["string","null"]},"threshold":{"type":["number","null"]},"window_minutes":{"type":"integer"},"min_samples":{"type":"integer"},"consecutive_threshold":{"type":"integer"},"status":{"type":"string","enum":["active","triggered","resolved"]},"emailed_at":{"type":["string","null"],"format":"date-time"},"resolved_at":{"type":["string","null"],"format":"date-time"},"diagnosis":{"type":["object","null"],"properties":{"sentence":{"type":"string"},"confidence":{"type":"string","enum":["high","medium","low"]},"attribution_id":{"type":"integer"}}},"created_at":{"type":["string","null"],"format":"date-time"}}},"RumBreakdown":{"type":"object","properties":{"ready":{"type":"boolean"},"days":{"type":"integer"},"origins":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"key":{"type":["string","null"]},"label":{"type":"string"},"inp_share":{"type":["number","null"]},"inp_count":{"type":["integer","null"]},"js_error_share":{"type":["number","null"]},"js_error_pages":{"type":["integer","null"]},"js_error_message":{"type":["string","null"]}}}}}},"RumHistoryPoint":{"type":"object","properties":{"date":{"type":"string","format":"date"},"p75":{"type":["number","null"]},"p50":{"type":["number","null"]},"samples":{"type":"integer"}}},"RumMetric":{"type":"object","properties":{"p75":{"type":["number","null"]},"rating":{"type":["string","null"]},"samples":{"type":"integer"}}},"RumPage":{"type":"object","properties":{"path":{"type":"string"},"p75":{"type":["number","null"]},"samples":{"type":"integer"}}},"RumSite":{"type":"object","properties":{"id":{"type":"integer"},"domain":{"type":"string"},"active":{"type":"boolean"},"embed_snippet":{"type":"string"},"pageviews_this_month":{"type":["integer","null"]},"monthly_limit":{"type":"integer"},"created_at":{"type":["string","null"],"format":"date-time"}}},"RumSummary":{"type":"object","properties":{"domain":{"type":"string"},"period":{"type":"string"},"device":{"type":"string"},"path":{"type":["string","null"]},"cwv_pass":{"type":["boolean","null"]},"cwv_insufficient_data":{"type":"boolean"},"metrics":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/RumMetric"}}}},"Scan":{"type":"object","properties":{"public_id":{"type":"string"},"report_url":{"type":"string"},"status":{"type":"string","enum":["queued","running","finished","failed"]},"is_public":{"type":"boolean"},"submitted_url":{"type":"string"},"region":{"type":["string","null"]},"auth_type":{"type":["string","null"]},"share_enabled":{"type":"boolean"},"share_url":{"type":["string","null"]},"requested_at":{"type":["string","null"],"format":"date-time"},"finished_at":{"type":["string","null"],"format":"date-time"},"progress":{"type":["object","null"],"properties":{"stage":{"type":["string","null"],"enum":["queued","preflight","html","runtime_desktop","runtime_mobile","assets",null]},"stage_started_at":{"type":["string","null"],"format":"date-time"}}},"result":{"type":["object","null"],"properties":{"final_url":{"type":["string","null"]},"final_host":{"type":["string","null"]},"http_status":{"type":["integer","null"]},"scores":{"type":"object","properties":{"overall":{"type":["integer","null"]},"speed":{"type":["integer","null"]},"images":{"type":["integer","null"]},"caching":{"type":["integer","null"]},"wordpress":{"type":["integer","null"]},"technical":{"type":["integer","null"]}}},"summary_short":{"type":["string","null"]},"summary_long":{"type":["string","null"]},"preflight":{"type":["object","null"],"properties":{"https":{"type":"boolean"},"redirect_count":{"type":"integer"},"content_type":{"type":"string"},"content_encoding":{"type":"string"},"has_browser_caching":{"type":"boolean"},"has_page_cache":{"type":"boolean"},"page_cache_status":{"type":"string","enum":["hit","miss"]},"has_cdn":{"type":"boolean"},"cdn":{"type":["string","null"]},"cache_control":{"type":"string"},"server":{"type":"string"},"http2":{"type":"boolean"},"http3":{"type":"boolean"}}},"metrics":{"type":["object","array"],"properties":{"ttfb_ms":{"type":["number","null"]},"desktop":{"type":["object","array"],"properties":{"fcp_ms":{"type":["number","null"]},"lcp_ms":{"type":["number","null"]},"cls":{"type":["number","null"]},"tbt_ms":{"type":["number","null"]},"long_task_count":{"type":["integer","null"]},"request_count":{"type":["integer","null"]},"total_bytes":{"type":["integer","null"]},"navigation_timing":{"type":["object","null"]}}},"mobile":{"type":["object","array"],"properties":{"fcp_ms":{"type":["number","null"]},"lcp_ms":{"type":["number","null"]},"cls":{"type":["number","null"]},"tbt_ms":{"type":["number","null"]},"long_task_count":{"type":["integer","null"]},"request_count":{"type":["integer","null"]},"total_bytes":{"type":["integer","null"]},"navigation_timing":{"type":["object","null"]}}}}},"page_structure":{"type":["object","null"]},"asset_weights":{"type":["object","null"]},"screenshots":{"type":["object","array","null"]},"findings":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"code":{"type":"string"},"severity":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"recommendation":{"type":["string","null"]}}}},"google_fonts":{"type":["object","null"],"properties":{"status":{"type":"string","enum":["direct","embed_only","none","unknown"]},"fonts":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"family":{"type":"string"},"name":{"type":"string"},"embed":{"type":"boolean"},"source":{"type":"object","properties":{"kind":{"type":"string","enum":["plugin","theme","page","external","unknown"]},"name":{"type":["string","null"]},"url":{"type":["string","null"]}}}}}}}}}}}},"ScanCreated":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"url":{"type":"string"},"cached":{"type":"boolean"},"auth_type":{"type":["string","null"],"enum":["basic","header",null]},"keep_forever":{"type":"boolean"}}},"ScanListItem":{"type":"object","properties":{"public_id":{"type":"string"},"report_url":{"type":"string"},"status":{"type":"string","enum":["queued","running","finished","failed"]},"submitted_url":{"type":"string"},"region":{"type":["string","null"]},"auth_type":{"type":["string","null"]},"requested_at":{"type":["string","null"],"format":"date-time"},"finished_at":{"type":["string","null"],"format":"date-time"},"result":{"type":["object","null"],"properties":{"scores":{"type":"object","properties":{"overall":{"type":["integer","null"]},"speed":{"type":["integer","null"]},"images":{"type":["integer","null"]},"caching":{"type":["integer","null"]},"wordpress":{"type":["integer","null"]},"technical":{"type":["integer","null"]}}}}}}},"ShareState":{"type":"object","properties":{"share_enabled":{"type":"boolean"},"share_url":{"type":"string"}},"required":["share_enabled"]},"ThrottleError":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"TokenInfo":{"type":"object","properties":{"valid":{"type":"boolean"},"user_id":{"type":"integer"}}},"ValidationError":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["message","errors"]}}}}