# Decide Copy Approval Beta

> Approve a campaign's copy as it is now, or ask for changes.

> Documentation index: https://www.foxreach.io/docs/llms.txt lists every page of these docs. Each page is also served as Markdown: add `.md` to its URL.

`POST` https://api.foxreach.io/api/v1/campaigns/{campaign_id}/approval

> **Note:** **Beta.** Copy approval endpoints are new and may change.

Requires an API key with the `write` scope.

When an agency turns on copy approval for a client workspace, its campaigns start or resume only once the client has approved the current copy: every step's subject and body and every A/B variant. [Start Campaign](https://www.foxreach.io/docs/api-reference/campaigns/start-campaign) and [Resume Campaign](https://www.foxreach.io/docs/api-reference/campaigns/resume-campaign) return `409 copy_approval_required` until then, and an edit after approval needs approving again. In a workspace without the setting, the state is still kept but nothing waits for it.

Approving records the copy as it is at that moment. Asking for changes needs a note saying what should change. When the approval was requested by someone else, they get an in-app notification of the decision. Writes an `audit.copy_approval.approved` or `audit.copy_approval.changes_requested` entry.

## Path Parameters

- `campaign_id` string path required

  The unique identifier of the campaign.

## Body Parameters

- `decision` string body required

`approved` or `changes_requested`.

- `note` string body

  Up to 2,000 characters. Required when `decision` is `changes_requested`.

## Response

- `data` object

  Approval state:

  - `required` boolean: Whether this workspace needs the client to approve a campaign's copy before it sends. The agency sets it per client workspace with [Rename Agency Client](https://www.foxreach.io/docs/api-reference/agency/rename-client) (`requireCopyApproval`).
  - `status` string | null: `pending`, `approved`, `changes_requested`, or `null` when approval was never asked for.
  - `upToDate` boolean: `true` when the copy was approved and has not changed since. An edit to any step's subject or body, or to an A/B variant, after approval makes it `false`, and the campaign needs approving again.
  - `decidedBy` string | null: Name (or email) of the person who last requested or decided.
  - `decidedAt` string | null: ISO 8601 timestamp of that request or decision.
  - `note` string | null: The note left with the decision.

**Request example**

```bash cURL
curl -X POST "https://api.foxreach.io/api/v1/campaigns/cmp_abc123/approval" \
  -H "X-API-Key: otr_your_key" \
  -H "Content-Type: application/json" \
  -d '{"decision": "changes_requested", "note": "Shorten step 2 and drop the discount."}'
```

```python Python SDK (beta)
from foxreach import FoxReach

client = FoxReach(api_key="otr_your_key")
client.campaigns.decide_approval("cmp_abc123", "approved")
client.campaigns.decide_approval("cmp_abc123", "changes_requested", note="Shorten step 2.")
```

```typescript TypeScript SDK (beta)
import { FoxReach } from "foxreach";

const client = new FoxReach({ apiKey: "otr_your_key" });
await client.campaigns.decideApproval("cmp_abc123", { decision: "approved" });
await client.campaigns.decideApproval("cmp_abc123", { decision: "changes_requested", note: "Shorten step 2." });
```

**Response example**

```json
{
  "data": {
    "required": true,
    "status": "changes_requested",
    "upToDate": false,
    "decidedBy": "Dana Client",
    "decidedAt": "2026-12-03T10:15:00+00:00",
    "note": "Shorten step 2 and drop the discount."
  }
}
```

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | API key does not have the required scope: `write` |
| `404` | Campaign not found |
| `422` | `decision` is not `approved` or `changes_requested`, `note` is over 2,000 characters, or `changes_requested` has no note |

## Rate Limit

- **120 requests per minute, shared by every `write` call in your workspace.** Fixed 60-second window.
- Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (unix epoch seconds) and `X-RateLimit-Bucket` (`write`).
- A `429` response includes a `Retry-After` header (seconds until the bucket resets).

For client-side patterns, see [Rate Limiting](https://www.foxreach.io/docs/rate-limiting).
