---
title: "Preview Link"
method: POST
path: "/wordpress/sites/{site_id}/preview-link"
tags: ["wordpress"]
---

# Preview Link

`POST /wordpress/sites/{site_id}/preview-link`

## 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/wordpress/sites/{site_id}/preview-link`
- Auth: API key in header `X-Agent-Key`

Mint a short-lived tokenized preview URL for a page — drafts included.
The URL renders the page server-side (theme CSS, Elementor kit, and per-post
Elementor CSS all load — same as the published page) with no WP login, so
render_screenshot can capture it before publishing. Connector >= 0.7.6
minimum; >= 0.9.10 for CSS to actually render (older connectors mint a
working link that renders with NO CSS at all).

## Path parameters

- `site_id` string, uuid, required

## Query parameters

- `email` string, nullable

## Request body

- PreviewLinkBody
  - `post_id` integer, required
  - `ttl` integer, nullable
  - `share` 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)
