---
title: "Rewrite Page"
method: POST
path: "/rewrite"
tags: ["rewrite"]
---

# Rewrite Page

`POST /rewrite`

## 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/rewrite`
- Auth: API key in header `X-Agent-Key`

## Query parameters

- `email` string, nullable

## Headers

- `X-Org-Id` string, nullable

## Request body

- RewriteRequest
  - `url` string, required
  - `type` 'title' | 'meta' | 'heading' | 'section'
  - `context` object, nullable
  - `query` string, nullable

## Response `200`

Successful Response

- RewriteResponse
  - `url` string, required
  - `type` string, required
  - `original` string, nullable
  - `suggested` string, required
  - `reasoning` string, required
  - `grounded` boolean
  - `supporting_points` string[]

## 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)
