/
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
872 tools
Set up →
MCP
The full surface, for agents
872 tools
Set up →
CLI
letterstory, in your terminal
872 tools
Set up →
Content
Read, draft, and publish articles: the words themselves.
46
all tools
46
all tools
46
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.
83
all tools
83
all tools
83
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).
128
all tools
128
all tools
128
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.
126
all tools
126
all tools
126
all tools
The grid
Capability
126 tools
Account
API keys, organization profile, branding assets, members, and pending invites.
All 126 tools
POST
list_trusted_issuers
List the issuers whose Claude auto-connect sign-ins (Enterprise Managed Auth) this org accepts, live and revoked, with who added each. A Claude-issued issuer (https://identity.anthropic.com/issuers/<id>) binds to an org on its first verified sign-in by someone with a seat in only that org; any other issuer must be approved with approve_trusted_issuer. Same read as GET /api/settings/claude-auto-connect.
account:read
POST
list_api_keys
List the API keys in the caller's organization — id, name, capabilities, rate limit, and usage timestamps. Never returns the key secret or its hash; there is no way to recover a lost key's plaintext value through this API.
account:read
POST
get_billing_payments
The caller's organization as usage billing sees it: which billing rule covers it (standing: on a plan, on free tokens, unassigned, legacy or internal), what paying by card would start (addCard: the plans a card can start, Starter and Pro, as letter.dev/pricing shows them (tagline, per-1,000 prices), larger plans being set up with Letter, each with its expected monthly cost at the organization's usage rate and, with usage, the one cheapest for it, for an organization on free tokens, with no plan yet, or whose plan ended; an admin enters the card in Settings → Billing), what an ended plan left owing (earlierPlan: a voided first invoice that won't be charged but is settled before a new plan, failed invoices still unpaid, and the sentence the customer reads; while set, paying by card can't start a plan), the plan it is billed on (and its gifted ratio; scheduledPlan: a smaller plan an admin set for the period's end; planChangeBlocked: why an admin can't switch card plans in Settings → Billing, or null when they can), the card every charge goes to (card: brand, last four, expiry), this period's usage against the allowance, the overage (usage.overageUsd so far; usage.overageChargedUsd already charged to the card this period; overageChargeUsd the step it is charged in, a setting, not a charge) and its monthly spend cap (with who set it and how many tokens can still start under it), whether it is past due, and every payment that failed, with what happens next: when the card is charged again, how many tries and emails so far, what the card said, and (for a key minted by an organization admin) a link to pay with any card while it is unpaid. Payments are retried on days 1, 3 and 7 after a failure; a payment the bank wants confirmed is never retried, only paid through the link. Failed payments only: get_billing_invoices lists every invoice, paid ones too, and the next one. The same read as `letterstory org billing` and the staff view (`letterstory admin billing lago payments`).
account:read
POST
list_token_rewards
The free tokens the caller's organization can earn, once each, in priority order, most tokens first: the Letter script on the organization's website (`site-script`: seen by its ping and found on the homepage, once per site host; visitors_get_script, visitors_verify_site), connecting GitHub or GitLab, signing in with the Letter CLI (`letterstory login`), connecting Search Console, following on LinkedIn, subscribing on YouTube, sharing Letter on X, starring the GitHub repo, and the tours (`listed: false`, so no earn list shows them): one quick task in each view, paid the moment it's done by a person's own call, never for opening a view: `tour-build` the first answer to send_build_message, `tour-plan` the first plan for a goal (propose_account_plan with `goal`), `tour-fix` the first fix that goes through (fix_site_observations: a pull request started, or `handoff`'s prompt), `tour-site` the first page read (read_site_page). Each tour's `task` says what to do. Only a workspace on free tokens with its own signup tokens can earn them (eligible), and only while Letter's free tokens are on (off, nothing is eligible): a workspace on a plan is refused, and so is a second workspace from the same person or company, and one an AI agent signed up (its signup tokens are all its free tokens). Each with its tokens, whether it's claimed, whether it's checked (the CLI, GitHub, GitLab, the script and Search Console against Letter's own records, the tours by the task itself, a star on GitHub when a GitHub account is connected; the rest on the honour system), and for the five connections whether it's done. Those five and the tours are `auto`: granted the moment they're done, nothing to claim; `connect` names the integration whose connect flow earns each, and `group: code-host` marks GitHub and GitLab as one choice (Set-up offers the other only until one is claimed or done). What's left to earn (availableTokens) is every listed reward not yet claimed, so the tours aren't counted; what's earned (claimedTokens) is what the grants paid. `progress` counts every reward once, the tours included and GitHub or GitLab as one choice (earned, total, left, done of count): Set-up's quest board. Claim the social actions and the star with claim_token_reward. The same read as Settings → Billing's Earn free tokens and `letterstory org billing rewards`.
account:read
POST
get_billing_invoices
What the caller's organization was charged and what it will be charged next. Every invoice, newest first: what it is for (the plan's subscription invoice, a one-off charge, an overage top-up in the account's step, get_billing_payments.overageChargeUsd), its number, amount, status (paid, open, failed, voided, refunded or partly refunded, with the credit notes), issue and due dates, when the card was charged, and the PDF. And the next invoice: the day it issues, the next period's plan fee in advance, the overage so far, what of it was already charged as top-ups, and the total if nothing more is used. Only for an account billed by usage; an account never billed sees no amounts. The same read as Settings → Billing and `letterstory org billing invoices`; get_billing has the usage by product and collection, get_billing_payments the spend cap and failed payments.
account:read
POST
get_billing
The caller's organization's usage this billing period, by product (articles, kernel writes, Build & Fix agent runs, site days, …) and by collection: each product's quantity, and for an account billed by usage its tokens (what Lago has, plus usage harvested and on its way to the bill), the tokens running work holds, the plan's allowance and complimentary tokens, and the dollars so far (the plan fee and the overage). An account not billed by usage (the trial run, a flat price) sees quantities only. Never our cost. `plans` lists every plan at list prices (monthly fee, included tokens, per-token and overage rates), smallest first, then Custom (contact: true, priced on a call); `plan.code` marks the one this account is on. Usage and cost so far, not what was charged: get_billing_invoices has every invoice (the plan fee already charged, one-offs, overage top-ups, refunds) and the next invoice (when it issues and what it comes to). The same read as Settings → Billing and `letterstory org billing usage`; get_billing_payments has the spend cap and failed payments.
account:read
POST
search_tools
Find Letter's tools by what you want to do, in plain words ("unpublish a post", "AI crawler visits on a page", "pause a phantom site"), instead of reading the whole list: the best matches first, each with what it does, the capability it needs, whether your key holds it, and its arguments. Searches the tools your key is shown (every tool everyone is shown, with no key). The same search Letter's own agent finds tools with. Then call the tool by name.
account:read
POST
list_integrations
Every integration the organization can connect (GitHub, GitLab, Vercel, Sanity, Contentful, Webflow, Framer, Google Docs, Google Search Console, AirOps, Slack, Linear, Daymaker, Your apps) and whether it is connected, with the account, site or workspace it's connected to — the same list Settings → Integrations shows. Site scripts are not integrations: whether Visitors or Letterprove is installed is read with their own tools. Connecting is a sign-in in the browser a person does (most are OAuth): hand them each one's `connect_url`.
account:read
POST
get_workspace_overview
What the organization holds and what waits on a person, in one read: a count per feature (sequences, mailers, prospect lists, dispatches, databases, domains, models, simulations, A/B tests, seers, deployments), what needs someone (emails held for approval on a dispatch, replies nobody answered, paused sequences), and the sequences and prospect lists changed most lately. The app's More menu reads it. Use it to watch an account or to see where a person's attention is needed.
account:read
POST
get_linear_connection
The organization's Linear connection: the workspace, and the team (and project) Letter files issues in when a fix is sent to Linear (action linear) or a new finding is reported there (linear_reports). Connecting is OAuth, in Settings → Integrations → Linear.
account:read
POST
list_linear_targets
The teams in the connected Linear workspace, and the projects in one team (team_id, else the picked team): where set_linear_target can send issues.
account:read
POST
list_mcp_connections
The other products' MCP servers connected to the organization: each one's name, URL, whether a credential is set (never its value), whether it is on, the tools an admin allowed, and how the last test went. Letter's agent turns (Build chat, the terminal, Slack, automations) can call their tools. test_mcp_connection lists a connection's tools.
account:read
POST
get_organization
Get the caller's organization profile: id, name, slug, domain, description, vertical, search market (seo_market) and writing_kernel_id. No billing: plan, tokens and payment standing are get_billing and get_billing_payments.
account:read
POST
list_org_members
List the members (seats) of the caller's organization — role, join date, and profile. Letter staff with support access are omitted unless the key was created by staff.
account:read
POST
list_invites
List the caller's organization's pending (unaccepted, unrevoked, unexpired) invites.
account:read
POST
get_usage_events_summary
Get what the caller's organization used over a range, from usage metering (the same events billing rates and sends to Lago): articles, writes, shreds, Build & Fix agent runs and sandbox minutes, live sites, domains, GEO answers, tracked competitors, outreach, enclosure prints. Quantity and billable quantity per SKU, grouped by collection, customer_ref or day if asked (default: last 30 days, by SKU). tokens is null for days rated on an unpublished rate card; that does not mean free (an org on a plan is billed for them). What it was charged is get_billing / get_billing_invoices.
account:read
POST
get_letter_log
THE LOG — what Letter did for this organization, newest first: the app's Log page. Actions only, never reads, and never context (Memory) or A/B tests, which have their own pages. Entries: a post published (with `destination`, its blog and what it goes live through), a new page or a change to the site as a pull request (merged, or proposed and not merged; a blog publish is its post's entry), and outbound: emails sent (one entry per sequence per day, a count, never who to), domains bought, mailboxes added (one entry per day). Each entry says who asked for it (`by`, a member's name) or null when Letter did it on its own, and where to see it (`href`: the pull request, or a path in Letter). `kinds` narrows the page; the first page lists `kinds_present`, the kinds this organization has any entry of. Page back with `before` = the previous page's `next_before`. Every entry has `goals` (seo, geo, agent_conviction, inbound_conversion): the goals it serves, each with who decided it (`start`: it was started for it, `recipe`: its recipe is for it, `letter`: Letter read it, `member`) and why; and a `key` for set_plan_work_purpose. `attributing` counts entries whose goals are still being read: ask again. `goal` keeps only the entries that serve that goal: the page of a goal's "what Letter changed". Reads only.
account:read
POST
get_rail_pins
Read the caller's organization's shared Letterpress sidebar pins in order. The sidebar uses the defaults until customized. Entries the organization can't open are skipped.
account:read
POST
select_gsc_property
Pick the Search Console property the org tracks: site_url must be one of list_gsc_properties' sites (checked against Google's live list). Clicks and rankings for the org's own site start from it (get_site_performance and the get_seo_* tools). Needs a key minted by an organization admin, as picking it in the app needs an admin. Same write as POST /api/gsc/sites.
account:write
POST
approve_trusted_issuer
Trust an issuer's Claude auto-connect sign-ins for this org: people whose confirmed email matches the signed email and who hold a seat here get a Letter token with no sign-in screen. Use it for an IdP issuer, a revoked Claude issuer, or a Claude issuer whose first sign-in came from someone in several orgs. Refused while another org trusts the issuer. Needs a key minted by an organization admin. Same write as PUT /api/settings/claude-auto-connect.
account:write
POST
revoke_trusted_issuer
Stop accepting an issuer's Claude auto-connect sign-ins for this org (the opt-out). A revoked Claude issuer never binds to any org again on its own; only approve_trusted_issuer brings it back. Tokens already issued run out on their own. Needs a key minted by an organization admin. Same write as DELETE /api/settings/claude-auto-connect.
account:write
POST
revoke_api_key
Revoke an API key in the caller's organization by id, permanently disabling it. A key minted by an organization admin revokes any of the org's keys; a member's key only keys that member minted. Refuses to revoke the key currently making this call — revoke that one from the Letter app (Settings → API keys: https://app.letterstory.com/settings?tab=api-keys) instead. Idempotent: revoking an already-revoked key just returns its existing revoked_at.
account:write
POST
claim_token_reward
Claim the free tokens for one action, once per organization (see list_token_rewards). `cli`, `github-connect`, `gitlab-connect`, `site-script` and `gsc-connect` are granted on their own when done; claiming one only pays it sooner if it's done and wasn't paid yet. `cli` needs the Letter CLI signed in to this organization (`letterstory login` or `login --device`; an agent that just signed in can claim `cli` itself), `github-connect` GitHub, `gitlab-connect` GitLab, `site-script` the Letter script seen and found on a site's homepage (visitors_verify_site; once per site host), and `gsc-connect` Search Console (once per Google account). `github-star` is checked on GitHub when a GitHub account is connected. The social actions are on the honour system: claim once the person has followed, subscribed or posted. The tours (`tour-build`, `tour-plan`, `tour-fix`, `tour-site`) can't be claimed: each is paid when its task is done (see list_token_rewards' `task`), so claiming one not yet done is refused (409, "Do it in the app: …") and one already paid answers granted: false. Claiming again gives nothing more (granted: false). While Letter's free tokens are off every claim is refused (409); a connection made then is paid once they're on. A workspace an AI agent signed up earns none: its signup tokens are all its free tokens, so every claim there is refused (409). The same operation as Settings → Billing and `letterstory org billing rewards claim <action>`.
account:write
POST
start_signup
Sign your user up for Letter, with no API key: give their work email and Letter emails them a link. They confirm in a browser (checking the code you show them, setting a password); the account and organization are made then, and you get a token for it. Free-mail addresses (Gmail, Outlook, iCloud, …) are refused (work_email_required): Letter accounts need a work email. A new company workspace an agent signs up gets up to 3,000 free tokens; the tokens come once the person saves a card in Letter (nothing is charged until they pick a plan; an agent can't add the card, so finish_signup's note has the link to hand them); a person picks a plan only once they run out, and an agent never can. Free tokens are once per person or company: start says "up to" the same for everyone, and finish_signup's answer says what the new account got (0 when the company already had its free tokens). If the person already has an account, the link has them sign in and connect you instead. Show them user_code, then call finish_signup with device_code every interval seconds (or poll token_endpoint per RFC 8628) until it returns your access token. Limited per IP and per email (rate_limited). The same operation as `letterstory signup --email`.
account:write
POST
finish_signup
Collect your token once the person confirms a signup you started with start_signup: pass its device_code. Returns status pending until they confirm (call again after the interval), then complete with an access_token for their new organization (send it as `Authorization: Bearer`) and a refresh_token, once. expired: start again; cancelled: they declined. The same exchange as POST /api/oauth/token with the device_code grant, for an agent that only speaks MCP.
account:write
POST
request_billing_tokens
Ask the caller's organization's admins for more usage when its monthly spend cap refused work (payment_required): emails them, with an optional note, once a day per member. The same as Request more in the app and `letterstory org billing request`.
account:write
POST
request_mobile_app_access
Ask for access to Letter's mobile app, which is coming soon: emails the Letter team the caller's organization and who asked (the key's minter), so they follow up when there is a build to try. Nothing else is stored and no tokens are spent or granted. `emailed` is false when the email couldn't go out; the request still stands. The same as Request access on the Mobile app card under Set-up.
account:write
POST
set_linear_target
Pick where Letter files Linear issues: a team (id or key, from list_linear_targets) and optionally one of its projects (project_id; null = none).
account:write
POST
disconnect_linear
Disconnect the organization's Linear workspace: Letter stops filing issues there and revokes its access. Issues already filed stay in Linear.
account:write
POST
connect_mcp
Connect another product's remote MCP server (Streamable HTTP, https only) so Letter's agent turns can call its tools, on the organization's own account there: a design tool, a media generator, a CRM. The server is tested first and nothing is stored if it does not answer. A server that needs a header value (a bearer token or an API key) takes it as `token`, stored encrypted and never read back. A tool the server marks read-only is available at once; any other goes only when allowed by name (`allow_tools`, or update_mcp_connection later): the standard in Claude Code and Codex, and the same for an automation nobody watches. Sign-in with OAuth is not supported yet. At most 10 connections.
account:write
POST
test_mcp_connection
Connect to a connection's server again and read its tools: each one's name, what it does, whether it only reads, and whether the agent may call it. The list is kept for the agent's turns, so run this after the server adds a tool.
account:write
POST
update_mcp_connection
Change a connection: turn it off or on (`enabled`), set which tools that are not read-only the agent may call (`allow_tools` REPLACES the list), or give it a new header value (`token`, tested before it is kept; null removes it).
account:write
POST
remove_mcp_connection
Remove a connected MCP server and its stored credential. The agent can no longer call its tools; nothing the server holds is changed, and a token you gave it stays valid there until you revoke it.
account:write
POST
create_invite
Create a pending invite for the caller's organization and email it, only with a key minted by an organization admin (best-effort — always returns invite_link so it can be shared manually if email delivery isn't configured or fails). Generic email providers (Gmail, Yahoo, etc.) are rejected; the invitee needs a work email.
account:write
POST
revoke_invite
Revoke a pending invite in the caller's organization by id. Only with a key minted by an organization admin. Refuses invites that were already accepted — remove the member instead. Errors if the invite doesn't exist in this org.
account:write
POST
update_org_member_role
Change a member's role (admin/editor) in the caller's organization. Only with a key minted by an organization admin. Refuses to demote the last admin — promote another member first.
account:write
POST
remove_org_member
Remove a member from the caller's organization. Only with a key minted by an organization admin. Refuses to remove the last admin — promote another member first.
account:write
POST
disconnect_gitlab
Disconnect the organization's GitLab: Letter stops building in its projects. A signed-in connection's access is revoked; a pasted bot token stays the customer's to revoke in GitLab. Merge requests already opened stay open.
account:write
POST
disconnect_github_account
Disconnect one GitHub account from the organization: Letter stops listing its repos and stops opening pull requests in them. Pass the account's installation_id (installationId on list_github_app_repos). The Letter GitHub App stays installed on GitHub (uninstall it there to remove it everywhere); pull requests already opened stay open. Connect it again with connect_github.
account:write
POST
set_billing_spend_cap
Set, raise or remove the caller's organization's monthly spend cap: the dollars of overage (usage past the plan's allowance) it allows each billing period. Overage is on by default with no cap. Once a period's overage would pass the cap, new work (posts, runs, new sites, Build changes) is refused with payment_required until the next period or a higher cap; work already running finishes. The cap stops new work, not what is already running: live sites' days, probes, tracked competitors, mailboxes and emails keep running and are billed, so a period can end a little past the cap (pause a site to stop its days). 0 stops new work at the allowance (after any complimentary tokens); null removes the cap. Alerts fire at each 25% of the cap, counted past any complimentary tokens. Needs a key minted by an organization admin; recorded with who set it. The answer's `standing` is the period as the new cap leaves it: a cap at or under the overage already used refuses new work at once (`newWorkRefused`), so tell the person before or right after setting it (`note` says it in a sentence). The same operation as Settings → Billing and `letterstory org billing cap`.
billing:manage
POST
cancel_billing_plan
Cancel the caller's organization's usage-billed plan. In the plan's first month (its first billing period), the first time this organization cancels: the plan ends now and its plan fee is refunded to the card (or its first invoice voided if it was never paid). The refund is once per organization, ever, used only when money goes back to the card: a voided first invoice or a refund of $0 leaves it for a later plan. If it had it before, the plan ends at the end of the current billing period instead, with no refund (ends: period_end). Either way the usage so far is billed, and overage already charged is never refunded. Only in the plan's first month, and only with a key minted by an organization admin; after that, contact Letter. `message` says what happened, in the customer's words. The same as Cancel plan in Settings → Billing and the cancel button at the end of a crossing.
billing:manage
POST
undo_billing_plan_cancel
Take back the caller's organization's cancel of its usage-billed plan, when the cancel was set to end the plan at the end of its billing period (cancel_billing_plan's ends: period_end; get_billing_payments shows `endsAt`): the plan renews on that day and is billed as before. Only before the end comes; a plan that has already ended can't be taken back (picking a plan starts a new one). Only with a key minted by an organization admin. `message` says what happened, in the customer's words. The same as Keep my plan in Settings → Billing and `letterstory org billing keep`.
billing:manage
POST
update_billing_card
Change the card the caller's organization is charged on: returns a Stripe page (valid for a day) where a person enters the new card. Once saved it is the card every charge goes to (the plan, its overage), and every plan invoice that failed is charged to it right away, once. Paying a failed invoice through its pay link (get_billing_payments) settles that invoice only and leaves the old card in place; this replaces it. Only for an account billed by usage, and only with a key minted by an organization admin. The same as Update card in Settings → Billing and `letterstory org billing card`.
billing:manage
POST
get_brand_context
Get the cached MEASUREMENT of the organization's own website: description, slogan, industries, notable links, socials, and the computed visual identity (light/dark mode, colors, heading/body fonts with loadable font files, logos, component styling, spacing, shadows). This is raw material, NOT the org's strategy: positioning is get_positioning, voice is the writing kernel (get_org_writing_kernel), and both change only through a reviewed context pass (ingest_context). Returns brand: null when no website read has happened; run import_brand_context first. Pass `slug` to read a named profile (an offering's own site) instead of the org's default.
brand:read
POST
get_org_branding
Get the caller's organization's branding row: colors, logo_url, writing_style and tone. logo_url and colors style landings and visuals; writing_style and tone only steer first-piece ideas, not post writing (a post's voice is the org's writing kernel: get_org_writing_kernel). Distinct from per-asset logo/font uploads. Returns null if the org hasn't set branding yet.
brand:read
POST
import_brand_context
Read the organization's own website and cache the measurement. Reads the org's registered domain unless `domain` is given. This only caches — it changes no positioning, identity or styling; those change through a reviewed context pass. Pass refresh: true after a rebrand to bypass the provider's shared cache, which defaults to three months and is shared across the provider's customers. Pass `slug` (with `domain`) to store an offering's own site as a named profile; point the offering's brand_profile_slug at it and its collections render with that look.
brand:write
POST
ingest_context
Feed context about the organization — notes, links, other products' MCP servers, and optionally a fresh measurement of its own website — and get back a REVIEWABLE proposal of targeted changes to positioning, competitors, identity, voice, visuals, ranking goals (new company-wide targets worth tracking) and custom memory (entries filed into existing memory sections, or into new sections the pass names when nothing fits). Nothing is applied: the response lists each proposed change with a stable id, its before/after, and why. Call apply_context with the ids you accept. This is the way to correct what the system believes about a client; it refines what is already stored rather than regenerating from scratch.
brand:write
POST
apply_context
Commit the accepted subset of a context proposal from ingest_context. Each accepted change is written through its real save path — positioning is versioned, competitors are only ever added (flags are recorded for a human, never auto-removed), identity and visual settings are merged rather than replaced. Changes you omit are declined and never written.
brand:write
POST
update_org_branding
Update the caller's organization's branding row (colors, logo_url, writing_style, tone). Each field is optional: a provided field is written, an omitted field is left unchanged. Creates the row on first write. This doesn't change how posts are written: that is the writing kernel (set_org_writing_kernel) or a reviewed ingest_context pass.
brand:write
POST
get_logo_upload_url
Mint a short-lived signed upload URL for a new organization logo (organization-logos bucket). Raster only (jpeg/png/webp) — SVG is not offered here, since the browser upload route's SVG support relies on server-side rasterization this path skips (stored-XSS prevention). PUT the image bytes to the returned URL with the given content type, then the object is live at `public_url`. Call remove_logo on the old logo's path once the new one is in place, if replacing.
brand:write
POST
get_font_upload_url
Mint a short-lived signed upload URL for a new custom font (custom-fonts bucket). PUT the font bytes to the returned URL with the given content type, then the object is live at `public_url`. Call remove_font on the old font's path once the new one is in place, if replacing.
brand:write
POST
remove_logo
Remove a logo object from the organization-logos bucket by its storage path (as returned by get_logo_upload_url). Refuses a path outside the caller's own org.
brand:write
POST
remove_font
Remove a font object from the custom-fonts bucket by its storage path (as returned by get_font_upload_url). Refuses a path outside the caller's own org.
brand:write
POST
letterprove_get_vendor_link
Does this org already have a Letterprove vendor linked? Ask this before any other letterprove_* tool.
vendor:read
POST
letterprove_get_script
This org's Letterprove script (proofs_snippet, attest.js, for the product's sign-in pages; counts sign-ins for the signed proof) with install recipes, whether the proofs module is on, and install progress (proofs_script_seen_at, first sign-in), for vendors who installed it. A new install is one install instead: Letter's Visitors script on the product with lettervisit("identify", email), opened as a PR by letterprove_open_install_pr; its first signed-in visit is signed_in on visitors_get_feature_usage. The Visitors script on a marketing site is a separate product: visitors_get_script.
vendor:read
POST
letterprove_get_proof_summary
Letterprove: this vendor's signed proof, read back (works while private): tier and tier_name, companies_observed (companies whose users signed in to the product) and sessions_30d (sign-in sessions). Not site visitors: that is Visitors (visitors_get_people). Output: drop reported_history (read it from letterprove_get_posthog_connection) or have Letterprove return it.
vendor:read
POST
letterprove_get_read_usage
This vendor's AI-agent proof reads this month so far and last month, what each comes to at list price, and the pricing bands (first 25 a month free, then $0.20 a read, dropping to $0.08 past 500; only reads from an agent's published addresses count). Billed monthly to this org, except months that start before a Letterprove beta exemption. amount_cents: "List-price amount under `pricing`; not invoiced while the org's beta exemption covers the month."
vendor:read
POST
letterprove_get_status
Letterprove (Proofs) only: whether Letterprove's own script (attest.js) has loaded on the vendor's product (installed; false for a vendor on the one install, whose signed-in visits are signed_in on visitors_get_feature_usage) and how many sign-in events it sent in the last 24h (receiving, count), plus publish/listing state, dropped hosts and how the domain is proven (domain_proof: none, site or dns). Sign-ins only, not page traffic or visitor identification: for those use Visitors (visitors_get_people, get_site_metrics). Output additions: count: "Sign-in events in the last 24h. 0 says nothing about site traffic."; domain_proof: "none | site | dns"; domain_verified: "True only for DNS proof."
vendor:read
POST
letterprove_get_install_snippet
Letterprove: the agent kit and the footer badge (show it only when badge.live), and Letterprove's own script tag (attest.js) with its identify() recipes, for vendors who installed it. A new install is one install instead: Letter's Visitors script on the product with lettervisit("identify", email), opened as a PR by letterprove_open_install_pr; no Letterprove script is needed. Prefer letterprove_get_script, which also returns install progress.
vendor:read
POST
letterprove_get_custom_domain
This vendor's proof domain and its last recorded state, without re-checking DNS.
vendor:read
POST
letterprove_list_hosts
This vendor's verified domain plus every extra host events are accepted from, and whether each is accepted now.
vendor:read
POST
letterprove_list_observed
Letterprove: the company domains behind the proof's counts, private to this vendor: each domain seen signing in to the product (sessions, signups, logins) and how it counts (status: observed, not-attributable, no-observation). Sign-ins only, never site visitors (Visitors: visitors_get_people). Output: customer: "Customer slug on the private list, or null."; status: "observed (in companies_observed) | not-attributable (excluded) | no-observation (on the list, nothing seen)."
vendor:read
POST
letterprove_list_customers
List every customer recorded for this vendor.
vendor:read
POST
letterprove_list_snapshots
History of the retired per-customer attestation chains, frozen at 2026-10-13; nothing new is added. The current proof is one vendor attestation: letterprove_get_proof_summary. Args: customer (slug, optional).
vendor:read
POST
letterprove_get_stripe_connection
This vendor's Stripe connection: key suffix, live or test, when the account was last read, and what it says about the business (whether Stripe verified it, its name, country, website, and whether that website is on the vendor's domain). Letterprove reads no payments. Never returns key material.
vendor:read
POST
letterprove_get_posthog_connection
This vendor's PostHog connection (read only): which project, when it last synced, how many companies it has identified and since when, and whether that history is on the proof (and why not). Never returns key material.
vendor:read
POST
letterprove_get_proof_display
Which optional sections this vendor shows on its public proof (sessions, Stripe business, first observed date, logos, PostHog history, feature usage, hosts, growth, retention), and which parts are always shown.
vendor:read
POST
letterprove_get_feature_usage
Which features of this vendor's product companies use, as the proof would show them: each feature its signed-in people used in the last 30 days, the companies Letter counted and how many of those Letterprove observed signing in (what the proof would show), and whether it's chosen to show. Counted by the Visitors script on the product where it says who is signed in (lettervisit("identify", email); visitors_get_feature_usage) and sent to Letterprove daily. on_proof and reason say whether it appears at the next snapshot.
vendor:read
POST
letterprove_get_logo_wall
This vendor's public logo wall as Letterprove checked it: the page, each listed company, whether it was found on the page, and whether Letterprove observed it signing in over the last 30 days. Verified logos appear by name on the proof; the rest only as a count.
vendor:read
POST
letterprove_create_vendor
Create and link this org's Letterprove vendor (the site behind its Letterprove script, for the signed proof). Args: name, domain.
vendor:write
POST
letterprove_set_script_modules
Turn the Letterprove script's proofs module on or off (counting sign-ins for the signed proof). Args: proofs. AI agents and de-anonymization are Visitors: visitors_set_modules and visitors_set_identification.
vendor:write
POST
letterprove_set_custom_domain
Serve this vendor's public proof page on its own domain, e.g. proof.acme.com. Must be a subdomain of the verified domain. Returns the CNAME record to add. Args: domain.
vendor:write
POST
letterprove_check_custom_domain
Check whether this vendor's proof domain DNS is set up, and record the result.
vendor:write
POST
letterprove_remove_custom_domain
Stop serving this vendor's proof page on its own domain. It stays on app.letterprove.com.
vendor:write
POST
letterprove_add_host
Accept events from another hostname on this vendor's verified domain, e.g. app.acme.com. A host under the verified domain is accepted at once; a sibling needs the vendor's TXT record on that host. Re-run to re-check. Args: host.
vendor:write
POST
letterprove_remove_host
Stop accepting events from one of this vendor's extra hosts. Events already recorded stay. Args: host.
vendor:write
POST
letterprove_rotate_key
Replace this vendor's publishable script key (the key in letterprove_get_script). The old key stops working at once: every installed Letterprove script stops collecting sign-ins until its tag is updated with the new key.
vendor:write
POST
letterprove_verify_domain
Check DNS for this vendor's domain-verification TXT record and record the result.
vendor:write
POST
letterprove_add_domain_record
Verify the Proofs domain with DNS, adding Letterprove's TXT record where Letter can, so the proof shows "Domain verified". Letter writes the record itself on a domain it bought or runs (its own DNS), or on the org's own Vercel DNS with its key (set_vercel_key) when that key's team holds the domain; anywhere else it writes nothing and returns the record with agent_prompt, for your own coding agent to add with whatever DNS access it has (the DNS provider named from the domain's NS records), then call this again to check. Without write it changes nothing: it says where it would write and what (state would_write) with a confirm Letter issued for that plan to this key, so a person can say yes first. write: true with that confirm adds it and asks Letterprove to check at once; a write without it, with another key's or an expired one (30 minutes), or after the plan changed is refused (state verified, or written while DNS propagates: call again in a few minutes). Already verified: says so and writes nothing. Never run by an automation. letterprove_verify_domain only checks.
vendor:write
POST
letterprove_verify_site
Prove this vendor's site without DNS: Letterprove fetches the page the Letterprove script is installed on (url, default the homepage; on the vendor's domain or a host under it) and looks for the vendor's own key in the HTML. Only someone who can edit the site can put it there. Returns verified, checked_url, reason and verified_at; get_status then shows domain_proof "site". DNS (letterprove_verify_domain) is the stronger proof. Args: url?.
vendor:write
POST
letterprove_update_vendor
Update this vendor's account. Args: any of name, domain, category, contact_email. A new domain clears domain verification: re-verify it (letterprove_verify_domain or letterprove_verify_site) before the proof counts it again.
vendor:write
POST
letterprove_record_observed
Turn one of this vendor's own observed domains into a customer (anonymous, tier-1 ceiling). Args: domain.
vendor:write
POST
letterprove_create_customer
create: "Add a company to this vendor's private customer list (never published: the proof counts companies, it does not name them). Args: slug, name, domain, since." update: "Update one of this vendor's private customer records (never published). Args: slug (required), plus any of name, domain, since, features." Output customer: "A record on the vendor's private customer list; never published (Letterprove's own shape)."
vendor:write
POST
letterprove_update_customer
Update one of this vendor's private customer records (never published). Args: slug (required), plus any of name, domain, since, features.
vendor:write
POST
letterprove_delete_customer
Delete one of this vendor's customers. Args: slug.
vendor:write
POST
letterprove_publish_proofs
Make this vendor's proofs public: /proofs/{slug}, /attest/{slug} and the chain routes start resolving. Collection and signing were already running. Refused until the domain is verified. Repeating it returns the original publish date. Check letterprove_get_status for the current state.
vendor:write
POST
letterprove_unpublish_proofs
Take this vendor's proofs private again: every public route 404s; collection and signing continue. Does not invalidate documents already fetched while public.
vendor:write
POST
letterprove_set_proof_listing
List or unlist this vendor's published proof in Letterprove's directory (discovery, sitemap, llms.txt). An unlisted proof stays at its URL, so links keep working, but nothing enumerates it and it asks search engines not to index it. Does not change the signed attestation. Check letterprove_get_status `listed`. Args: listed (boolean).
vendor:write
POST
letterprove_connect_stripe
Store a Stripe RESTRICTED key for this vendor so Stripe can confirm it is a real, verified business at its domain (tier 3 with a DNS-verified domain). Letterprove reads only the account, never payments. Args: restricted_key (rk_…, one permission: Accounts read). The Stripe account must be the vendor's own — one of the domains it publishes (business website, support email) has to share the vendor's domain — or the key is refused. An unrestricted sk_ or publishable pk_ key is refused. The key is never returned.
vendor:write
POST
letterprove_refresh_stripe_business
Re-read this vendor's Stripe account now: whether Stripe has verified the business, and whether the account is the vendor's own. Letterprove reads nothing about payments. Runs hourly on its own. Fails with stripe_not_connected until letterprove_connect_stripe has run.
vendor:write
POST
letterprove_disconnect_stripe
Remove this vendor's Stripe key and the business details read with it. The proof stops showing a Stripe-verified business, so tier 3 drops to tier 1.
vendor:write
POST
letterprove_connect_posthog
Connect this vendor's PostHog project, READ ONLY, so the companies it has identified people from appear on the proof as vendor-reported history (it never changes the tier). Args: personal_api_key (phx_, query:read scope), project_id, api_host (optional: us.posthog.com default, eu.posthog.com, or self-hosted). The key is checked with one read before it is stored and is never returned. Nothing is ever sent to PostHog.
vendor:write
POST
letterprove_sync_posthog
Re-read this vendor's PostHog project now and replace the stored history. Also runs daily. Fails with posthog_not_connected until letterprove_connect_posthog has run.
vendor:write
POST
letterprove_disconnect_posthog
Remove this vendor's PostHog key and all history read with it. The proof stops showing reported_history at the next snapshot.
vendor:write
POST
letterprove_set_proof_display
Show or hide optional sections of this vendor's public proof. Hidden sections are left out of the signed proof from the next hourly snapshot. The domain, tier, company count and verify link are always shown. Args: sections {sessions?, reported_history?, feature_usage?, logos?, stripe_business?, observed_since?, hosts?, growth?, retention?, logo_names? (name verified logos, or counts only)}.
vendor:write
POST
letterprove_set_feature_proofs
Choose which features show on this vendor's public proof (at most 10, by key from letterprove_get_feature_usage); every other is hidden, and [] hides them all. Each shows how many of the companies Letterprove observed signing in used it, and its signed-in people, labelled vendor-stated; it never changes the tier. Needs the domain verified (site check or DNS). From the next hourly snapshot. Args: keys.
vendor:write
POST
letterprove_set_logo_wall
Set the page on this vendor's own site that shows its customer logos, and the companies on it. Letterprove reads the page and only names companies it finds there. Each is marked paying, signed in, or not observed from Letterprove's own data. Args: page_url, companies [{name, domain}].
vendor:write
POST
letterprove_clear_logo_wall
Remove this vendor's logo wall. The proof stops naming any company at the next snapshot.
vendor:write
POST
letterprove_submit_support_request
Send a support message to the Letterprove team, attributed to this vendor and account. Args: message.
vendor:write
POST
letterprove_claim_beta_invite
Join the Letterprove beta with an invite link someone at Letter sent: pass the link's `invite` token. The organization's agent reads are then free through the link's date (letterprove_create_vendor next, if it has no vendor yet). An org already in the beta keeps its row. Expired or altered links are refused.
vendor:write
POST
submit_feedback
Submit feedback about Letter itself -- a bug, something missing, something unclear, a feature request, or praise. Args: category (bug | missing_feature | unclear | feature_request | praise | other), message, optional rating (1-5), optional context (free-form metadata, e.g. which tool or page prompted it).
feedback:write
POST
start_growth_build
START (APPROVE) A GROWTH BUILD — what Instances → Plan's Approve, Build's Plan & Build / Plan & Send to Slack and Fix run. Takes action ids from propose_account_plan (a build's `picks`, or any actions), its site `changes` and/or `fixes` (observations from get_site_tree / list_site_observations), records them as one build, and runs each one's call in order through this key's own tools, so it does nothing this key couldn't call itself: the actions first, then each site change as start_site_change (a build sandbox that only builds; `delivery` says preview first, straight to a PR, or Slack or Linear for the org's own agent, which also works with no repo connected), then each fix as fix_site_observations (Fix's per-row Fix and its Fix all / Fix selected are a build of `fixes` with kind fix: one fix_site_observations per host, so one pull request per site however many observations). Each step's `lane` in list_growth_builds says where its change stands: building, review (built; its preview waits on a person, the agent has stopped), pull_request, merged, or closed (closed unmerged: nothing reached the site). `goal` / `kind` (build or fix) are recorded; `notify_slack` posts the build and each change's preview and PR in one thread in the org's Slack channel. With `recipe` (a build's recipe.id) the steps are held to what that recipe may stand up; `prompt` records the member's words it answers. A step that needs a person (no arguments, blocked, or the common stack, which is reviewed in Plan first) is recorded as needs_input with where they do it. Returns the build once every call has gone out; started means the call went out and the work it began (an onboarding, a launch) carries on in its own primitive. Watch it with list_growth_builds.
build:start
POST
queue_plan_action
LATER — queue a Plan row for Auto-Plan to start once its prerequisite is in (Mahir, 2026-11-04). Takes a row's `id` as ask_letterpress lists it (and the `outcome` it was read under) on one site, and records it as a pending proposal queued by you (`queued_by`): the Actions sidebar lists it as Later. With Auto-Plan on for the site, its hourly pass reads the row again and starts it the moment it is ready (its own call: start_build for a strategy, an account action's own tool), before any pick of its own and outside its pace; held, the row says what it waits on (`waits_on`). With Auto-Plan off it waits for a person. Queued twice is the same row. unqueue_plan_action takes it back; a row already done, or no longer offered, is closed as done.
build:start
POST
unqueue_plan_action
Take a Later row back off the queue (queue_plan_action). Only a person's queued row, still pending; Auto-Plan's own pick is vetoed instead (veto_auto_plan_proposal), and one that started is a build to cancel.
build:start
POST
start_auto_plan_proposal
Start one of Auto-Plan's picks now, as you: a Needs you pick (the Actions list's Start), one waiting out its review window (Build now), or what Auto-Plan's own tick carries (its automation's turn). The same start as a person's Approve: start_build with the pick's arguments, delivered and run as the site's settings say. A Later row (queue_plan_action) is read on the Plan again and started with its own call once it reads ready; held, it says what it waits on, and done or gone, it is closed. A start that doesn't go out leaves the pick pending and says why; one already started or vetoed is refused.
build:start
POST
veto_auto_plan_proposal
Veto a strategy Auto-Plan picked while it waits out the site's veto window: it is never built (not just its pull request: the build never starts), and Auto-Plan never picks it again. One that already started is a build: cancel_growth_build.
build:start
POST
start_build
BUILD FROM WORDS — what Letterpress-1's Build box and the letterpress terminal run when a member says what to build. One call: plans it from `prompt` (propose_account_plan, intent build, reading the site and account first) and starts the plan's first build (start_growth_build; when the plan picks nothing, the words themselves go to one change: Build never refuses words, delivered straight to a pull request unless `delivery` says otherwise), both through this key's own tools. `files` (a brief, a screenshot, a CSV; as start_repo_change takes them) shape the plan — it reads the start of each text file — and go to every site change the build makes, at /data/run/files/<name>: the ones the plan reads as something to follow (a screenshot, a mockup, a brief) as `reference`, never put in the repo, and the rest (an image to place) into the repo. Answers status started with the build (watch it with list_growth_builds and each change's get_repo_change_activity), pending while the site is read for the first time (call again in a few seconds), or duplicate with the open build that already asks the same (follow up on it with revise_repo_change, or pass again: true to build it anyway); `message` says why in a sentence a member can read. With `recipe` (a Plan row's), nothing is planned: the recipe is started as it stands, as one change to the site's code from `prompt` (the recipe's directions) or as the catalog action the recipe's `runs` names. Whatever did not start answers with `reason` (no_repo, already_running, site_not_ready, recipe_missing, recipe_parked, no_domain, action_refused, not_started, planner_nothing, planner_unmet) and `owner` (recipe, system, account or model). To talk it through first (questions about the account, Letterpress asking back), use send_build_message.
build:start
POST
start_suggestion
START A SUGGESTION — what the Site's Open PR runs on a suggestion Letter stores for one of the organization's sites: a page idea (`idea_id`, list_page_ideas), suggested pages (`draft_ids`, list_site_page_drafts), what is next in a pattern the site keeps (`pattern_folder`, get_site_tree's `patterns`) an item the Site shows (`observation_id` and its `path`), or a page the member asks for in a folder (`new_page`: kept as a page draft at a path made from their words, then started as that draft). Name exactly one; Letter reads its words, evidence and pages from what it stores, never from the call. It is one Letterpress job: queued at once, run by one turn through the account's tools, and its change opens a pull request the way the organization's changes go (or is sent to its own agent in Slack or Linear). A second start of the same pages from any door follows the first (status duplicate, with the build doing it). Answers status started with the build (follow it with list_growth_builds), duplicate, unmet (it can't start here, `message` says why), or failed. Also: `letterstory site suggest`.
build:start
POST
send_build_message
TALK TO BUILD — one turn of a conversation with Letterpress-1: what the console's Build box and a build's page, ⌘L on the customer's site, Slack, the letterpress terminal and an agent all send. `message` is what the member says: anything at all (Build answers every question, about the account or not, reading the account with this key's read tools before it states a fact about it), what to build, a change to a build the conversation holds, or the answer to what it asked. Letterpress answers in `reply`; asks back in `questions` when it can't act without it (answer with the next message); starts a build with start_build — the same Build, planned from the whole conversation, built as a preview first — and returns it in `build` (follow it with list_growth_builds and get_repo_change_activity); or follows up on a build it holds with the same tools the review panel uses (send_repo_change_message while it's built, revise_repo_change on a preview or an open PR, publish_repo_change to open the PR, cancel_repo_change), listed in `actions`. Asked to set up Proofs, it opens the install PR and lists `set_up_proofs` in `actions` with the install's run_id; with no Proofs vendor yet it returns `setup` (kind proofs, a `url` where the member creates it in the browser: open it, poll letterprove_get_vendor_link until linked, then ask again and the install PR opens); `repo` (owner/name, the repo of the folder the member works in, which the terminal sends) is where that install goes. `files` attach to this message (as start_repo_change takes them; upload big ones with create_repo_change_upload first) and every file attached in the conversation goes to the build it starts. Omit `conversation_id` to start a conversation (with `build_id`, it continues the one holding that build, or starts one about it); pass the returned one to continue it. `intent: build` is the member's command to make the change (⌘L's Make Pull Request): the build starts whatever is already open on the same thing, and a turn that would otherwise only reply starts one from the member's words. A uuid you mint as `conversation_id` makes the send idempotent: the same id and words again return the first outcome, and a second message while a turn is mid-answer is refused with a `conflict` (wait, then read `turn` with get_build_conversation). A turn takes from a few seconds to a couple of minutes. Read conversations back with get_build_conversation and list_build_conversations.
build:start
POST
visitors_open_transact_pr
Put Transact on the site's own pages: one Letterpress build (in Build chat, like start_build) whose pull request adds a route at /ask on the site that forwards asks to Transact (visitors_get_transact own_url), and the line that tells visiting agents they can ask, with up to three ready questions, as the first element of every page, hidden from people, and near the top of llms.txt, its addresses plain text and never links (a site that can't serve the route keeps the lettervisit.com address); Letter's tag too when the site isn't proven yet, so one merge finishes the set-up. When the organization has a product repo, the same pull request adds a page of answers to what visiting agents asked in the last 30 days that the sources didn't cover, each worked out from the product's code, for a member to read before it is public. Transact must be on (visitors_set_modules transact). The repo is the one that builds the website unless repo names another. Opens a pull request with a preview and never merges on its own. Spends tokens. Follow it with list_growth_builds. Args: site_id? | host?, repo?, base_branch?.
build:start
POST
open_shown_statistics_pr
Put the statistics shown to agents on the organization's website: one Letterpress build (in Build chat, like start_build) whose pull request adds all four placements at once: one short, muted footer line on every page with a How we count link, a section in llms.txt, schema.org interactionStatistic in the JSON-LD and a link to data.json in the head, all read from the public page's data so they follow the daily recount. Nothing is hidden from people. Done only when check_shown_statistics_on_site passes on the preview. The repo is the one that builds the website unless repo names another. Opens a pull request with a preview and never merges on its own. Spends tokens. Follow it with list_growth_builds.
build:start
POST
export_org_config
The organization's whole configuration as ONE JSON document — an `Organization` bundle (apiVersion letterstory.com/org-config/v1) whose spec mirrors the app's menus: `settings` (identity, branding, appearance, default kernel), `primitives` (phantoms, kernels with their endpoints, arenas) and `data` (context: positioning, offerings, competitors; collections with their enhance file; templates; compositions). Records are keyed by name, never id, and each carries its own `kind`. Primitive files export the LIVE version: a customer's own copy inline, a platform version by reference. Config only — no runs, history, queues or credentials; a value under a secret-looking key is replaced by `ref:redacted` and listed in metadata.redacted. metadata.pending lists config sections no reader exports yet; metadata.warnings lists parts that could not be read. Pass `sections` to read only some. Docs: docs/architecture/org-config.md.
org_config:read
POST
describe_org_config_fields
What each setting in an export_org_config bundle means: per section, the fields the Instances → Config editor shows — label, dot path inside the record, how it is edited (toggle / number / choice with labelled options / text / list / ref to another record by name), whether Simple mode shows it, when it applies (a capability field like identity.brand_subject, never profile), the apply gate a change needs (sends / spends / destroys), and why a field is read-only. Use it to turn "3 posts a week, I approve each one" into the leaf paths to change, then diff_org_config / apply_org_config the edited bundle. Fields not listed are still config: edit them as JSON. Docs: docs/architecture/config-editor.md.
org_config:read
POST
diff_org_config
Plan an `Organization` bundle against the org's live config — what applying it would change, without changing anything. Pass `config` (an edited export_org_config result, or only some of its sections: only sections present in it are compared). Records match by name: `add` (in the bundle only), `change` (with leaf-level `fields`, live → bundle; arrays compare whole) and `remove` (in the org only — apply leaves these alone unless pruning). A `ref:redacted` value is never a change. Warnings flag sections that could not be compared. Docs: docs/architecture/org-config.md.
org_config:read
POST
get_org_config_source
The GitHub repo this org keeps its config in (GitOps), if any: repo, branch, path, mode (`plan` posts each new commit's plan to Slack; `apply` applies it), and the last sync — the commit seen, the last commit applied cleanly, its result or error. Null when no repo is connected. Docs: docs/architecture/org-config.md.
org_config:read
POST
apply_org_config
Apply an `Organization` bundle to the org — diff_org_config's plan, executed record by record through each section's own service. Writes settings (including CMS field mappings and Google Docs folders; which integrations are connected is read-only), collection ranking weights, positioning, templates, compositions, dispatches, landings, prospect lists, sequences (never activated), mailer limits, Measure targets/probes/exclusions, kernel/arena files (arenas are also created, retuned and, with prune, deleted), kernel endpoints, canvas types, collection enhance files and the main collection, kernel descriptions (archived with prune), keyword-exclusion removals (prune), the mail postal address and the company ranking-target cap, phantoms, collections (with offerings, context, authors and competitor opinions), offerings, competitors and source roles; anything else is listed in `skipped` with a reason. Additive by default: records only in the org are deleted only with `prune: true`. Run with `dry_run: true` first — it returns the same result and writes nothing. Gated changes (`result.gated`) are held back unless an org admin passes `allow` (spends = create a phantom, launch a mailbox, buy a phantom's domain (buyDomain: true); sends = turn a sequence or a collection planner on, start a mailbox warming; destroys = connect a phantom to a domain you own, delete a phantom, collection or canvas type, archive a sequence, retire a mailbox; access = invite, remove or change the role of a member in settings.members) together with the dry run's `confirm` hash. A `ref:redacted` value keeps the live value on update and is refused on create. A failed record is listed in `failed` and the rest still apply; re-running converges. Docs: docs/architecture/org-config.md.
org_config:write
POST
connect_org_config_source
Keep this org's config in a GitHub repo (GitOps). Point it at `repo` (`owner/name`), `branch` (default main) and `path` — a bundle file (default `letterstory/org.json`, an export_org_config result) or an `org export --split` directory. The org's GitHub connection reads it, and the bundle at the branch head is validated now. Every ~15 minutes a new commit is then planned against the live org and posted to Slack (`mode: plan`, the default) or applied as the key's creator (`mode: apply`; deletes only with `prune: true`), and once a day apply mode posts drift — live changes made outside git. Replaces any earlier connection. Org admins only. Docs: docs/architecture/org-config.md.
org_config:write
POST
sync_org_config_source
Sync the org's config repo now instead of waiting for the ~15-minute poll: plan (or, in apply mode, apply) the branch head if it moved since the last sync — `force: true` re-runs it even if not. Returns the plan or the apply result, posted to Slack as well. In apply mode only an org admin may sync by hand. Docs: docs/architecture/org-config.md.
org_config:write
POST
disconnect_org_config_source
Stop keeping this org's config in git: forget the connected repo. Nothing in the org or the repo changes. Org admins only.
org_config:write
POST
stand_up_stack
STAND UP THE COMMON STACK IN ONE CALL — propose_primitive_plan's plan for the organization's domain (or `domain`), applied at once: what Plan's stack review does with a dry run and an apply, and what Build runs when a member's own words ask it to launch phantom sites ("launch 2-3 third-party sites"), set up mailers or a sequence (Build allows sends only when they named mailers). `primitives` keeps only those parts (["phantom"]: phantom sites, each with its collection and arena, and nothing else). Applied through apply_org_config, behind its gates: an item goes up only when every gate it needs is in `allow` (spends = launch a phantom site and buy its domain, or buy a mailer domain; sends = start a mailbox warming) and the caller is an org admin; anything that needs more is left for review and listed in `held`. Answers `stood_up` (each phantom site created, its deploy and setup carrying on in the background: follow it with list_phantoms / get_phantom), `held`, the apply's `result` and a `message` a member can read. `dry_run: true` says what would go up and creates nothing. status pending: the domain is being read for the first time; call again shortly. Re-running converges: what runs already is not created again.
org_config:write
POST
dismiss_plan_action
DISMISS A PLAN ACTION — what the ✕ on a row of Instances → Plan → Set up does. Takes an action id from propose_account_plan and records that a member doesn't want it on that site (`domain`, default the organization's own): Set up stops offering it and shows the next task instead. Nothing is undone or deleted; the action stays in propose_account_plan's `actions`, and `dismissed` lists who dismissed what and when. `dismissed: false` brings it back. Idempotent.
org_config:write
POST
create_plan_strategy
KEEP A TYPED GOAL AS A STRATEGY — what Plan → Other ("Describe your goal") → Plan it does. Takes the goal in the member's own words ("High conversion rate for qualified construction companies") on one site and keeps it as a card the member can open again. The same words on the same site are the same strategy (`created: false`; an archived one comes back). Then ask_letterpress { strategy_id } reads its next actions. Nothing else is started.
org_config:write
POST
archive_plan_strategy
Put a typed strategy away: its card leaves the Plan; its runs and builds stay as they are. `archived: false` brings it back. Who did it and when are on the row.
org_config:write
POST
set_plan_work_purpose
Attach or detach a goal to existing account work. Records this caller's choice, idempotently; never starts, pauses or deletes the resource. Use stable collection or event automation IDs, never derived automation positions. A Log entry (`log_entry`, its `key` from get_letter_log) is attached or detached the same way: the goals an action serves, which Letter reads itself; a member's choice here always wins.
org_config:write
POST
archive_growth_build
ARCHIVE A GROWTH BUILD — what Build's Archive (on a build's page, or swiping a build in the sidebar) does: the build leaves the Open list for Archived, and `archived: false` brings it back. Nothing archives a build on its own, not even a merged pull request: a person (or their agent) decides, and the build records when (`archived_at`) and who (`archived_by`). Archiving stops nothing already under way: a change still building carries on, and its pull request stays where it is. A change that has not started (one waiting for the repo that builds its site) does not start while the build is archived, and is due again if it is brought back. Returns the build as list_growth_builds shows it.
org_config:write
POST
set_rail_pins
Set the caller's organization's shared Letterpress sidebar pins in order. Pass the whole list, or null to restore the defaults. Pinning, unpinning and reordering in the app use the same setting.
org_config:write