---
title: "Pre-Publish Content Review and Ranking Test | AEO API"
description: "Review a saved draft before you publish, or simulate how its passages rank against others for the prompts you select."
url: "https://aeoapi.dev/docs/retrieval-simulator"
canonical: "https://aeoapi.dev/docs/retrieval-simulator"
last_updated: "2026-11-29"
---

# Pre-Publish Content Review and Ranking Test

Review a saved draft before you publish, or simulate how its passages rank against others for the prompts you select.

## Choose a workflow

Use `prepublish_review` to review a draft against saved evidence before publishing. Use `retrieval_benchmark` when you want to compare simulated passage rankings for selected prompts.

## Choose what to compare

When you review a long page, use the heading and passage together. Keep the surrounding list or table context in view when deciding whether to revise a passage.

Include the exact terms readers use, such as product names, acronyms, and SKUs, alongside prompts that ask the same question in other words. When comparing results across runs, keep any inputs and settings you are not testing the same.

You can include eligible pages from monitored competitors in the comparison. Read the coverage in the result before drawing conclusions. Treat the rankings as a simulation for the selected prompts and pages.

## Estimate, start and read

Use an Optimizer account and a key with access to the brand. The key needs `analytics:read`, `optimizations:read` and `audits:read`. To read the job, also grant `collections:read`. To request an estimate or start a run, use an editor, owner, or service role.

1. Request a credit estimate with [`POST /v2/runs`](https://aeoapi.dev/docs/api-reference#post-v2-runs) and `estimate` set to `true`. Keep the estimate ID and check when it expires. The estimate creates no run.
2. Start the same workflow with [`POST /v2/runs`](https://aeoapi.dev/docs/api-reference#post-v2-runs). Use the same inputs, the estimate ID, your credit cap in `max_units`, and an `Idempotency-Key` header. When you retry, send the same key and request body.
3. Follow the returned `data.poll_url` with [`GET /v2/runs/{run_id}`](https://aeoapi.dev/docs/api-reference#get-v2-runs-run_id). Read `data.state` before using the result. For paginated results, send `meta.next_cursor` as `cursor` on the next read.

Estimates and result reads use zero credits. Delivered results can use credits up to the accepted estimate and your cap.
