latestOpenAPI 3.1.02026-08-204087139.4 KB

c4fe20c603a3

site-diagnostics

Get Page Optimization Detail

Fetch the latest optimization run for one page: a summary of how many content blocks were transformed / enriched / removed, the optimized token total, and every block's before/after content.

By default only reviewed runs are returned (completed, staged, deployed, acknowledged) — i.e. optimizations a human accepted — not raw unreviewed optimizer output. Pass one or more status params to opt into other lifecycle states (e.g. ?status=pending). Each chunk carries its own status, so a rejected block (its after was not accepted) is distinguishable from an approved one. Returns 404 when the page has no run in the requested statuses.

get/{brand_id}/site-diagnostics/optimization

Path parameters

brand_idinteger required

Query parameters

pathstring required

The page path, e.g. /about.

The page path, e.g. /about.

statusstring[] nullable

Restrict to these run statuses. Default: reviewed runs only.

Restrict to these run statuses. Default: reviewed runs only.

Response

Successful Response

pathstring required
status'pending' | 'completed' | 'staged' | 'deployed' | 'retired' | 'outdated' | 'acknowledged' required