# Approve or decline a post (https://notert.io/docs/api/reference/approve-or-decline-a-post)

`POST /api/v1/moderation/cases/{id}/review`

Approves or declines a case as the token's holder, as the Review page does, and as many times as it is sent decides it once: a case decided already as asked answers as the first call did, and one decided the other way is ALREADY_DECIDED. Approving puts a waiting post on the public board and tells who hears of new posts, keeps a flagged one there, and puts an appealed one back; it is refused for a post edited since it was read (EDITED_SINCE_READ) and while a report to Notert holds it (HELD_FOR_NOTERT). Declining needs a reason and takes the post off the board, kept on record for its author, who may be emailed why. Only owners and admins moderate (FORBIDDEN otherwise).

Access: A token with moderation:manage.

## Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The case, by its id from the queue. At most 64 characters. |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `decision` | string | Yes | approve: a waiting post goes on the board, a flagged one stays there and its case closes, and an appealed one is put back. decline: the post comes off the board, kept on record for its author, who is emailed why unless it is spam. One of: `approve`, `decline`. |
| `postEditedAt` | string or null | No | The case's postEditedAt as the queue answered it, for an approval, so a post edited since isn't approved unread. Left out, an approval is refused for a post edited at all. At most 40 characters. |
| `reason` | object | No | Why it is declined, which a decline needs and its author is told: its category, and a note for other. Left out when approving. |
| `reason.category` | string | Yes | Why it was declined: spam, harassment, hate, sexual, violence, personal_info (someone's personal information), off_topic or other (which the note explains). One of: `spam`, `harassment`, `hate`, `sexual`, `violence`, `personal_info`, `off_topic`, `other`. |
| `reason.note` | string | No | A few words on why, which only the team reads. Worth giving for other. At most 500 characters. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | The case's id, which a review takes. |
| `requestId` | string | The request posted, or the one the comment is on. |
| `commentId` | string or null | The comment posted, null when the post is a request. |
| `outcome` | string | How the case was decided. One of: `approved`, `declined`. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 400 | `REASON_NEEDED` | A decline needs a reason. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `FORBIDDEN` | The teammate who holds this API token's secret can't review posts. Only an owner or admin can. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't review posts held for moderation. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `NO_SEAT` | This workspace's plan has no seat for you. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 404 | `NOT_FOUND` | Not Found. |
| 409 | `ALREADY_DECIDED` | This case was decided the other way already. data.outcome says how. Its data holds `outcome`. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 409 | `EDITED_SINCE_READ` | The post was edited since you read it, so it wasn't approved. List it again, read what it says now, and send its postEditedAt. |
| 409 | `HELD_FOR_NOTERT` | A report to Notert holds this post, so it can't be approved. It can still be declined. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X POST https://app.notert.io/api/v1/moderation/cases/3b9d5f7a-1c2e-4a6b-8d0f-2e4c6a8b0d1f/review \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "decision": "decline",
  "postEditedAt": "2026-11-10 14:05:00.123456",
  "reason": {
    "category": "spam",
    "note": "Sells watches"
  }
}'
```

## Example response 200

```json
{
  "id": "3b9d5f7a-1c2e-4a6b-8d0f-2e4c6a8b0d1f",
  "requestId": "8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40",
  "commentId": null,
  "outcome": "declined"
}
```
