API reference
Retrieval simulator and content testing
Test a draft against selected prompts and competitor pages before publishing. Compare versions, inspect passages and try different question or market settings. These are simulations of your supplied content.
POST /v2/passages/search
- Search passages. Searches the brand's imported page text, or supplied asset text, and returns matching passages with the page URL and text offsets.
POST /v2/runs
- Estimate a pre-publish review. Quotes the credits for a pre-publish review.
- Review a draft before publication. Review a draft against its saved prompt set before publishing. Include competitor pages or page captures when your review needs them.
- Estimate a retrieval benchmark. Quotes the credits for a retrieval benchmark.
- Benchmark a draft. Simulates how a draft ranks against competitor pages for chosen prompts, next to the citations you recorded.
- Estimate a regression test. Quotes the credits for a retrieval regression test.
- Compare staging and production. Compares retrieval for a staging and a production version of your content and checks for a drop in coverage.
- Estimate paragraph win rates. Quote the credits for a simulation of paragraph win rates. This workflow is available only in fixture tests.
- Simulate paragraph win rates. Simulate a win rate for each paragraph in a saved draft. This workflow is available only in fixture tests.
- Estimate passage overlap. Quotes the credits for a passage overlap comparison.
- Compare passages with answers. Compares your content with answer excerpts for a set of questions and saves the overlap and retrieval rank results.
- Estimate question coverage. Quotes the credits for a buyer question coverage run.
- Check buyer question coverage. Splits a prompt into sub-questions and checks which ones your website covers.
- Test passage position. Use a saved pre-publish review to test a passage at the start, middle and end of the supplied context. Each trial records whether the simulated answer used the target fact and cited its passage.
- Compare personas and markets. Compares results for a draft across synthetic personas and markets.
- Find gaps in comparison evidence. Compare how the saved evidence for a brand and a competitor answers differently worded buyer questions.
- Check asset readability. Evaluates text you supplied for an asset (PDF, chart, table, transcript or diagram) against questions.
GET /v2/runs/{run_id}
- Read a pre-publish review. Inspect the questions covered by the draft, the passages used as evidence and the revisions in the review manifest.
- Read benchmark results. Inspect the simulated rankings for each question. Check whether the comparison included competing pages or only pages from the brand.
- Read regression results. Check the verdict and its reasons for each selected question before deciding whether to publish the staging revision.
- Read passage overlap. Read the passage comparisons for the selected questions and inspect the source evidence behind a match.
- Read question coverage. Review the subquestions for the selected prompt version and identify questions your pages leave unanswered.
- Read position test results. Compare how often the simulated answer used the target fact and cited the right passage at each position.
- Read persona comparisons. Compare the selected scenarios and inspect the passages that ranked for each persona and market.
- Read comparison gaps. Read the findings and proposed documentation changes alongside the source passages for each question.
- Read asset results. Inspect the results for each asset and the saved inputs used for the evaluation.