Skip to main content
POST
Start Content Pipeline

Authorizations

x-api-key
string
header
required

API key for authentication. You can create one here.

Body

application/json
website_id
string
required
mode
enum<string>
required

draft: generate a brief and optionally an article from tracked prompts. snipe: draft an article using a competitor URL as input. optimize: improve an existing page for AI search. slice: turn one source URL into several articles.

Available options:
draft,
snipe,
optimize,
slice
title
string

Article title. Required for draft, snipe, and optimize modes.

url
string

Source page URL. Required for snipe, optimize, and slice modes. A URL without a protocol, such as example.com/article, is accepted.

prompt_ids
string[]

Existing tracked prompt UUIDs, up to 100. Required and nonempty for draft; omit for slice. Use IDs from the website's tracked prompt list; never invent them.

custom_instructions
string
brand_kit_id
string
sheet_id
string | null
use_content_memories
boolean
auto_approve
boolean

Draft mode only. Defaults to true, which continues from brief generation to article generation. Set false to pause at generated_brief until approve_brief is called.

content_format_type
string
persona_id
string<uuid>

Draft mode only. ID of one of the website's personas, from GET /api/v1/personas. The brief and article are written for that reader. Omit to write for a general reader. Returns 403 unless persona and location targeting is enabled for the organization and its plan includes personas, and 400 when the ID is not a persona of this website.

location_id
string<uuid>

Draft mode only. ID of one of the website's locations, from GET /api/v1/locations. The brief and article are written for readers in that place. Omit for no location focus. Returns 403 unless persona and location targeting is enabled for the organization and its plan includes locations, and 400 when the ID is not a location of this website.

kb_mode
enum<string>
Available options:
auto,
manual,
none
selected_topic_ids
string[]
pinned_claim_ids
string[]
fact_review
object

A reviewed fact selection from the fact preview. When present (draft mode with the knowledge base enabled), generation uses exactly these pillars and kept facts instead of computing a selection, and pinned_claim_ids no longer influences selection. Claims without a pillar are never used: a kept id that resolves to an unfiled claim is dropped and reported in the run's selection outcome.

rec_id
string
rec_kind
enum<string>
Available options:
on_page_topic,
on_page_snipe
pdf_file_name_or_r2_key
string

Response

Success

content_ids
string[]
required
status
enum<string>
required
Available options:
generating
slice_titles
string[]