Skip to main content
POST
Apply Page Optimization

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

brand_id
integer
required

Body

application/json

Body for acknowledging a page's optimization as acted on off-platform.

Exactly one of approve_all or reviews — closing a page is a declared action, so there's no implicit "accept everything" default.

path
string
required

The page path, e.g. /about.

Minimum string length: 1
approve_all
boolean
default:false

Accept every changed block. Mutually exclusive with reviews.

reviews
OptimizationReview · object[] | null

Per-block verdicts, keyed by chunk id — a verdict for every changed block (approved keeps our version, rejected keeps the original). Mutually exclusive with approve_all.

Response

Successful Response

Endpoint 2 response: a page's latest optimization run with before/after chunks.

path
string
required
status
enum<string>
required
Available options:
pending,
completed,
staged,
deployed,
retired,
outdated,
acknowledged
summary
OptimizationSummary · object
required

Per-category chunk counts and the optimized token total for a run.

chunks
OptimizationChunk · object[]