---
title: "Generate the week's content plan"
method: POST
path: "/api/v1/plans/generate"
tags: ["plans"]
---

# Generate the week's content plan

`POST /api/v1/plans/generate`

## Request

- Base URL: `https://api.cadencz.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cadencz.com/api/v1/plans/generate`
- Auth: HTTP bearer

Runs the smart-tier planner over the workspace strategy, learned voice, and a summary of recent analytics (the results→plan loop), and returns a themed week — each item with a why.

## Request body

- PlanGenerateRequest
  - `fresh` boolean

## Response `200`

Successful Response

- PlanRead
  - `id` string, required
  - `workspace_id` string, required
  - `week_of` string, date-time, required
  - `goal` string, required
  - `niche` string, required
  - `status` string, required
  - `items` PlanItemRead[], required
    - `id` string, required
    - `theme` string, nullable, required
    - `angle` string, nullable, required
    - `platforms` string[], required
    - `why` string, nullable, required
    - `prompt` string, required
    - `scheduled_for` string, date-time, nullable, required
    - `status` string, required
    - `format` string, nullable
    - `publish_mode` string
    - `content_metadata` object
    - `body_parts` string[]
    - `media_ids` string[]
    - `media` MediaRead[]
      - `id` string, required
      - `kind` string, required
      - `url` string, required
      - `alt_text` string, nullable
      - `width` integer, nullable
      - `height` integer, nullable
      - `bytes` integer, nullable
    - `created_at` string, date-time, nullable
  - `created_at` string, date-time, required

## Other responses

- `401`: Missing or invalid Supabase bearer token.
- `422`: Validation Error
- `502`: The upstream provider rejected the request.
- `503`: Required infrastructure or provider config is unavailable.

---

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