Repurpose long-form content into a draft post set with a carousel
POST/:workspaceUuid/ai/repurpose
Turns an article URL, a YouTube video, a PDF or pasted text into one draft post with a caption for every target account, plus a carousel of rendered slide images (hook, 1 to 6 idea slides, call to action; 1080×1350 PNG). Nothing is published or scheduled.
Sources (source_type):
url: the article is fetched and its main text extracted.youtube: title, description and chapters come from YouTube; send the transcript intranscriptfor better results (required when the description is short).pdf:pdf_urlmust be a public PDF of at most 20 MB; the first 30 pages are read.text: sendtitleandtext.
Carousel per network: Instagram, Facebook, Threads up to 10 slides; LinkedIn up to 9;
X and Bluesky up to 4; other networks get the cover slide; YouTube and TikTok get none
(listed in warnings). Without a carousel, the source image (article image or video
thumbnail) is attached when available.
AI credits: one per target account plus one for the carousel outline. Slides are drawn
without AI and cost nothing. The workspace brand voice applies unless use_brand_voice is
false. Send an Idempotency-Key so a retried call does not create a second draft.
Limited to 10 calls per minute.
Long runs: the run is queued. The call waits up to 20 seconds and answers 200 with the
result when the run finished by then. Otherwise it answers 202 with a run_id; poll
getRepurposeRun (status_url) every few seconds until the status is ok, partial or
failed. Send async: true to get the 202 right away. Validation, account and credit
errors are answered before anything is queued.
Request
Responses
- 200
- 202
- 401
- 403
- 422
- 429
- 500
Draft post set created
The run is still going (or async was set); poll status_url.
Missing or invalid API token.
Access denied. Returned when the caller is not a member of the workspace, lacks the role
the endpoint needs, or the workspace's plan does not include API access (capability api).
Validation failed.
AI credits exhausted for this billing period.
The run failed while the call waited. getRepurposeRun shows the error.