---
title: "Analyze niche & propose instruction edits"
method: POST
path: "/v1/content-groups/{groupId}/analyze"
tags: ["Content Groups"]
---

# Analyze niche & propose instruction edits

`POST /v1/content-groups/{groupId}/analyze`

## Request

- Base URL: `https://www.postquick.ai/api`
- URL: `https://www.postquick.ai/api/v1/content-groups/{groupId}/analyze`
- Auth: HTTP bearer

Run the self-improving loop for a content group: search popular content in its niche, then draft instruction-edit proposals (or auto-apply them if mode/auto_improve is on). Returns a summary + a jobId to poll. Proposals appear at GET /v1/content-groups/{groupId}/instruction-proposals.

## Path parameters

- `groupId` string, required: Content group ID

## Request body

- object
  - `mode` 'propose' | 'auto': Override the group's auto_improve setting for this run. 'propose' queues edits for approval; 'auto' applies them immediately.
  - `platforms` string[]: Platforms to search for niche trends. Defaults to all.
  - `limit` integer: Max popular posts per platform.

## Response `202`

Analysis complete; proposals drafted (or applied).

- object
  - `success` true, required
  - `data` object, required
    - `jobId` string, required
    - `mode` 'propose' | 'auto', required
    - `proposalsCount` number, required
    - `appliedCount` number, required: How many edits were auto-applied (0 in propose mode).

---

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