---
title: "Start a batch of checks | AI answer collection and runs | AEO API"
description: "Starts up to 20 managed checks in one request under a total credit cap."
url: "https://aeoapi.dev/docs/features/ai-answer-collection-and-runs/post-runs-managed-batch"
canonical: "https://aeoapi.dev/docs/features/ai-answer-collection-and-runs/post-runs-managed-batch"
last_updated: "2026-11-30"
---

AI answer collection and runs

# Start a batch of checks

Starts up to 20 managed checks in one request under a total credit cap.

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

- Body `workflow` is `managed_batch`.
- Body `estimate` is `false`. Default is `false`.

## Authentication and access

**Authentication**

Bearer API key

**Scopes**

collections:write

**Roles**

editor, owner, service

**Plans**

Optimizer, Analyzer

**Credits**

This operation can use credits.

**Billing access**

Required

[Estimate a batch of checks](https://aeoapi.dev/docs/features/ai-answer-collection-and-runs/post-runs-estimate-managed-batch) before you start the run.

## Parameters

Request parameters

| Name | Where | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | `string` | Yes |  |

## Request body

```
{
  "estimate": false,
  "items": [
    {
      "idempotency_key": "example-run-0001",
      "request": {
        "brand_id": "00000000-0000-4000-8000-000000000001",
        "estimate_fingerprint": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "prompt_set_revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
      }
    }
  ],
  "max_total_credits": 100,
  "workflow": "managed_batch"
}
```

Request body fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `estimate` | `false` | No |  |
| `items` | `array of object` | Yes |  |
| `items[].idempotency_key` | `string` | Yes |  |
| `items[].request` | `object` | Yes |  |
| `items[].request.brand_id` | `string (uuid)` | Yes |  |
| `items[].request.estimate_fingerprint` | `string` | Yes |  |
| `items[].request.prompt_set_revision` | `string` | Yes |  |
| `max_total_credits` | `integer` | Yes |  |
| `workflow` | `"managed_batch"` | Yes |  |

## Request examples

Set `AEO_API_BASE_URL` to `https://api.aeoapi.dev` and `AEO_API_KEY` to your server-side API key. Set the other environment variables to the values for your request.

Save the JSON request body as `request.json`. Replace sample IDs, revisions and other values with your own.

```bash
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
  -H "Authorization: Bearer $AEO_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @request.json
```

```python
import json
from pathlib import Path
from os import environ
from aeo_sdk import AeoClient

body = json.loads(Path("request.json").read_text())

with AeoClient(environ["AEO_API_KEY"], base_url=environ["AEO_API_BASE_URL"]) as client:
    response = client.v2_post_runs(
        body=body,
        idempotency_key=environ["IDEMPOTENCY_KEY"],
    )
    print(response.body)
```

```typescript
import { AeoClient } from "@aeoapi/aeo-sdk";
import { readFile } from "node:fs/promises";

const client = new AeoClient(process.env.AEO_API_KEY!, {
  baseUrl: process.env.AEO_API_BASE_URL!,
});
const body = JSON.parse(await readFile("request.json", "utf8"));
const response = await client.v2PostRuns(
  body,
  {
    idempotencyKey: process.env.IDEMPOTENCY_KEY!,
  },
);
console.log(response.body);
```

## Responses

#### HTTP 200

Successful Response

`application/json`

Response fields are listed below.

HTTP 200 response fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `array of object \| object` | Yes | The requested result. See the fields below for its contents. |
| `data[].brand_id` | `string (uuid)` | Yes |  |
| `data[].data` | `object` | Conditional |  |
| `data[].data.brand_id` | `string` | Conditional |  |
| `data[].data.charged_credits` | `integer` | Conditional |  |
| `data[].data.check_id` | `string \| null` | Conditional |  |
| `data[].data.check_url` | `string \| null` | Conditional |  |
| `data[].data.citation_status` | `"in_progress" \| "completed"` | No | Citation preparation status for this run, when applicable. |
| `data[].data.created_at` | `string` | Conditional |  |
| `data[].data.estimated_credits` | `integer` | Conditional |  |
| `data[].data.failure_reasons` | `array of "access_restricted" \| "limit_reached" \| "input_missing" \| "approval_expired" \| "cancelled" \| "check_failed" \| "check_incomplete"` | Conditional |  |
| `data[].data.hold_reasons` | `array of "retry_pending" \| "under_review"` | Conditional |  |
| `data[].data.id` | `string` | No |  |
| `data[].data.phase` | `string \| null` | Conditional |  |
| `data[].data.progress` | `object` | Conditional |  |
| `data[].data.progress.by_location` | `array of object` | No |  |
| `data[].data.progress.by_location[].by_source` | `array of object` | Conditional |  |
| `data[].data.progress.by_location[].completed_steps` | `integer` | Conditional |  |
| `data[].data.progress.by_location[].expected_steps` | `integer` | Conditional |  |
| `data[].data.progress.by_location[].location_id` | `string (uuid)` | Conditional |  |
| `data[].data.progress.by_source` | `array of object` | Conditional |  |
| `data[].data.progress.completed_steps` | `integer` | Conditional |  |
| `data[].data.progress.expected_steps` | `integer` | Conditional |  |
| `data[].data.prompt_set_revision` | `string` | Conditional |  |
| `data[].data.released_credits` | `integer` | Conditional |  |
| `data[].data.report_id` | `string \| null` | Conditional |  |
| `data[].data.report_status` | `"pending" \| "ready" \| "not_available"` | Conditional |  |
| `data[].data.report_url` | `string \| null` | Conditional |  |
| `data[].data.reserved_credits` | `integer` | Conditional |  |
| `data[].data.run_id` | `string` | Conditional |  |
| `data[].data.status` | `string` | Conditional |  |
| `data[].data.updated_at` | `string` | Conditional |  |
| `data[].data.v2_run_id` | `string` | No |  |
| `data[].data.website` | `string \| null` | Conditional |  |
| `data[].idempotency_key` | `string` | Yes |  |
| `data[].status` | `202 \| integer` | Yes |  |
| `data[].error` | `object` | Conditional |  |
| `data[].error.code` | `string` | Conditional |  |
| `data[].error.field_errors` | `array of object` | No |  |
| `data[].error.field_errors[].field` | `string \| null` | Conditional |  |
| `data[].error.field_errors[].message` | `string` | Conditional |  |
| `data[].error.message` | `string` | Conditional |  |
| `meta` | `object` | Yes | Information about this response, including any warnings or pagination details. |
| `meta.as_of` | `string (date-time)` | Yes | The point in time that the response represents. |
| `meta.cohort_version` | `string \| null` | No | Identifies the version of the group used to calculate the results. |
| `meta.collected_at` | `string (date-time) \| null` | Yes | When the data was collected, if available. |
| `meta.metric_version` | `string \| null` | No | The version of the metric definition used for these results. |
| `meta.next_cursor` | `string \| null` | Yes | When present, pass this value as cursor to request the next page with the same filters. |
| `meta.next_refresh_at` | `string (date-time) \| null` | Yes |  |
| `meta.request_id` | `string (uuid)` | Yes | Keep this ID when reporting a problem with the request. |
| `meta.restricted_fields` | `array of string` | No | Fields that your current access does not allow the API to return. |
| `meta.rights_filtered` | `boolean` | Yes | Indicates whether access rights affected the returned data. |
| `meta.schema_version` | `"1.0"` | Yes | The version of the response format. |
| `meta.stale` | `boolean` | Yes |  |
| `meta.warnings` | `array of string` | Yes | Read these notes for limitations that affect the results. |

## Errors

Read `code` and `message` in the error response. Keep `request_id` when you contact support.

- HTTP 400 [`invalid_request`](https://aeoapi.dev/docs/errors#invalid_request)
- HTTP 401 [`unauthenticated`](https://aeoapi.dev/docs/errors#unauthenticated)
- HTTP 403 [`forbidden`](https://aeoapi.dev/docs/errors#forbidden)
- HTTP 404 [`not_found`](https://aeoapi.dev/docs/errors#not_found)
- HTTP 422 [`validation_error`](https://aeoapi.dev/docs/errors#validation_error)
- HTTP 429 [`rate_limited`](https://aeoapi.dev/docs/errors#rate_limited)

[AI answer collection and runs reference](https://aeoapi.dev/docs/features/ai-answer-collection-and-runs)
