---
title: "Request AI suggestion comments on a content article"
method: POST
path: "/content/{id}/ai-comments"
tags: ["Comments"]
---

# Request AI suggestion comments on a content article

`POST /content/{id}/ai-comments`

## Request

- Base URL: `https://next.frase.io/api/v1`
- URL: `https://next.frase.io/api/v1/content/{id}/ai-comments`
- Auth: API key in header `X-API-KEY`

Generates a batch of AI-authored suggestion comments for the article and persists them. Synchronous — returns the created comment IDs and suggestion metadata. Each created comment can subsequently be applied via `POST /content/{id}/ai-comments/{commentId}/apply` or resolved via `PATCH /comments/{commentId}`.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `sidebar_context` string: Optional extra context (max ~3000 chars) appended to the reviewer prompt.

## Response `200`

AI suggestion comments created.

- object
  - `data` object
    - `comments` RequestedAiComment[]
      - `id` string, uuid
      - `category` 'structure' | 'clarity' | 'seo' | 'governance' | 'engagement' | 'authority'
      - `section` string
      - `quote` string
      - `suggestion` string
      - `suggested_text` string, nullable
      - `selection_anchored` boolean: True when `quote` was found in the draft's plain-text projection and the comment will be applyable. False means the quote couldn't be located — apply will 409 with `target_text_not_found`.
  - `request_id` string

## Other responses

- `400`: Validation failed
- `401`: Authentication failed
- `404`: Resource not found
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/frase/apis/frase-api.md) · [All operations](https://skmtc.dev/frase/apis/frase-api/llms.txt) · [OpenAPI document](https://skmtc.dev/frase/apis/frase-api/revisions/7fb75d89f7a4?raw)
