---
title: "Content For Page"
method: POST
path: "/sites/{site_id}/content/for-page"
tags: ["content"]
---

# Content For Page

`POST /sites/{site_id}/content/for-page`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/sites/{site_id}/content/for-page`
- Auth: API key in header `X-Agent-Key`

Optimise a page that already exists. Fetches the live post, makes its
text the brief's author_draft AND draft (with its own title/meta/slug as
front-matter), picks the target from the page's striking-distance Search
Console queries, saves the before-score and the 28-day baseline, and
returns optimisation guidance: change the least. Resumes an open brief for
the same URL.

## Path parameters

- `site_id` string, required

## Query parameters

- `email` string, nullable

## Request body

- ForPageBody
  - `url` string, required
  - `target_keyword` string, nullable
  - `notes` string, nullable
  - `live_serp` boolean
  - `goal_id` string, nullable
  - `author_wrote_it` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
