/
Developer
Get a key
Knowledge base
Start here
Context
Topics & Planner
Self-serve setup
Phantom
Back to app
Interface →
Capability →
The grid
REST
Plain HTTP · the publish loop
891 tools
Set up →
MCP
The full surface, for agents
891 tools
Set up →
CLI
letterstory, in your terminal
891 tools
Set up →
Content
Read, draft, and publish articles: the words themselves.
48
all tools
48
all tools
48
all tools
Collections
A publication with one config file. run_collection sources, writes, gates and publishes one post.
58
all tools
58
all tools
58
all tools
Canvas & visuals
Canvas style templates, semi-structured compositions, stickers, and table/venn visuals.
21
all tools
21
all tools
21
all tools
Flows
Run editing passes over an article and read the results back.
2
all tools
2
all tools
2
all tools
Templates & connections
Content templates, drafts held for review, and the org's GitHub and Notion connections (set_github_connection, set_notion_connection).
13
all tools
13
all tools
13
all tools
Writing kernels
Submit a topic/brief to an external writing kernel and get a finished draft written back.
62
all tools
62
all tools
62
all tools
Connectors
Push finished articles out to Webflow, Framer, or Google Docs.
54
all tools
54
all tools
54
all tools
Phantomstory
Sites Letter hosts as independent publications: create, configure, add a domain, rebuild. Publish with run_collection.
36
all tools
36
all tools
36
all tools
Mailers
Outbound email. Mailers: domains, warm-up, reply forwarding, suppression. Prospects: lists from CSV or a description. Sequences: multi-step emails with a review queue.
86
all tools
86
all tools
86
all tools
Strategy
Positioning, competitors, and onboarding that steer the writing.
125
all tools
125
all tools
125
all tools
Insights
Search Console performance and The Story's momentum feed. Connect Search Console first in Settings → Integrations → Google Search Console (https://app.letterstory.com/settings?tab=integrations).
143
all tools
143
all tools
143
all tools
Landings
Landing pages and when to cite them. Collections with auto-mention link to them in new articles.
5
all tools
5
all tools
5
all tools
The Site
One model of a customer's whole marketing site keyed by host and path: map a host, walk the tree, read what was noticed, and propose, accept or dismiss changes.
68
all tools
68
all tools
68
all tools
Simulations
A simulated deployment of your own API that agents can use for free, at /sim/<slug>: create one from an OpenAPI spec, choose how each resource is served, and read every agent session and what it got wrong.
15
all tools
15
all tools
15
all tools
Automations
Make an event into an action, with a read in between: when a competitor publishes a page, a visitor is identified, Letter finds a new issue on your site, a letterbase has a post ready for review or your own system sends an event, Letter reads it against your filter and Letterpress does what your prompt says, on its own: writes a post, enrolls the person, fixes the issue or builds the change.
16
all tools
16
all tools
16
all tools
A/B tests
A/B tests of a page's words and images on your own site: one page, the original and its variants, each visitor shown one by a draw on the page, and the results per variant (time on page, scroll, conversions) against the original.
9
all tools
9
all tools
9
all tools
Domains
The domains your organization holds, whatever each is used for (a phantom site, mailers, a bench), and finding new ones: free domains that match what people search, ranked by monthly searches and priced, then registered as your own.
5
all tools
5
all tools
5
all tools
Account
API keys, organization profile, branding assets, members, and pending invites.
125
all tools
125
all tools
125
all tools
The grid
Capability
58 tools
Collections
A publication with one config file. run_collection sources, writes, gates and publishes one post.
All 58 tools
POST
search_collections
Search collections by name/title in the caller's organization. All words must match. Returns 8 results unless `limit` says otherwise (20 at most), with their app links.
collection:read
POST
list_collections
List the caller's collections — each a publication with a standing configuration that produces and publishes posts on a cadence. `public_id` is the collection's address for the HTTP door (POST /api/collection/ingest/{public_id}); `hosted` marks a phantom (a site Letter hosts as an independent publication); `sponsor_disclosure_surfaces` says where it discloses its sponsor (empty = nowhere). Use collection_id to filter list_articles, as the target for ingest_article, or to run_collection.
collection:read
POST
get_collections_overview
How is each collection doing? The Collections page as data: every collection with the site Letter hosts for it (null for the client's own blog), where it publishes, its running state in one word (publishing / paused / setting_up / needs_attention / manual), posts total and published with the last publish date, posts showing in Google (hosted sites), and AI reads — AI assistants fetching its pages to answer someone — over the last 30 days with the 30 before and a daily series (hosted sites). For the collection's settings use get_collection_config; for posts, list_articles.
collection:read
POST
get_collection_config
Read a collection's configuration as ONE FILE: identity (brand_subject, publish_control), content (research depth, kernel family, verify/shred/visuals, cover, mention degree, template), cadence (on/off, posts per week, timezone, sourcing, approval mode, direction), publishing (publish locally, CMS, rebuild), targets (whether the org's ranking targets are pressed on this collection, the steering tier and the share of write slots it aims at target ground, what is bound), measurement (GEO probing), sourcing (demand_focus: whether headline ranking leans on search, AI answers, or both), disclosure (where an independent publication discloses its sponsor — the 'safe mode' surfaces — and who it names), and custom_fields (this collection's own declared post fields — e.g. faq, itemList, seoTitle — each generated automatically by run_custom_fields_pass). What set_collection_config patches, read back from the rows the engine actually reads.
collection:read
GET
get_collection_run
Poll a collection run: status (scheduled → sourcing → writing → ready → publishing → published; failed | skipped | cancelled), the step in flight, the headline, the article it wrote, the constraints it ran with, the verification read-back once settled, and the arena/kernel runs it composed. Polling nudges a run in flight forward. A run at 'ready' under manual approval waits for approve_collection_run.
collection:read
POST
list_collection_runs
Recent collection runs — the whole org, or one collection — newest first, with origin (direct vs the planner's own slots), caller, status, and verification. This is the planner's calendar too: 'scheduled' rows are its upcoming slots.
collection:read
POST
list_topics
List a collection's content-planner topic map: the pillars (clusters) it's building topical authority on, and each pillar's spokes (candidate subtopics) with their status. ONLY status 'open' is available to write: 'queued' means the Planner has already claimed it for a scheduled slot, 'covered' means a post already exists for it (see article_id), and 'dismissed' means it was rejected — writing any of those duplicates work the site has already done. Use an open spoke's topic_id with set_topic to queue it as the next piece, or with run_collection (topic_id) to write it now.
collection:read
POST
get_collection_context
Why is this collection writing what it's writing? Returns the context generation actually reads for it — every field resolved org → offering → collection, with origin naming the layer that decided each one — plus the collection's own layer (local, what set_collection_context edits) and its mention set (offerings; the primary is the offering it publishes as and inherits from). Context is layered org → offering → collection. Each layer stores ONLY what it overrides: an omitted field inherits, and null resets a field to inheriting. name, aliases, url, manifesto, identity, default_framing and priority_topics resolve to the nearest layer that sets them (priority_topics REPLACES, so a product never inherits its siblings' focus); stances, avoid_topics and blocked_mentions are ADDITIVE across layers, and stances rank most targeted first (collection, then offering, then company-wide). For the standing instructions steering it, see list_collection_directives.
collection:read
POST
list_automations
A letterbase's automations: what it writes, how often, and why (docs/architecture/automations.md). Each is one kind: topic (a pillar of the topic map, optionally aiming at a ranking target, or goal-led: the topics that press a target), series (a format repeated over items), signal (a seer: writes when something happens) or best (the most valuable idea anywhere: the rest of the week). weekly_total is the sum of the paces that are on. With none stored, `derived` lists what runs today; the first change stores them.
collection:read
POST
get_ground_measures
The ground a letterbase's automations write on, as writing reads it (docs/architecture/measure-feedback.md): each pillar and each question with its kind — strength (the client already wins: named, cited, posts beating their peers; double down), near_win (doing decently, not yet winning: the fastest results) or gap (rivals win, nothing of the client's there yet: slower) — and the numbers behind it: Named and share of voice (the one measure, docs/architecture/share-of-voice.md, on the pillar's questions), the leading rival, its posts' performance against their peers, and its Search position. The stored snapshot with its age (`computedAt`, `stale`); refreshed every few hours. Ranking ideas, measured subjects and strategy proposals all read this.
collection:read
POST
get_what_works
What kind of content works in a letterbase, read against peers (docs/architecture/measure-feedback.md): each post's agent uses — live AI reads (an agent fetching the page to answer a person; our own probes out) plus answers citing it — and its impressions and people, each over its peers' median in the same window (a young post's first X days against its peers' first X days; a settled post's last 30 days against settled peers'; 1 is typical, 2 twice its peers), a settled post's traction against its own previous 30 days, and every group the same way: by automation, pillar, series format, question type and topic kind (`now` reads its newest posts and settled posts' last 30 days: what pressing reads). The stored snapshot with its age.
collection:read
POST
list_automation_ideas
A letterbase's (collection's) future ideas, grouped by the automation that owns each (docs/architecture/automations.md): one group per automation (a subject, a format, an event, then Best) with the headlines it writes next in write-next order, each with a few words of why. Every idea belongs to exactly one automation (a series' installment, a seer's idea, a pillar's, a goal-led topic's, else Best's), so this is what is waiting and who will write it. The same read as the letterbase page's Future ideas by automation and get_automation's Next. For the topic map's spokes and their status, list_topics. With none stored, `derived` groups are what runs today.
collection:read
POST
suggest_automations
What a letterbase could add, per kind of automation, ranked by the same evidence as what gets written. Topics: its pillars with no automation yet (with what each writes next, and its kind of ground, strength / near win / gap, with a reason in numbers; strengths and near wins first), new ground no automation covers (a gap only where it fits the letterbase) then its priority topics that aren't pillars yet (create_cluster, then create_automation), and ranking targets no automation aims at. Series: formats the writing pipeline delivers (explainers, approach comparisons, practical guides, our take, common mistakes, questions buyers ask), each with what one post is and an example in this company's words, less the ones it already runs, the ones that do best against their peers here first (create_automation with new_series and that purpose; no template, research shapes each post from its headline and the purpose). Writes nothing.
collection:read
POST
suggest_starter_automations
The first automations for a letterbase, chosen from evidence about the client (what its onboarding read: keywords it ranks for, 28 days of Search Console, its pages, where its rivals rank, where AI answers name it): two or three topics on its strengths (ranks in the top 3, named on most answers) and near wins (ranks 4-20, shown off page one, named some of the time), one gap topic (a rival ranks or is named, it isn't) only when relevant and strong, a series for a format the site already keeps, and Best for the rest, at 3 posts a week. Each item has its reason with the client's numbers and the first three headlines it will write. With no evidence yet, the set comes from positioning and rival gaps, and `note` says so. Writes nothing: accepting is running `steps` in order (create_automation / update_automation, pauses first, Best last), the person's choice; leave an item's step out to skip it. Reads the evidence now (about two minutes, bounded) when onboarding stored none.
collection:read
POST
preview_automation
What a topic or series would write, before adding it or after changing its brief: a topic's subjects (mapped from its name and brief, through the same checks as the topic map) or a series' first headlines. Writes nothing; one model call. Pass a topic's subjects back to create_automation (new_topic.subjects) or update_automation (subjects, with remap) to get exactly these.
collection:read
POST
suggest_more_topics
New subjects a letterbase doesn't cover yet, each with why: proposed from search demand, competitors' ground and the company's positioning, never one it or a sibling site already maps. Writes nothing; one model call. Add one with create_automation (kind topic, new_topic).
collection:read
POST
get_automation
One automation, opened: what it covers (scope: its subjects, items, watched settings or sources, each written or not), its scheduled posts and the open slots the engine will give it (soonest first: an open slot goes to the automation furthest behind its pace), the ideas it writes next in write-next order (the stored rank), what it wrote last, and, for a topic, where it stands: its strengths, near wins and gaps on its questions with their numbers. The same read as the letterbase page's automation row, opened.
collection:read
POST
get_internal_link_status
The internal-link refresh for one collection: whether it is on (on by default wherever the collection has a sitemap), how many published posts are due for a refresh now, and when the next one comes due. The nightly sweep refreshes due posts, most overdue collections first, every post at least every two weeks; on a manual-approval or client-CMS collection the new links are proposed for approval (list_revisions) instead of republished. Run the next batch now with refresh_internal_links.
collection:read
POST
preview_preferred_sources
Step 1 of bringing a collection's PUBLISHED posts up to its preferred sources (update_auto_pen_config preferred_sources). Queues one DRY proposal per eligible post — published, with a Sources list, and a preferred site it does not cite yet. Each searches the preferred sites for pages on the post's topic, reads them, and proposes at most one sentence stating one of their figures, judged against the sources the post ALREADY cites: a fit from 1 to 5 and whether it adds anything they do not. Nothing is written to any post. The enhance cron works through the queue every two minutes; read the result with get_preferred_sources_preview. Supersedes an unfinished earlier preview.
collection:read
POST
get_preferred_sources_preview
Step 2: the latest preferred-sources preview of a collection, ranked. A proposal QUALIFIES at fit 4 or 5 when it adds something the post's sources do not. For the client's own site only the strongest qualifying proposals are chosen, up to the collection's ceiling (client_one_in: at most one in N published posts cites the client, counting those that already do); relevance decides how many, the ceiling only caps it. Qualifying third-party proposals are all chosen. Returns each proposal's sentence before and after, its link, fit and reason; what is held by the ceiling or below the bar; why nothing fit elsewhere; and `projected` — the posts citing the client after applying, of the published, as a 1-in-N.
collection:read
POST
get_collection_inventory
Where every piece in a collection is — being written, written but not live (and what each waits on), live, and the client's own imported posts kept apart, each listed post with its coverImage — plus pendingReview: finished drafts never published, each with autoPublishAt, when it goes live with nobody acting (the collection's Human Checkpoint decides: autopilot publishes on the next sweep, a review window when its hours close, manual approval never — null means it waits for a person). Every listed post has `url`, the draft open in the app: give it as the post's link, never a guessed address. pendingReview items also have `finishedAt`, when the draft became finished (updatedAt is only its last edit). Each section lists up to 500 posts (`count` is always exact). The same read as the collection room's Work tab and 'needs you' strip.
collection:read
POST
get_enhancer_file
The enhance file a collection's passes run, as ONE complete, versioned JSON file — the same pattern as a kernel, arena and shredder file: the model in each pass's seats (visuals: brief, draw, pick, table; internalLinks: rank, place; externalLinks: source, verify; metadata, and the model a shredded post's metadata uses) and each pass's settings (the internal-link ceiling, sitemap candidates, source types, citations per source, visuals per post). Whether a pass runs stays the collection's policy (update_auto_pen_config). Says where the file comes from (your own copy, a pinned platform version, or ours) and whether we have released a newer version than your copy's base (`offer`).
collection:read
POST
list_enhancer_versions
A collection's enhance file history: your copy's versions (newest first, the live one marked) and our released platform versions, which you can pin (pin_enhancer_version). Every pass run records the version it ran (get_enhance_run `version_label`).
collection:read
POST
create_collection
Create a collection — a publication with its own configuration, cadence and topic map. Pass `config` to start it configured (cadence, content, publishing, targets, measurement — the same one-file document set_collection_config takes); its identity (brand_subject, publish_control) defaults to a client blog publishing on Letter. For a site Letter hosts as an independent publication, use create_phantom instead. Returns the collection with its public_id.
collection:write
POST
set_collection_config
PATCH a collection's one-file configuration — send only the sections and fields you mean to set; everything omitted is kept. `cadence.enabled: true` turns the planner on and materializes its publish slots (on a collection with automations, enabled and posts_per_week are their weekly total: the next automation change resets them; set paces with update_automation); `targets.enabled: true` binds the org's active ranking targets (add_ranking_target) to this collection so the tier's share of write slots press them (1 in 2, 2 in 3 or 4 in 5; a rung needs both cited pages and published target posts — targets.ramp) — the same share orders list_suggestions and the slot claim — at the tier it earns or the manual `targets.tier` you set. `content.mention_degree` must stay 'off' on an independent collection — the capability flag wins. `relevance` holds how tightly the collection stays on the client's product — min_topic_relevance, brand_gate, min_brand_fit, pillar_breadth, auto_approve_pillars, keyword_scope — each on its capability's preset (a client-brand main blog held to the product, an independent phantom free to cover its field) unless set here; null puts a dial back on the preset, `overridden` lists the ones set, and each change is logged. `sourcing.demand_focus` ('seo' | 'geo' | 'balanced') shifts headline-ranking weight toward search or AI-answer demand without dropping the other; ranking targets keep the steering tier's share of slots under every focus, and each change is logged with its actor. `disclosure` ('safe mode') sets where an independent publication discloses its sponsor: `surfaces` is the whole set (article_header, article_footer, cover_badge or cover_baked, structured_data, sponsored_links, meta_description, site_statement, site_byline; [] = off; safe mode = every surface except the cover ones; cover_baked serves cover_image as the cover with the label drawn in) and `sponsor_label` overrides the name (required on internal/phantom_farm orgs). It is served beside the body as sponsor_disclosure on list_published/get_published/get_article, never written into it, so a change reaches every existing post on the site's next rebuild (triggered here); a client-brand collection cannot disclose. `custom_fields` is the one array-shaped section: sending it REPLACES the whole declared set of this collection's own post fields (upsert-by-key, delete anything no longer listed) — each has a key, label, generation_prompt (the instruction handed to the model), a shape (text | list_of_text | object | list_of_objects), and write_policy ('always' regenerates every pass; 'create_only' is written once and never touched again). A field's generation_prompt is free text sent straight to the model and written into every future post — treat this capability accordingly when sharing the key that grants it. Values are generated by run_custom_fields_pass and appear on get_published/list_published as custom_fields.<key>. Returns the whole file as it now reads plus which sections were applied.
collection:write
POST
recheck_topic_relevance
Re-judge a collection's PENDING topic-map spokes (open and queued) against its relevance dials (get_collection_config `relevance`) — the same brand check the topic map runs on new topics, for a backlog planned before the dials changed. Under the collection's brand_gate: strict drops off-brand topics and flags unsure ones; narrow drops unsure too; lenient drops off-brand only; off judges nothing. A dropped OPEN topic is set to 'dismissed' with a brand_check evidence note saying why (reopen it to undo); a dropped QUEUED topic is only flagged, since it is already in a scheduled run. apply: false (default) returns the verdicts and writes nothing; apply: true writes them and logs the pass, with its counts and your note, to the collection's event history.
collection:write
POST
delete_collection
Delete a collection from the caller's organization. Articles in the collection are preserved but become orphaned (hidden from listings) until reassigned with assign_article_to_collection. A hosted phantom's collection cannot be deleted this way — tear the phantom down (delete_phantom).
collection:write
POST
set_main_collection
Make a client collection the organization's MAIN blog: the collection get_onboarding_plan treats as the main blog (its collection and planner steps target it), Measure defaults to, and the company's own-site AI-search probes and Search Console binding attach to. Exactly one per organization; the previous main blog stays as it is, just no longer main. Use it when the organization has more than one client collection and the plan points at the wrong one (list_collections shows `is_main`). Refuses a phantom (an independent publication). Idempotent: `changed` is false when it was already the main blog.
collection:write
POST
run_collection
Produce ONE POST on a collection, THE DOOR: source the topic (given, a spoke of the map, a pool headline, or the next open spoke), write it (research through an arena, the kernel, the link/visual/metadata passes, optional shred — all in-process), gate it (approval_mode: 'manual' pauses at 'ready' for approve_collection_run, 'review_window' publishes after the hold, 'autopilot' goes straight through), publish it by the collection's publish_control, mark the spoke covered, and — when the collection is a hosted phantom — rebuild the site. Every run gets a row (get_collection_run / list_collection_runs) recording the constraints it ran with and a verification read-back (sourced, written, independent, linked, illustrated, published, covered, rebuilt). Every field is optional and inherits the collection's file; `schedule_for` places it at a future slot instead of now. This always WRITES a new post: to publish a post that is already written, ingest_article it (title + body, nothing is written) and give it a day with schedule_article_publish or publish it now with publish_article. A DIRECT run spends the collection's weekly cadence budget (its posts_per_week): on a phantom (independent) collection it is refused, never queued silently, once the week is spent; on the client's own blog it is never refused, and the response carries a cadence_warning instead. ASYNCHRONOUS AND SLOW: 20–60 minutes; returns a run_id immediately, poll get_collection_run (30–60 s apart; polling nudges the run forward).
collection:write
POST
approve_collection_run
Answer the gate: approve a run waiting at 'ready' (or one still producing — the approval is remembered and it publishes at its slot). `publish_now: true` publishes a ready run immediately instead of waiting for the slot.
collection:write
POST
reschedule_collection_run
Move a post on the collection's calendar to another day (YYYY-MM-DD; it goes live at the collection's publish time). Moves a slot that hasn't started writing (status 'scheduled', with a headline or open) — its writing starts its lead time ahead of the new day — or a written post already approved (status 'ready' with approved_at), whose approval stands. A written post nobody approved yet gets its day from schedule_article_publish instead (choosing the day is the approval). Use this to clear room on a day or pull a post earlier; list_collection_runs shows the calendar. A minute or two may be added to dodge a post already on that instant. Refused once a run is writing or publishing.
collection:write
POST
start_collection_run
Start a slot on a collection's calendar now (a run at status 'scheduled', from list_collection_runs): its post is sourced and written as it would be at its lead time (the headline it holds, else what its writing automation writes next, by the collection's own pacing), then gated and published by the collection at its slot as usual. Nothing is written by the caller: the collection's pipeline writes it. This is how a letterbase's writing automation (list_event_automations, template write_posts) starts the slot that is its own; the slot's run then names the automation and its run (`automation`), and a slot is started once. started: false says what it waits on (the spend cap, the topic map) in run.phase_detail. Refused once it has started, and on a paused site or a letterbase whose schedule is off. To write a new post outside the calendar, use run_collection; to move a slot, reschedule_collection_run.
collection:write
POST
cancel_collection_run
Cancel a run in flight (scheduled, sourcing, writing, ready or publishing). Its slot stays occupied; a queued topic returns to the pool; a claimed spoke goes back on the map.
collection:write
POST
release_held_post
Bring a held post within the rule the publish guard holds it on. A written post the guard refuses is kept, never thrown away: list_collection_runs / get_collection_run show it with skip_code 'held_guard' and `held` (the finding, what was counted, and whether this can bring it within the rule). This puts the slot back at publish, where the guard reads the post again and the draft is trimmed to the finding, as it was the first time, with the whole attempt budget. Refused when the post is not held, or when what is left is only in the text of links to sources (`held.can_rewrite` false): those are edited in the draft, then it is published. Acts on the caller's own organization.
collection:write
POST
update_auto_pen_config
Set a collection's Auto-Pen configuration — the same settings the app's Auto-Pen panel writes, including which content template its posts compose with. This is a PATCH: omitted fields are left as they are, so changing one setting never blanks the rest. template_key binds a template (from list_templates) as the collection's default, which is how a template authored through this API actually gets used. Returns the full resulting configuration.
collection:write
POST
update_collection
Update a collection in the caller's organization. Provide any of name, description, cadence_target, cadence_period, cover_canvas_type_id, or seo_market; omitted fields are left unchanged. seo_market is the country this collection's keyword demand is measured in (null inherits the org's). cadence_target + cadence_period set the target publishing pace (e.g. 3 per week). cover_canvas_type_id sets which Canvas type mints cover images for the collection's articles (null clears it). See list_canvas_types.
collection:write
POST
configure_collection
Turn on (or reconfigure) a collection's Planner — the recurring content autopilot that sources headlines, drafts them, runs Auto-Pen (Research → Write → Enhance), and publishes on a cadence. One call sets cadence, approval posture, and an optional steering prompt, then materializes the upcoming publish slots. On a collection with automations (list_automations), the cadence is their weekly total and the next automation change resets it: change paces with update_automation instead. On a collection with no Planner config yet, enabled defaults to true and cadence to 3/week; otherwise every knob you don't set is left as it was — read it with get_collection_config first. Approval defaults to manual on a client blog; pass approval_mode 'autopilot' only for a blog you're comfortable publishing to with nobody in the loop. `decisions` says, per knob, whether the value came from you, the saved config, or the default.
collection:write
POST
activate_collection
The review is done — turn the collection on. Builds the topic map from the collection's current content areas, seeds a first headline batch from it, then starts the Planner at cadence_per_week/approval_mode with the queue filled — the exact activation the self-serve Guided review step runs on Continue, callable by an integration with its own consent flow. Use after onboard_collection finished (or after adjusting areas with create_cluster/delete_cluster) when you have the user's go-ahead on cadence and approval; omit both to keep the saved values. Returns activated:false with a reason and remedies when the collection has no content areas to build from (set_positioning / create_cluster / re-run onboard_collection) — a precondition, not an error. To reconfigure an already-running Planner without regenerating anything, use configure_collection. Needs a user-scoped key (an acting user for attribution).
collection:write
POST
regenerate_covers
Enqueue a durable cover-regeneration job for a collection and return immediately (covers are minted one at a time, ~45-60s each, so a full sweep can take hours). 'regenerate' (default) re-mints every published post's cover with the collection's current template; 'missing' only mints posts that have no cover yet; 'stock' only sets covers where a stock photo clears the ranker's bar, leaving every other post untouched. At most one job runs per collection at a time: calling this while one is already running returns that job's id instead of starting a second. Poll get_cover_regen_status until status is 'done' (or 'failed').
collection:write
POST
generate_collection_authors
Generate a bank of believable recurring authors for a collection using its name/description and topic map, and add them as active authors. Names only by default; pass with_bios for a one-line bio and masthead role per author. Idempotent by name. Use this to give a phantom site real bylines instead of a fresh throwaway author per post.
collection:write
POST
upsert_collection_author
Create or edit one author in a collection's bank. Provide author_id to edit (omitted fields unchanged) or omit it to create (name required). Fields: name, bio, role, expertise (topic areas), started_at (YYYY-MM-DD, may predate the site), active.
collection:write
POST
delete_collection_author
Remove an author from a collection's bank. Posts already bylined by them keep their byline until reassigned with assign_collection_authors.
collection:write
POST
assign_article_to_collection
Move an article into a collection (or between collections) within the caller's organization. Both the article and the target collection must belong to the caller's org.
collection:write
POST
set_topic
Queue a topic as the collection's next piece to write: the earliest open slot on the schedule, or a new slot extending the calendar if none is open. Pass topic_id (an open spoke from list_topics) to queue from the topic map, or suggestion_id to queue an already-sourced candidate directly — provide exactly one. The Planner must already be set up and turned on for the collection.
collection:write
POST
set_collection_context
Edit a collection's own layer of context — editorial fields only (identity belongs to the offering). Omitted fields are unchanged; a sent list replaces this collection's list. stances, avoid_topics and blocked_mentions are ADDED to what the offering and org already say (this collection's stances lead in prompts; a collection can only be stricter, never remove an inherited avoid topic). priority_topics REPLACES the inherited focus (null = inherit again). default_framing null = inherit. Returns the re-resolved context, as get_collection_context does.
collection:write
POST
set_collection_offerings
Replace a collection's mention set: the offerings (list_offerings) it may promote. Exactly one must be is_primary — the offering the collection publishes as or mostly promotes, and the parent its context inherits from. A main blog has just its primary; a phantom may list others it can mention, and the planner picks one per topic, biased by weight (override a pick with set_topic_offering). Pass an empty list to make the org itself the subject again.
collection:write
POST
set_topic_offering
Override which offering a planner topic's post promotes (the planner picks one per topic from the collection's mention set at plan time). The offering must be in that collection's mention set (get_collection_context → offerings); null clears the override so the post falls back to the collection's primary. Applies to drafts written from the topic after the change.
collection:write
POST
dismiss_subject
Set one open subject of a letterbase's topic map aside: it won't be written. Queued and written subjects can't be dismissed. Records who set it aside, when and why (reason); a subject placed from your measures is never proposed to that automation again.
collection:write
POST
create_automation
Add an automation to a letterbase: a topic (cluster_id of a pillar, or target_id alone for a goal-led topic), a series (cluster_id), a signal (seer_id) or best. Refused when it would say the same thing as one already there (a second automation on the same pillar, series, target or seer; a pillar and the goal-led topic its bound target already writes). A brief (what it should cover, in your words) is kept where its engine reads it; new_topic / new_series make the pillar or series here (pass preview_automation's subjects to keep exactly what was previewed). Over the weekly cap, it takes the difference from Best (the rest of the week; Best keeps at least half a post, said in `warning`), else it is refused. The letterbase's schedule follows the new total.
collection:write
POST
update_automation
Change an automation: its pace, on or off, a pillar topic's goal (the ranking target it aims at), or its brief (what it should cover; remap: true sets a topic's open subjects aside and maps them again from it). The weekly total stays within the cap; the schedule follows it.
collection:write
POST
set_weekly_pace
Set a letterbase's weekly pace: how many posts a week it publishes in all. Its topics and series keep their own paces and Best (the rest of the week) takes the difference: made when there is none, paused when nothing is left; refused when the topics and series already write more (lower one with update_automation). Pass posts_per_week, or words that say it ("3 posts a week"). The schedule follows the new total. Never a new series.
collection:write
POST
delete_automation
Remove an automation from a letterbase. A removed series is paused and a removed seer stops writing here; the schedule follows the new weekly total.
collection:write
POST
refresh_internal_links
Run a collection's next batch of internal-link refreshes now instead of waiting for its automation's next tick (Refresh internal links in posts, in Automations) — the same 'Refresh links now' the collection room offers (lib/services/relink.ts refreshCollectionLinksNow), and what that automation's turn calls with the posts due. Up to 5 posts, the longest overdue first. Runs even with the policy off (asking is the opt-in). Each started post re-links from the collection's own sitemap and republishes when it finishes; on a manual-approval or client-CMS collection the links are proposed for approval instead (posts_proposed; see list_revisions). Returns as soon as the work is queued.
collection:write
POST
apply_starter_automations
Start what a letterbase writes, in one call: applies the starter automations suggest_starter_automations chooses from the client's own evidence (strengths to double down on, near wins, a gap where it is relevant and strong, a format the site already keeps, Best for the rest), each with its reason in the client's numbers, then turns the letterbase's writing on with every draft waiting for review (nothing publishes until a person approves). What the weekly cap or a duplicate refuses is reported in `skipped`, never fatal. Nothing is written by suggest_starter_automations; this is the accept. Needs the letterbase's blog read in (onboard_collection, which does this itself when called with start_writing).
collection:write
POST
save_enhancer_file
Save a new version of a collection's enhance file and run every pass with it from now on. Send `file` (a whole file; only `name` is required, the rest is completed) or `patch` (only the fields to change, laid over the file the collection runs now, e.g. {"internalLinks":{"maxPerPost":3}}). The first save makes your own copy of our file; later platform releases arrive as an offer (get_enhancer_file `offer`, accept_enhancer_offer). A save that would run exactly like the current file is refused.
collection:write
POST
pin_enhancer_version
Pin a collection to one of our released enhancer versions instead of following our live one (version_id), or unpin it (null). A collection with its own copy runs its copy; the pin applies when it has none.
collection:write
POST
accept_enhancer_offer
Accept our newer platform enhancer version into your collection's copy: a new live version of your file = our live file with your own changes (`offer.kept`) laid back over it. Refused when there is no offer.
collection:write
POST
onboard_collection
Set connect_only=true to bind the selected cms_provider without importing posts, creating series, stocking headlines, or starting writing. Connection-only jobs return result.publishing; content setup is a separate action. Otherwise: one-shot onboard a CLIENT collection — the caller's own blog, under its own brand (the phantom recipe minus provisioning). Starts a durable job that reads the site into the org's strategy, discovers + imports the existing blog either from its sitemap (auto-discovered unless sitemap_url pins one; a site with no blog onboards from positioning alone) OR — when cms_provider is set — straight from a connected CMS (Webflow/Framer/Sanity/Contentful, or a GitHub content repo via its publish target; adopt-matching so it never duplicates), derives content areas + series from what was actually written, builds the topic map, infers the org's own table/Venn/generative-diagram styles from its site and binds them on the collection (the same org_derived set provision_org_visuals mints) with the guaranteed passes on — internal links off the blog's own sitemap, external sources, and comparison tables (drawn only where a post's own content template commissions one — most posts, including every untemplated one, have none to fill); free-form diagrams turn on too, but only when a real generative-diagram canvas landed in this blog's own colorway, never a silent fall-back to the house look — discovers + binds SEO demand, enables company GEO probing and runs one initial probe cycle, then stocks the Headlines tab — so the first headline batch can draw on GEO signal (brand mentions, answer gaps) from day one, not SEO alone. The Planner is configured but left OFF (manual approval) by default — nothing publishes on its own — unless enable_planner is set, which turns it on at cadence_per_week/approval_mode once headlines are stocked (the same effect as a follow-up configure_collection call, in this one call instead). Or set start_writing to start what the blog writes the moment the onboarding is done: the starter automations apply_starter_automations would apply, with every draft waiting for review (its outcome is result.writing on get_collection_onboard_status; a failure there never fails the onboarding). Omit collection_id to create a fresh collection (named collection_name, default 'Blog'). `direction` becomes the planner's steering prompt, shaping the topic map and every headline. Returns a job_id immediately — poll get_collection_onboard_status until status is 'done' (or 'failed'). Idempotent: re-running skips already-imported posts and keeps existing strategy/config.
collection:onboard