/v1/tools/plan_contentpricedPlan content
Plans the posts, captions, blog posts, reels plans, recaps, newsletters or show notes worth writing from words, a document or a transcription: the distinct ideas it holds, each with the moment it starts, and the pieces that would work best from each, one row each, before anything is written.
Takes file (file). Give exactly one of: source; or file. Returns plan (the pieces proposed, one row each, read by the idea each comes from, with its kind and its angle; an idea with nothing proposed has a row of its own. Its rows are the pieces Write content is given to write), text (every idea and the pieces proposed from it, as one text to read).
$0.08 a plan.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
file | string | None | A file_id from create_upload, accepting text/plain, text/markdown, application/vnd.scrub.transcript+json, application/json, up to 16 MB. Get one with create_upload. Or the job_id of a finished job that made a file of this kind: that file is used. Pass the job_id rather than retyping its result. Without one, transcribe (Transcribe a video) makes one, or transcribe_audio (Transcribe audio) makes one: run it first and pass its job_id here. |
source | string | None | The words to plan from, typed or pasted, up to 60,000 characters (about 45 minutes of fast speech); an article, notes, a transcript or a script. |
audience | string | | Who it is written for, in a few words; it proposes what works best for them. Left empty, whoever the source speaks to. |
tone | string | | How the brand sounds, in a few words or a sentence; left empty, as the source sounds. |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/plan_content \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{}'Answer
{
"ok": true,
"result": {
"job_id": "job_…",
"status": "running",
"price_usd": "$…"
}
}It starts at once and answers running. Ask job_status with the job_id for its result. quote gives its price first, free.
Every call can also answer an error: what comes back. Try it with your key from Account.