---
title: "v2PostRuns | TypeScript SDK | AEO API"
description: "Start a workflow or request its estimate. The collection example prices a prompt and market before you request any answers."
url: "https://aeoapi.dev/docs/sdks/typescript/v2PostRuns"
canonical: "https://aeoapi.dev/docs/sdks/typescript/v2PostRuns"
last_updated: "2026-11-30"
---

# v2PostRuns

Start a workflow or request its estimate. The collection example prices a prompt and market before you request any answers.

See the REST reference for [`POST /v2/runs`](https://aeoapi.dev/docs/api-reference#post-v2-runs).

## Signature

```
v2PostRuns(
  body: Record<string, unknown>,
  options?: {
    signal?: AbortSignal;
    idempotencyKey?: string;
  },
): Promise<ApiResponse<unknown>>
```

## Parameters

**`body`**

JSON object for this action. The example includes the fields for estimate_collect.

**`options`**

Pass the named options in the signature. The selected action or view determines which fields are required.

**`options.signal`**

Optional AbortSignal to cancel the HTTP request.

**`options.idempotencyKey`**

The SDK generates a request key when you omit it. Pass the same key and body to retry this write in a separate call.

## Return value

Promise\<ApiResponse\<unknown\>\>. A collection estimate returns estimated_credits, maximum_credits and answer_count in data. A start request can return a run to poll.

## Errors

- The SDK throws AeoApiError if the API returns an error. Inspect status, code, fieldErrors and requestId.
- AeoTransportError means the request failed to connect or the client could not finish reading a successful response. Invalid JSON in a successful response throws SyntaxError. If you abort the request, the SDK throws the reason from the AbortSignal.
- For HTTP 422, check fieldErrors for the input field and validation message.

## TypeScript example

```
import { AeoClient } from "@aeoapi/aeo-sdk";

const apiKey = process.env.AEO_API_KEY;
if (!apiKey) throw new Error("Set AEO_API_KEY on your server.");
const client = new AeoClient(apiKey, { baseUrl: "https://api.aeoapi.dev" });

// Substitute your own record IDs and values.
const body = {
  "answer_mode": "standard",
  "brand_id": "00000000-0000-4000-8000-000000000001",
  "estimate": true,
  "market": {
    "country": "US",
    "language": "en"
  },
  "max_units": 0,
  "prompt_ids": [
    "00000000-0000-4000-8000-000000000001"
  ],
  "sources": [
    {
      "mode": "ui_normal",
      "platform": "chatgpt"
    }
  ],
  "workflow": "collect"
};
const response = await client.v2PostRuns(body);
console.log(response.status, response.body);
```

## Requests by feature

### Prompts and topics

- [Estimate web suggestions](https://aeoapi.dev/docs/features/prompts-and-topics/post-runs-estimate-prompt-suggestions)

### AI answer collection and runs

- [Collect answers](https://aeoapi.dev/docs/features/ai-answer-collection-and-runs/post-runs-collect)
- [Estimate collection credits](https://aeoapi.dev/docs/features/ai-answer-collection-and-runs/post-runs-estimate-collect)
- [Estimate a managed check](https://aeoapi.dev/docs/features/ai-answer-collection-and-runs/post-runs-estimate-managed)
- [Start a managed check](https://aeoapi.dev/docs/features/ai-answer-collection-and-runs/post-runs-managed)
- [Estimate a batch of checks](https://aeoapi.dev/docs/features/ai-answer-collection-and-runs/post-runs-estimate-managed-batch)
- [Start a batch of checks](https://aeoapi.dev/docs/features/ai-answer-collection-and-runs/post-runs-managed-batch)

### Site audits and page checks

- [Estimate an audit](https://aeoapi.dev/docs/features/site-audits-and-page-checks/post-runs-estimate-audit)
- [Audit a site](https://aeoapi.dev/docs/features/site-audits-and-page-checks/post-runs-audit)
- [Refresh page measurements](https://aeoapi.dev/docs/features/site-audits-and-page-checks/post-runs-page-refresh)

### Citations

- [Check selected cited pages](https://aeoapi.dev/docs/features/citations/post-runs-citation-check)
- [Estimate a cited page sweep](https://aeoapi.dev/docs/features/citations/post-runs-estimate-cited-page-sweep)
- [Check pages due for review](https://aeoapi.dev/docs/features/citations/post-runs-cited-page-sweep)
- [Estimate cited page labels](https://aeoapi.dev/docs/features/citations/post-runs-estimate-cited-page-labelling)
- [Label cited pages](https://aeoapi.dev/docs/features/citations/post-runs-cited-page-labelling)

### Answer accuracy

- [Estimate an answer check](https://aeoapi.dev/docs/features/answer-accuracy/post-runs-estimate-check-answer-accuracy)
- [Check answer accuracy](https://aeoapi.dev/docs/features/answer-accuracy/post-runs-check-answer-accuracy)
- [Estimate a draft check](https://aeoapi.dev/docs/features/answer-accuracy/post-runs-estimate-check-draft-accuracy)
- [Check draft accuracy](https://aeoapi.dev/docs/features/answer-accuracy/post-runs-check-draft-accuracy)
- [Estimate claim verification](https://aeoapi.dev/docs/features/answer-accuracy/post-runs-estimate-verify-answer-claims)
- [Verify claims in one answer](https://aeoapi.dev/docs/features/answer-accuracy/post-runs-verify-answer-claims)

### Retrieval simulator and content testing

- [Estimate a pre-publish review](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-estimate-prepublish-review)
- [Review a draft before publication](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-prepublish-review)
- [Estimate a retrieval benchmark](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-estimate-retrieval-benchmark)
- [Benchmark a draft](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-retrieval-benchmark)
- [Estimate a regression test](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-estimate-retrieval-regression)
- [Compare staging and production](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-retrieval-regression)
- [Estimate paragraph win rates](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-estimate-retrieval-win-rate)
- [Simulate paragraph win rates](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-retrieval-win-rate)
- [Estimate passage overlap](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-estimate-passage-overlap)
- [Compare passages with answers](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-passage-overlap)
- [Estimate question coverage](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-estimate-query-fanout-coverage)
- [Check buyer question coverage](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-query-fanout-coverage)
- [Test passage position](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-context-position-test)
- [Compare personas and markets](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-persona-geo-divergence)
- [Find gaps in comparison evidence](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-comparison-evidence-gaps)
- [Check asset readability](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/post-runs-asset-readability)

### Recommendations and visibility analyst

- [Explain a visibility change](https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst/post-runs-explain-visibility-change)

### Content drafts and editorial generation

- [Estimate draft generation](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/post-runs-estimate-editorial-generation)
- [Generate draft content](https://aeoapi.dev/docs/features/content-drafts-and-editorial-generation/post-runs-editorial-generation)

### AI search topics

- [Estimate topic research](https://aeoapi.dev/docs/features/ai-search-topics/post-runs-estimate-ai-search-topics)
- [Find AI search topics](https://aeoapi.dev/docs/features/ai-search-topics/post-runs-ai-search-topics)

### Submit to Brave

- [Submit a page](https://aeoapi.dev/docs/features/submit-to-brave/post-runs-brave-submit)

See [TypeScript client setup](https://aeoapi.dev/docs/sdks/typescript) for authentication, timeouts and retry settings.
