---
title: "Approve a follow-up action | Recommendations and visibility analyst | AEO API"
description: "Approve a proposed content draft or collection check. An approved check starts in the background."
url: "https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst/patch-recommendations-decide-analyst-action"
canonical: "https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst/patch-recommendations-decide-analyst-action"
last_updated: "2026-11-30"
---

Recommendations and visibility analyst

# Approve a follow-up action

Approve a proposed content draft or collection check. An approved check starts in the background.

[`PATCH /v2/recommendations`](https://aeoapi.dev/docs/api-reference#patch-v2-recommendations)

- Body `section` is `decide`.
- Body `action_id` starts with `analyst_action:`.

## Authentication and access

**Authentication**

Bearer API key

**Scopes**

analytics:read

**Roles**

approver, owner

**Plans**

Optimizer, Analyzer

**Credits**

This operation can use credits.

**Billing access**

Required

[Check your account's credit usage](https://aeoapi.dev/docs/guides/account-budget) for the reporting period.

- **Action kind content_draft.** Scopes analytics:read, optimizations:write. Plans Optimizer.
- **FAQ drafts also require this permission.** Scope `prompts:read`.
- **Action kind fresh_check.** Scopes analytics:read, collections:write. Plans Optimizer, Analyzer.
- **To approve a fresh check, use an owner key or an approver key that also has the editor or service role.**

## Parameters

Request parameters

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

## Request body

For a content draft, copy data.draft_fingerprint from the proposal you reviewed and set max_credits to 0. For an organization_jsonld draft, check the organization facts and add "confirm_organization_facts": true.

```
{
  "section": "decide",
  "decision": "approve",
  "brand_id": "00000000-0000-4000-8000-000000000001",
  "action_id": "analyst_action:00000000-0000-4000-8000-000000000001",
  "draft_fingerprint": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "max_credits": 0
}
```

For a fresh check, read data.maximum_credits on the proposal. This example accepts a quote of 10 credits. Set max_credits to the cap you accept. The API returns HTTP 409 if the cap is below the quote.

```
{
  "section": "decide",
  "decision": "approve",
  "brand_id": "00000000-0000-4000-8000-000000000001",
  "action_id": "analyst_action:00000000-0000-4000-8000-000000000001",
  "max_credits": 10
}
```

Request body fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `action_id` | `string` | Yes |  |
| `brand_id` | `string (uuid)` | Yes |  |
| `confirm_organization_facts` | `boolean` | Conditional | Set to true after checking the facts in an organization_jsonld draft. Omit it for other approvals. |
| `decision` | `"approve"` | Yes |  |
| `draft_fingerprint` | `string \| null` | Conditional | For a content draft, send the fingerprint from the reviewed proposal. Omit it for a fresh check. |
| `max_credits` | `integer` | Yes |  |
| `section` | `"decide"` | 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 PATCH "$AEO_API_BASE_URL/v2/recommendations" \
  -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_patch_recommendations(
        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.v2PatchRecommendations(
  body,
  {
    idempotencyKey: process.env.IDEMPOTENCY_KEY!,
  },
);
console.log(response.body);
```

## Responses

#### HTTP 200

Draft approved

`application/json`

Response fields are listed below.

HTTP 200 response fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `object` | Yes | The requested result. See the fields below for its contents. |
| `data.action_id` | `string` | Yes |  |
| `data.analyst_run_id` | `string` | Yes |  |
| `data.approved_at` | `string` | Yes |  |
| `data.approved_by` | `string` | Yes |  |
| `data.approved_max_credits` | `0` | Yes |  |
| `data.brand_id` | `string` | Yes | Identifies the brand this result belongs to. |
| `data.draft` | `object` | Yes |  |
| `data.draft_fingerprint` | `string` | Yes |  |
| `data.estimated_credits` | `0` | Yes | The expected credit cost for this selection. |
| `data.finding_id` | `string` | Yes |  |
| `data.kind` | `"content_draft"` | Yes |  |
| `data.maximum_credits` | `0` | Yes | The upper credit estimate for this selection. |
| `data.organization_facts_status` | `"partner_confirmed" \| null` | Yes |  |
| `data.passage_id` | `string \| null` | Yes |  |
| `data.proposed_at` | `string` | Yes |  |
| `data.proposed_by` | `string` | Yes |  |
| `data.quote` | `null` | Yes |  |
| `data.run` | `null` | Yes |  |
| `data.run_id` | `null` | Yes | Approving a draft does not start a run. |
| `data.status` | `"approved"` | Yes |  |
| `data.v2_action_id` | `string` | No |  |
| `meta` | `object` | Yes | Information about this response, including any warnings or pagination details. |

#### HTTP 202

Fresh check accepted

`application/json`

Response fields are listed below.

HTTP 202 response fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `object` | Yes | The requested result. See the fields below for its contents. |
| `data.action_id` | `string` | Yes |  |
| `data.analyst_run_id` | `string` | Yes |  |
| `data.approved_at` | `string` | Yes |  |
| `data.approved_by` | `string` | Yes |  |
| `data.approved_max_credits` | `integer` | Yes |  |
| `data.brand_id` | `string` | Yes | Identifies the brand this result belongs to. |
| `data.draft` | `null` | Yes |  |
| `data.draft_fingerprint` | `null` | Yes |  |
| `data.estimated_credits` | `integer` | Yes | The expected credit cost for this selection. |
| `data.finding_id` | `string` | Yes |  |
| `data.kind` | `"fresh_check"` | Yes |  |
| `data.maximum_credits` | `integer` | Yes | The upper credit estimate for this selection. |
| `data.organization_facts_status` | `null` | Yes |  |
| `data.passage_id` | `null` | Yes |  |
| `data.proposed_at` | `string` | Yes |  |
| `data.proposed_by` | `string` | Yes |  |
| `data.quote` | `object` | Yes |  |
| `data.run` | `object` | Yes |  |
| `data.run.brand_id` | `string` | Yes |  |
| `data.run.charged_credits` | `integer` | Yes |  |
| `data.run.check_id` | `string \| null` | Yes |  |
| `data.run.check_url` | `string \| null` | Yes |  |
| `data.run.citation_status` | `"in_progress" \| "completed"` | No | Citation preparation status for this run, when applicable. |
| `data.run.created_at` | `string` | Yes |  |
| `data.run.estimated_credits` | `integer` | Yes |  |
| `data.run.failure_reasons` | `array of "access_restricted" \| "limit_reached" \| "input_missing" \| "approval_expired" \| "cancelled" \| "check_failed" \| "check_incomplete"` | Yes |  |
| `data.run.hold_reasons` | `array of "retry_pending" \| "under_review"` | Yes |  |
| `data.run.phase` | `string \| null` | Yes |  |
| `data.run.progress` | `object` | Yes |  |
| `data.run.progress.by_location` | `array of object` | No |  |
| `data.run.progress.by_location[].by_source` | `array of object` | Conditional |  |
| `data.run.progress.by_location[].completed_steps` | `integer` | Conditional |  |
| `data.run.progress.by_location[].expected_steps` | `integer` | Conditional |  |
| `data.run.progress.by_location[].location_id` | `string (uuid)` | Conditional |  |
| `data.run.progress.by_source` | `array of object` | Yes |  |
| `data.run.progress.completed_steps` | `integer` | Yes |  |
| `data.run.progress.expected_steps` | `integer` | Yes |  |
| `data.run.prompt_set_revision` | `string` | Yes |  |
| `data.run.released_credits` | `integer` | Yes |  |
| `data.run.report_id` | `string \| null` | Yes |  |
| `data.run.report_status` | `"pending" \| "ready" \| "not_available"` | Yes |  |
| `data.run.report_url` | `string \| null` | Yes |  |
| `data.run.reserved_credits` | `integer` | Yes |  |
| `data.run.run_id` | `string` | Yes |  |
| `data.run.status` | `string` | Yes |  |
| `data.run.updated_at` | `string` | Yes |  |
| `data.run.website` | `string \| null` | Yes |  |
| `data.run_id` | `string` | Yes | Identifies the run. Keep any prefix when using it in a request. |
| `data.status` | `"approved"` | Yes |  |
| `data.v2_action_id` | `string` | No |  |
| `meta` | `object` | Yes | Information about this response, including any warnings or pagination details. |

## 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)

[Recommendations and visibility analyst reference](https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst)
