REST API and MCP
Everything the dashboard does, from code or an AI assistant
The REST API and the MCP server run the same 382 actions as the dashboard, with the same checks: plan limits, sender rules, pre-send checks, campaigns paused for their bounce or complaint rates or Gmail's spam rate, blocked accounts and first sends in steps.
REST APIJSON in and out
https://flockstack.io/api/v1MCP serverStreamable HTTP
https://flockstack.io/mcp- 1
Create an API key
On the API keys page. Full access for scripts and AI assistants; signups only for signup forms in your website's code. Keys are shown once.
- 2
Make a request
Every request sends the key as a bearer token. This one lists your newsletters with their settings.
Terminal curl https://flockstack.io/api/v1/newsletters \ -H "Authorization: Bearer $FLOCKSTACK_API_KEY" - 3
Or connect an AI assistant
One command for Claude Code. Codex and Cursor take a few lines, and ChatGPT, Claude and Grok Bot connect with your sign-in, on the MCP page.
Terminal claude mcp add --transport http --scope user flockstack https://flockstack.io/mcp \ --header "Authorization: Bearer $FLOCKSTACK_API_KEY"
What you can do
Comments8Readers' comments on the web issues: settings, moderation with reasons the author always sees, reports, and blocking a commenter.Reports7Campaigns33Drafts, test emails, scheduling, sending, sending in steps and reports.Creator matches8Mailing lists3Optional reader preference lists within one publication. List targeting narrows tier and segment audiences; status and suppression always apply.Perks2Private benefits for paid readers, with tier checks on the page and every file download.Authors3Guest profiles and per-issue bylines. A byline change leaves sent emails and sender names as they were.Readers4Reader language, replies and newsletter settings.Payments3Whether the account can take payments, and connecting its Stripe account. FlockStack takes no cut of sales.Team3Account seats and roles. Only the owner can manage access.Agents3Draft newsletter bootstrap, provisional workspaces and evidence-based writing briefs.Fleet3All your brands, their sending health, automatic domain setup and newsletter sending brakes.Overview1Subscribers, email results and sends per hour, as on the dashboard's first page.Newsletters12Sender, postal address, welcome and confirmation emails, list cleanup and archive.Website8Content calendar23Newsletter issues and LinkedIn posts planned together: items with their copy, visuals, reader problem, funnel stage and pillar, editorial batches, recurring patterns, planned days and a backlog, a calendar range that shows plans apart from real deliveries, review (the owner approves in the dashboard) and revisions. Planning never sends, schedules or publishes, and LinkedIn posts are published by hand.Feeds1Reading an RSS or Atom feed, as an issue's RSS block shows it.Series6Recurring series: an issue made from a feed's new items on a schedule, as a draft to review or sent by itself, with a history of its runs.Briefings15Briefings: from a topic brief, the open web searched on a schedule, the stories its audience cares about picked, read and written up as a sourced draft issue, in sections when it has them, with checks, on the account's own AI and search keys (encrypted, never shown again) and within a budget per run.Templates5Saved issues to start new ones from.Snippets4Pieces of content written once and inserted into issues from the editor.Contacts9Search, signups, imports with checks, status changes, deletes and exports.Forms9Post import4Moving an archive from Substack, beehiiv, WordPress, Ghost or Mailchimp: upload the export, preview it, import its posts as sent issues with no email going out.Redirects4A website's redirects: from the old addresses of imported posts, or added by hand or by CSV.Referrals6A referral program with rewards: settings, who referred whom, and the leaderboard.Recommendations7Audio versions8Audio versions of issues read in a voice: the voices, the month's characters, making and deleting an issue's audio, and the podcast feed's settings.Tags and fields12Free-form tags on contacts, and custom fields (text, number, date, date and time, true or false, lists) for merge tags, segments, automations and the preference center.Segments7Saved audiences: rules over a newsletter's contacts, with live counts, that a campaign or an automation can use, and saved lists that keep the contacts a segment matched on one day.Polls and surveys13Polls in issues with one-click votes from email, surveys on the newsletter's website saved to custom fields, and their results.Automations11Emails, waits, tags, fields, webhooks, branches and random splits that start for a contact when they subscribe, get or lose a tag, join or leave a segment, upgrade, buy, click a link, go quiet, reach a date or are added by hand or by your code, and templates to start from.Domains5Own sending domains with their DNS records, and the shared address.Paid subscriptions3A newsletter's paid settings: on or off, currency, free trial and subscribers. Campaigns can go to paid readers only.Paid tiers7Up to 3 paid tiers per newsletter with monthly, quarterly, yearly, lifetime and pay what you want prices, made as Products and Prices on your Stripe account. A paid issue reaches a tier and the tiers above it.Pledges7Readers pledge a price and save a card with nothing charged; the writer converts the pledges into paid subscriptions, telling every pledger first.Offers6Discounts and free trials with a link, made as coupons on your Stripe account, how many readers took each, and a launch offer banner.Group subscriptions11Editor collaboration6Reader billing9Sponsorships23Gifts3Gift subscriptions: a reader pays once for months of a paid tier for someone else, who gets an email with a message on the day chosen and a link to redeem it.Gift links4Comps3Paid access you give a contact by hand until a day: shown apart from paying readers and never counted as revenue.Products6Digital products readers buy once: files kept private, pages on the newsletter's site, Stripe Checkout on your own account.Orders3What readers bought, who got their download link, and resending it. Refunds are made in Stripe.Images4Pictures for campaign content, on FlockStack's CDN, kept in the account's library to use again, and files readers download from an issue.Media library7AI writing5API keys5Keys for the REST API and MCP, each with a level: read only, drafts only, send with approval, full access or signups only.Agent safety3Requests an AI agent made that wait for the owner's approval, and the log of what keys and connected apps did. Approving or rejecting is the dashboard's: no key can.Webhooks9Addresses FlockStack POSTs events to as they happen, signed, retried for about 5 days, with a log of each delivery.Billing6Plan, usage and links to Stripe to change plan.Export2Everything the account has in ZIP files: contacts, issues, images and settings. Never a paid feature.
For agents reading this
- /llms.txt lists these pages and every endpoint.
- /llms-full.txt is the whole reference in Markdown.
- /api/v1/openapi.json is the API as OpenAPI 3.1, made from the same schemas as the MCP tools.