About Openwriter
Openwriter is an MCP server published by travsteward in the Developer Tools category: the open-source writing surface for AI agents. Markdown-native editor with pending change review — your agent writes, you accept or reject. Conduid read 123 tools from its source: accept_team_invite, add_blog_site, add_subscriber, add_subscribers_to_section, approve_site_comment, ask_inactive_subscribers and 117 more. It is published to npm as openwriter and starts with npx.
The repository has 36 stars and 4 forks, and its last commit was on 16 Nov 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include editor, tiptap, writing, local-first, markdown and rich-text.
Install
claude mcp add openwriter -- npx -y openwriternpx -y openwritergit clone https://github.com/travsteward/openwriterTools (123)
accept_team_inviteJoin a site's team with the invite code from the email. The site then shows up in list_my_sites.add_blog_siteRegister a GitHub blog repo as a publishing target. Use inspect_blog_repo first to discover sensible defaults — including the frontmatter_defaults and frontmatter_field_map it proposes, which match what the site's existing posts use.add_subscriberAdd one person to the site's subscriber list as an active free member. Someone who unsubscribed or bounced is not re-added: only they can subscribe again. With send_welcome they get the site's welcome email, once.add_subscribers_to_sectionSign every current subscriber up for a section's emails, without emailing them about it. Readers who switched the section off stay off.approve_site_commentApprove a reported comment: its reports are cleared, so it leaves the reported list, and it stays up. A later report puts it back on the list.ask_inactive_subscribersBefore pruning, email the inactive subscribers (the same rule as find_inactive_subscribers) asking whether they still want your emails. Anyone who opens it or clicks its link stays; prune_inactive_subscribers waits 7 days after this so they can answer. Without subject and body a plain default is sent. Sent like email_subscribers (footer, unsubscribe link, the daily limit while in review). Run with dry_run first to see how many would get it.attach_file_to_postUpload a file (PDF, EPUB, ZIP, CSV, TXT, DOCX, XLSX or PPTX, up to ${MAX_FILE_MB} MB) so a post can offer it as a download.Returns a markdown link: put it on a line of its own in the document where the download should appear, then publish. Readers who can see that part of the post get a download card (a link in emails and RSS); inside a [paid-only] part, only paid readers get it. The file counts against the site's storage, like pictures.ban_readersBan readers from the site by email, one or up to 500 at once. A banned reader can no longer comment, like or report comments, and cannot subscribe by any route (the site, the signup embed, paid checkout, gifts, groups, private-site requests). Their free subscription ends now, so they stop getting emails. A ban does NOT cancel paid access: anyone in paid_access_kept keeps it until the writer refunds or cancels them in Stripe, or ends their comp (end_comp). delete_comments: true also takes down every comment they left on this site. Only ban whom the writer named. Returns who was banned, already_banned, invalid entries, who was unsubscribed, paid_access_kept, requests_denied and comments_deleted.cancel_subscriptionCancel a subscriber's paid subscription on the writer's Stripe. Only when the writer asked. when "now" ends paid access at once (no refund; use refund_subscriber for that); "period_end" lets it run to the end of what they paid for and stops renewal. Comps and group seats are not subscriptions of their own and are refused.check_sending_domainCheck whether an email sending domain is fully ready (DNS verified and sender verified). If domain_id is left out, lists every sending domain with its status. For the website address use check_site_domain.check_site_domainCheck the website address on the writer's own domain now: asks again whether the DNS records are in place and returns the updated status and any errors.claim_site_nameClaim the free site address <name>.openwriter.io for the active profile, or rename it if one is already claimed. Reserved and taken names are refused.close_surveyClose a survey: readers can no longer answer it, and its page says so; the responses stay. reopen: true takes responses again.connect_stripeStart connecting the writer's own Stripe account so readers can pay for the site. Returns a link the writer opens to sign in to Stripe and approve OpenWriter. Readers then pay through Stripe Checkout straight to the writer's Stripe, less a 5% OpenWriter fee.create_offerMake an offer link for the monthly and/or annual plan: a free trial of some days, or a discount. A discount is percent_off or amount_off (cents), for one payment (once), some months (repeating, with duration_months) or forever. Returns the link to share. Needs Stripe connected.cross_postShow another OpenWriter site's post on this site: it appears on the homepage and has its own page here, credited to its site and authors, with a canonical link to the original for search engines. Only posts anyone can read in full, on sites that allow cross-posts. Nothing is emailed unless send_email is true: then subscribers get the note and a link to the original (never the post's text), once. Give the post's address (url), or its site's name (from_site) and slug.decide_subscribe_requestApprove or deny a request to subscribe to a private site. An approved reader becomes a subscriber and gets the welcome email; a denied one is sent nothing.delete_guest_authorRemove a guest author and their page. Posts that named them lose that byline; a post left with no author is credited to the owner. Only when the writer asks.delete_perkRemove a perk. Paid subscribers stop seeing it at once; welcome emails already sent keep it.delete_segmentDelete a saved segment by name. Only the saved filter goes; no subscriber is changed, and messages already sent to it keep its name.delete_siteDelete the publication for good: its posts, subscribers, comments, settings and plans, and its address becomes free for anyone. OWNER ONLY and CANNOT BE UNDONE: only when the writer asked, after offering export_site. confirm_name is the site's name as the writer typed it to confirm. Refused while any reader still pays: the answer gives the count; cancel them first with cancel_subscription (when "now"), refunding as the writer decides. OpenWriter disconnects from the writer's Stripe and removes the custom domain.delete_site_commentTake a comment down: readers no longer see it, and it leaves the reported list. Replies under it stay. It cannot be put back, so delete only what the writer asked to remove.delete_site_postDelete a post from the site for good: its page goes and it leaves the archive. Emails already sent stay sent. The document in OpenWriter is not touched. To take a post down but keep it, use unpublish_site_post.delete_site_sectionDelete a section. Its posts move to the main publication and readers' choices for it are dropped. Only call this when the writer has asked, and pass confirm: true.delete_site_tagDelete a tag and take it off every post. Only call this when the writer has asked, and pass confirm: true.delete_surveyDelete a survey and every response to it. Its page stops working and posts that show it no longer do. It cannot be undone: only when the writer asks (export_survey_responses first if they want to keep the answers).disconnect_stripeDisconnect the writer's Stripe account. New paid signups stop at once; existing subscriptions stay on the writer's Stripe. Only call this when the writer has asked to disconnect, and pass confirm: true.edit_blog_siteUpdate fields on an already-registered blog site by id. Only the fields you pass change; everything else is left intact. The common use is backfilling site_url / blog_url_pattern after registration so published posts get a live "View Post" link (e.g. for Cloudflare Pages / Vercel / Netlify sites where the domain couldn't be auto-detected).email_offerEmail an offer's link (from list_offers) with the writer's message to a group of subscribers: free subscribers unless tier says otherwise, narrowed by section and search. The offer's terms and a "Claim this offer" link are added below the message. Only a live offer can be sent. Subscribers who turned emails off are skipped. Run with dry_run first: it returns how many would get it and sends nothing.email_pledgersOnce paid plans are open, email the readers who pledged a link to subscribe. Each pledger gets it once; run it again later only for new pledgers. Pledgers who turned emails off get it too: they asked to be told. Subject and message are optional (a thank-you is used); the link is added. Run with dry_run first: it returns how many would get it and sends nothing.email_subscribersEmail one subscriber, or a group of subscribers, a message that is not a post: it is never shown on the site. Give email or member_id for one person, any of tier, section and search for a group, or a saved segment; with none of them it goes to every active subscriber. Only active subscribers are emailed, never those who turned emails off (dry_run counts without them; one reader with emails off is refused). It carries the site's mailing address and an unsubscribe link, counts against the daily limit while the site is in review, and is listed by list_sent_messages. Run with dry_run first: it returns how many would get it and sends nothing.end_compEnd a reader's comp now. They fall back to what they pay for, or to free.end_offerEnd an offer. Its link stops working; readers who already used it keep their trial or discount.export_siteExport everything on the site as one zip: every post (drafts too) as Markdown with its settings at the top and as HTML, the subscriber list as CSV (free and paid, with plans), comments, settings, sections, tags and plans. Owners and admins. Without save_to it returns a download link that works for 15 minutes in any browser; with save_to it saves the zip on this computer.export_subscribersExport the site's subscribers as CSV (email, name, tier, status, email_off, source, subscribed_at, tags, billing_country). Active members by default; takes the same filters as list_subscribers, or a saved segment. Saves to file when given, otherwise returns the CSV text.export_survey_responsesExport every response to a survey as CSV: submitted_at, email, name, then one column per question (ticked choices joined by "; "). Saves to file when given, otherwise returns the CSV text.find_inactive_subscribersFind free subscribers who opened and clicked nothing from the site in `days` days (default 180) although it emailed them at least `min_sent` times (default 5): who prune_inactive_subscribers would remove. Returns the count, the first 50 (with emails sent and their last open), when you last asked them, and why pruning helps your emails reach the inbox. Paid, complimentary and founding subscribers, and subscribers who turned emails off, are never included. Changes nothing.get_graphReturn forward + inbound connections for a doc — the crawl primitive for cross-doc context retrieval. Forward connections read from the doc's `references:` frontmatter (structural data, v0.20). Inbound computed live by scanning every doc's references for entries pointing at this one (no stored derived field). Optional depth walks neighbors recursively (cap 3). v0.20.0 breaking change: edges are doc-to-doc; per-paragraph granularity (from_node/to_node/anchor text) was dropped — that was an artifact of the prose-link model.get_newsletter_analyticsGet detailed analytics for a specific newsletter issue. Shows delivery stats, per-subscriber event breakdown, and recipient list.get_paid_by_countryHow many paid subscribers the site has in each country, from the billing country Stripe knows (their address, else their card). Counts readers paying with their own card; comps and group seats are not included. unknown: paying readers with no country yet (filled at their next payment, or when you open them with get_subscriber).get_paid_retentionPaid subscribers month by month, this month last: paying at the start, new paid (a trial counts when it converts), cancelled, paying at the end, churn_rate (cancelled as a percent of those paying at the start) and mrr at the month's end (payers at today's plan prices). Paying means a reader's own subscription, so comps, gifts and group seats are not counted; mrr_now and paying_now are today's figures, mrr_now including groups. Amounts in cents of currency.get_qr_codeA QR code for one of the site's links, to print on a flyer, a slide or a book: the subscribe page, a published post or an offer's link. Returns the link it opens, the code as an SVG, and download links for the SVG and a PNG (they need no sign-in, so they can be handed to the writer).get_siteShow the active profile's site: address, name, tagline, about, logo, cover, publication settings (default audience, auto-paywall, double opt-in, welcome page and the welcome emails, comments, mailing address, the email header, footer and banner, reply-to, subscriber notices), design (accent_color, type_style, wordmark_url, wordmark_dark_url, home_layout, nav_links, home_links), tracking (google_analytics_id, plausible_domain, block_ai_training) and reader switches (show_likes, show_bylines, comment_images, allow_cross_posts, language) in site.settings, the site's own terms and privacy pages (site.terms, site.privacy; null = none), sending (status "review" = new site that can email daily_cap people a day until OpenWriter approves it, see request_site_review; "active" = no daily limit; "suspended" = cannot send; review_requested_at = when review was last asked for), payments: whether Stripe is connected, the 7-day trial, and the paid plans (amounts in cents), and sender: who emails come from (from_name, from_email), where reader replies go (reply_to; reply_to_is_default = the owner's account email), the sending domain and its status (ready, waiting_for_dns, waiting_for_sender_verification; null = sent from <name>@mail.openwriter.io, see set_sending_domain) and the mailing address. role is your role on the site (owner, admin or contributor) and team_id your place on its team (null for the owner); payments and sender are shown to the owner and admins.get_site_domainThe site's website address on the writer's own domain, if it has one: its status, the DNS records it needs (a CNAME to sites.openwriter.io and a _cf-custom-hostname TXT proving ownership), whether ownership is verified, and any errors. apex is true for a bare domain (example.com), which needs a DNS host that can flatten a CNAME at the root. The domain emails are sent from is separate: check_sending_domain.get_site_giftsWhether readers can buy the site as a gift (1 month or 1 year, at the monthly and annual prices, on the site's /gift page), and the gifts bought so far, newest first.get_site_groupsGroup subscriptions: a reader buys two or more seats of the annual plan for a team and fills them with emails. Returns the discount new groups get and each group with its seats filled and what it pays a year.get_site_plansWhether Stripe is connected, the 7-day free trial setting, and the paid plans (monthly, annual, founding) with prices and benefits. ${AMOUNTS}get_site_referralsThe referral program: settings, whether it is live (it is off while the site is private), how many readers subscribed through referral links, the top referrers, and rewards given. Every subscriber gets a referral link while the program is on.get_subscribe_embedGet the public subscribe URL and embed code for a signup form on another website. Signups join the site's subscriber list. Returns an HTML form snippet (works without JS) and a JS fetch snippet.get_subscriberOne subscriber in detail: tier, status, whether they turned emails off (email_off, and since when: email_off_at), source, when they joined, their tags, the country they are billed in (billing_country and billing_country_name, for paying readers), founding, comp; their paid plan as Stripe has it (amount in cents, interval, renewal date, whether it renews, trial end); their last 24 payments with refunds and invoice links; their activity (site emails received, emails opened and clicked, comments, likes, last seen); and the support actions taken on them. Post views per reader are not recorded.get_subscriber_countsHow many subscribers the site has: active members by tier (active_by_tier: free, paid, founding, comp, emails on or off) and every member by status. emailed_by_tier counts only the active members who get emails, by tier: use it for how many people a post or message would reach. email_off is how many active members turned emails off (still subscribed, never emailed). With segment, the same counts for that saved segment.get_subscriber_growthSubscribers over time: for each day (or week, starting Monday) the active subscribers at its end, as free, paid (paid and founding), comp and total. Default the last 30 days, or 12 weeks by week; at most 731 days. exact_from and note say when the site's history begins to be exact: before it, people who later left are not counted.get_survey_resultsA survey's results: the number of responses, and per question how many answered it; for multiple choice and checkboxes each choice's count and percent of those who answered (checkboxes can add up past 100); for text questions the answers, newest first (up to 500; "more" counts the rest, which export_survey_responses has).get_traffic_sourcesWhere post views came from, for the whole site or one post: channels (direct, your site, search engines, social media, webmail, other websites, links with utm_source) with views and share, and the top websites and utm_sources. Default the last 30 days. untracked_views are views counted before sources were recorded. Only the referring website and utm_source are kept, never anything about the reader.grant_compGive a reader free paid access for a while or forever. Pass email or membership_id. An email that is not a subscriber yet becomes one. A new comp replaces any comp the reader has; it never changes what a paying reader pays.import_postsImport a back catalogue into the site from WordPress (the export file from Tools > Export, or the site's address for its public posts), Ghost (the JSON export), Medium (the export zip, its folder, or one post's .html) or any RSS or Atom feed (only the posts the feed lists). Keeps each post's title, subtitle or excerpt, text, cover, original date, address (slug) when it is free, and tags; pictures are copied into the site's image storage while it has room, and the rest stay at their old address. Posts come in published with their original dates or as drafts (as); posts that were drafts, private or scheduled there always come in as drafts. Nobody is emailed. Running it again skips posts already imported. Run with dry_run first to list what would come over. Owners and admins.import_subscribersBulk import subscribers into the site's list from a CSV file or pasted CSV text (up to 10,000 rows). Reads exports from ConvertKit, Mailchimp, Substack, Beehiiv, etc. (email/Email Address, name or first+last name). Skips invalid emails, rows marked unsubscribed, repeats, and anyone already on the list (an unsubscribed person is never re-added). A "tags" column (tags separated by commas or semicolons) tags each row's subscriber, new or already on the list. Imported people get no confirmation email.inspect_blog_repoClone a GitHub blog repo (shallow) to a local cache and infer its framework, content directory, image directory, and frontmatter schema. Read-only — produces a config preview you can feed to add_blog_site.invite_to_teamInvite someone to the site's team by email. The email links a page on the site where they sign in to OpenWriter with an emailed code and join; an agent can join with accept_team_invite and the code instead. The site needs its address first. ${ROLES}list_banned_readersThe emails banned from the site, newest first, with the writer's reason and when. total counts every ban.list_blog_sitesList all registered GitHub blog sites.list_compsReaders the writer has given free paid access (comps), soonest to end first. A comp with no end date lasts forever.list_cross_postsPosts from other sites shown on this site, newest first: title, where from, the original's address, the page here, the note, whether it was emailed, and live (false while the original is no longer public or its site stopped allowing cross-posts: readers do not see it).list_guest_authorsThe site's guest authors: people credited on posts who are not on the team and have no account. Each has an id (pass it in publish_to_site authors), a name, bio, photo, link, the address of their page on the site (url) and how many posts name them.list_my_sitesEvery site you can act on: your profiles' own sites (owner) and sites you joined as admin or contributor. Pass a site's name or id as site to any site tool to act on it.list_newsletter_issuesList past newsletter sends with open/click stats. Returns issue IDs needed for get_newsletter_analytics.list_offersEvery offer with its shareable link, whether the link works now (state), and how many readers used it.list_perksThe perks paid subscribers get besides the posts (a discount at a partner, a monthly call), oldest first. Paid readers see them on their account page and in their paid welcome email; free readers never do.list_pledgesThe pledges: how many, how many confirmed their email, how many now pay, by plan, and what the confirmed pledges would bring in a month (monthly_revenue, in cents; annual and founding count as a twelfth). Each pledge has the reader, plan, amount, their subscriber status and when they were emailed the link. can_email says whether email_pledgers would reach anyone now.list_pruned_subscribersThe readers removed by prune_inactive_subscribers, newest first: email, when, why (days without an open and emails sent), who on the team pruned them, and their status now (active if they subscribed again).list_segmentsThe saved segments, by name, each with its filter in plain words and how many subscribers match it now.list_sent_messagesThe messages sent with email_subscribers, newest first: subject, who it went to (an email, or a group such as "Paid subscribers in Fiction"), who on the team sent it and when, how many it was addressed to, how many were delivered and how many opened. Posts are not listed here.list_site_commentsList comments readers left on the site's posts, newest first, with the post, the reader (name and email), whether it is pinned and how many times readers reported it. reported: true lists only reported comments, most reported first: the moderation queue, where each one is approved (approve_site_comment) or deleted (delete_site_comment).list_site_postsList the site's posts, newest first: drafts saved on the site, scheduled and published posts, each with its address and, for those who manage the site, its stats (views, recipients, opens, clicks, subscribers gained, and subject_test with each subject's results when it was emailed with a subject line test), and its authors (each with id and name; a guest author also has guest).list_site_recommendationsSites this one recommends, with how many subscribers it sent each, and sites recommending this one, with how many subscribers they brought. Recommendations are offered to new subscribers and shown on the site's /recommendations page. Each recommending site's blurb (recommended_by[].blurb) can show on this site's welcome page as an endorsement (welcome_endorsements in update_site_settings).list_site_sectionsThe site's sections, in navigation order. A section is a separate stream of posts with its own page (/s/<slug>) that readers can switch on or off in their email settings. Posts with no section are in the main publication. Each section's subscribers is how many active members get its emails; list_subscribers with section lists who they are.list_site_tagsThe site's tags. Each tag has a page (/t/<slug>) listing its posts. Tag posts with publish_to_site's tags.list_site_teamThe site's owner (author id "owner") and everyone invited, with role and whether they accepted. Ids are what publish_to_site's authors take. ${ROLES}list_subscribe_requestsReaders asking to subscribe to a private site (update_site_settings private). Shows pending requests unless another status is asked for.list_subscriber_tagsThe tags in use on the site's subscribers, with how many subscribers have each (members: any status; active: still subscribed).list_subscribersList the site's subscribers (its members: the list site posts are emailed to), newest first, with their tags. Active members by default; filter by status, tier, email_off, source, search, section (who gets that section's emails), tag, when they joined, and whether they opened an email lately; or give a saved segment instead. Each subscriber has email_off: true when they turned emails off (still subscribed with all their access, never emailed). Works before a site name is claimed too.list_survey_responsesIndividual responses to a survey, newest first: when it was sent, the reader's email and name when they were signed in (null for someone who answered without signing in), and each answer in words (a list for checkboxes, null when left blank).list_surveysList the site's surveys, newest first: title, intro, questions, who can answer, whether it is closed, how many responses, its page (url) and the marker line that puts it in a post (marker, e.g. "[survey] reader-survey").pause_billingPause all paid billing for the site, for a vacation or a break. Only when the writer asks. Every paying subscription on the writer's Stripe stops being charged (Stripe voids each invoice, so nothing is owed later) and readers keep their paid access. New paid signups, gifts and group subscriptions are closed until billing resumes, and the subscribe page says so. With resume_at billing resumes by itself on that date; without it, until resume_billing. Run it again to change the date or retry failures.pause_subscriber_billingPause one paying subscriber's billing (they keep their access and are not charged; Stripe voids the invoices), or resume it with paused false. Only when the writer asks. Comps and group seats have no billing of their own and are refused.pin_site_commentPin a comment to the top of its post's comments, or unpin it (pinned: false).pin_site_postPin a published post to the top of the site's homepage, or unpin it.post_to_blogPublish the active OpenWriter document to a registered GitHub blog site via local git ops (clone-or-pull, write file + images, commit, push). Auth uses your existing `gh auth login`.prune_inactive_subscribersUnsubscribe free subscribers who opened and clicked nothing in `days` days (default 180) although emailed at least `min_sent` times (default 5). REMOVES READERS: run with dry_run true first and tell the writer the count, then run with dry_run false only when they agree. Paid, complimentary and founding subscribers, and subscribers who turned emails off, are never removed; removed readers can subscribe again, and list_pruned_subscribers shows who went. Refused for 7 days after ask_inactive_subscribers so they can answer.recommend_siteRecommend another OpenWriter site, or change a recommendation. Its writer is emailed the first time. Up to 50 recommendations.refund_subscriberRefund a paying subscriber on the writer's Stripe. MOVES MONEY: only when the writer asked for this refund. Without payment_id it refunds their latest payment; without amount_cents, all that is left of it. It never refunds an older payment on its own. OpenWriter's 5% fee on the refunded part is returned too. The subscription is not cancelled; use cancel_subscription for that. Payment ids are in get_subscriber.remove_blog_siteRemove a registered blog site by id.remove_cross_postStop showing a cross-post on this site. Emails already sent stay sent; the original is not touched.remove_site_domainRemove the website address on the writer's own domain. The site goes back to <name>.openwriter.io at once and links to the old domain stop working. Only the site owner can do this. Only call this when the writer has asked, and pass confirm: true.remove_site_recommendationStop recommending a site.remove_subscriberUnsubscribe a subscriber from the site by their id (from list_subscribers). They get no more email; they stay in the list as unsubscribed, and only they can subscribe again. To stop their emails but keep them subscribed, use set_subscriber_emails instead.remove_team_memberTake someone off the team, or withdraw an invite. They lose access at once; posts left with no author become the owner's. Only call this when the writer has asked, and pass confirm: true.request_site_reviewAsk OpenWriter to review the site and lift its sending limit. New sites can email a limited number of people a day (get_site shows sending.status "review" and sending.daily_cap) until they are approved; the writer is emailed when that happens. The site needs a name first, and a request can be made once a day. Owners and admins only.resend_post_to_unopenedEmail an emailed post again to the people who got it and did not open it, still subscribed with emails on and still in its audience. A post is resent once, and only from 24 hours after it was emailed (a refusal says when). A new subject is optional. Run with dry_run first: it returns how many would get it and sends nothing.resend_sending_domain_verificationResend the sender verification email for an email sending domain. Use when the writer did not receive or cannot find the original verification email.resume_billingResume paid billing paused with pause_billing, now. Each subscription is charged again from its next renewal, never for the paused time, and new paid signups open again. Subscribers paused one by one (pause_subscriber_billing) stay paused until their own date.save_guest_authorAdd a guest author, or change one (pass guest_author_id). A guest author is credited as a post's byline (publish_to_site authors: their id) and gets a page on the site with their bio, photo, link and posts. Their page address is made from the name once and stays when the name changes. Only the fields you pass change.save_perkAdd a perk for paid subscribers, or change one (with perk_id: only the fields given change). Up to 20 perks.save_segmentSave a named segment: a filter over the subscriber list that stays up to date (who matches is worked out each time it is used). Saving a name that exists replaces its filter. Active subscribers unless status says otherwise. Use it with list_subscribers, export_subscribers, get_subscriber_counts and email_subscribers (segment: its name).save_site_sectionMake a section, or change one by passing section_id. Only the fields you pass change. Put posts in it with publish_to_site's section.save_site_tagMake a tag, or change one by passing tag_id: rename it, change its slug, or show it in the navigation. Tagging a post with a new name also makes the tag.save_surveyMake a survey, or change one (pass survey_id). A survey has a title, an optional intro and 1 to 20 questions; it gets its own page on the site to share by link, and the line it returns as marker (on a line of its own in a post, then publish) shows it in a post: a card on the page, a link in the email. Readers answer once. who_can_answer: "subscribers" (signed in, the default) or "anyone". Its page address is made from the title once and never changes. Once it has responses, questions can be reworded but not added, removed, moved, retyped or given more or fewer choices. Only the fields you pass change; questions replace the whole list.set_auto_renewTurn a paid subscription's auto-renew off (it ends at the end of the period they paid for; they keep access until then) or back on. Changes the subscription on the writer's Stripe; nothing is charged now.set_foundingMark a paying subscriber as a founding member (founding-only posts and the founding welcome email) without changing what they pay, or remove the mark. It lasts while their current subscription pays. For a comped reader, grant the comp again with founding instead.set_pledgesTurn the pledge form on or off and set the prices it announces. While paid plans are not open (Stripe not connected, or no plans), readers can pledge monthly, annual or founding on the subscribe page: they subscribe for free and nothing is charged. Only the fields given change. Defaults: 5.00 a month, 50.00 a year, 150.00 founding. Amounts are in cents (500 is 5.00).set_sending_domainSend the site's emails from the writer's own domain (e.g. newsletter@example.com) instead of <name>@mail.openwriter.io. This is the email sending domain, not the website address (that is set_site_domain). Handles SendGrid domain authentication, the DNS records (added automatically for Cloudflare domains) and sender verification. Follow the next_action field in the response, then check_sending_domain until fully_ready.set_site_domainWebsite address: serve the site on the writer's own domain, like www.example.com or example.com. Needs a claimed site name, and a site has one. Returns the DNS records the writer adds at their DNS host. This does not change who emails come from; that is set_sending_domain.set_site_giftsTurn gift purchases on or off. Gifts already bought are still delivered. Needs Stripe connected.set_site_group_discountSet the discount on the annual price for new group subscriptions. Existing groups keep theirs. Needs Stripe connected.set_site_plansSet the paid plans. This replaces the whole set: pass monthly and annual every time, and founding to keep a founding plan (leaving it out removes it). Needs Stripe connected. Minimums are 5.00 a month and 30.00 a year; founding must cost more than annual. ${AMOUNTS}Changing a price applies to new subscribers; existing ones keep what they pay.set_subscriber_emailsTurn a subscriber's emails off or back on. With emails off they stay subscribed and keep all their access, paid access and billing included; they just get no posts, messages or digests by email (sign-in codes, receipts and billing notices still go). Readers can also do this themselves on their account page or from an email's Unsubscribe link. Only active subscribers have the switch.tag_subscribersAdd or remove tags on subscribers, one or many at once, by email or id. Tags are short labels you choose (e.g. "vip", "met at the book fair"), stored in lowercase; filter list_subscribers and segments by them. Tagging changes nothing else about a subscriber. Emails not on the list are reported, not added.transfer_site_ownershipMake an admin on the team the owner of the site. OWNER ONLY and the writer cannot take it back: only when the writer asked, with confirm: true. The writer stays on as an admin. The new owner gets the site on their account's main profile; payments keep going to the Stripe account connected to the site until the new owner connects their own. Only someone who accepted an admin invite can become owner (list_site_team).unban_readerLift a ban: the reader may comment and subscribe again. Nobody is re-subscribed for them; they subscribe again themselves.update_siteUpdate the site's details. Only the fields you pass change; an empty string clears an optional field.update_site_referralsChange the referral program. Only the fields you pass change. Rewards have three tiers by number of referrals: on a site selling paid plans the reward is free paid access (comp); otherwise it is a reward_text emailed to the referrer. Rewards already given are kept, and readers who now reach a tier (after a lowered threshold) get it right away.update_site_settingsUpdate publication settings, the site's design (accent colour, type style, wordmark, homepage layout, links) and tracking. Only the fields you pass change. A mailing address is required before the first email goes out. A private site is readable by approved subscribers only: readers ask to subscribe, and the writer approves or denies each request (list_subscribe_requests). Post emails can carry a header, footer and banner, the same for everyone or different for free and paid readers; they appear only in emails. A tracking ID adds that provider's tag to the site's pages only, never to emails or previews. The returned settings show the email parts as { free, paid } (null = none).update_team_memberChange a team member's role, name or whether they are on the About page. Only the fields you pass change. ${ROLES}An admin can also turn on the subscriber emails for themselves (notify): new free and paid subscribers and cancellations, as the site settings send them to the owner.Security checks
- ✓README presentThe repository's README runs to about 1.7K words.
5 checks have not been run yet.
README
The repository's README runs to about 1.7K words. The original in the repository is authoritative.
Read full README