Workflows reference

Look up the limits, APIs, SDKs, and settings of Workflows here. Each entry links to the page with the full details.

Limits, quotas, and sending tiers

Limits, quotas, and sending tiers lists every limit in one place:

API reference

The Workflows API page explains which key each endpoint needs. Each reference page lists every endpoint and field.

ReferenceWhat it covers
Transactional emailSend email, upload attachments, and check the status of a send.
Email templatesManage the templates in the email library, and mark a template as transactional.
Email logsRead the sends of the last 30 days, with the timeline of each send.
BroadcastsManage broadcasts, schedules, and batch jobs, and count the people that a set of filters reaches.
WorkflowsManage automations and their drafts, publish them, and read their runs.
Email subscriptionsManage opt-outs and message categories.
Suppression listAdd and remove addresses on the suppression list, one at a time or in bulk.

API keys

KeyScopesUse it for
Project secret API keytransactional_email:write, transactional_email:read, messaging_preference:writeSending email, uploading attachments, reading the status of a send, and updating opt-outs from your server
Personal API keyhog_flow:read, hog_flow:write, person:read, query:readReading the send history, and managing templates, broadcasts, automations, opt-outs, and the suppression list

Server SDKs

Each SDK sends transactional email and retries with idempotency keys for you.

SDKFrom versionGuide
Node.js5.62.0Node.js
Python7.84.0Python
GoAny v2 release, or 1.40.0 on v1Go
.NET2.20.0.NET
Rustposthog 1.0.0, or posthog-rs 0.31.0Rust
Ruby3.30.0Ruby
Elixir2.20.0Elixir
PHP4.22.0PHP
Any other language–REST API

Agent skills

The PostHog MCP ships these skills, so there is nothing extra to install. Your agent loads a skill when a task calls for it. Agent skills explains how your agent picks one.

building-workflows

View source

Build, edit, test, enable, and monitor PostHog workflows over MCP.

designing-email-templates

View source

Author, save, and edit email templates in the PostHog workflows library — compose email design JSON with Liquid personalization and create and round-trip-edit templates over MCP.

importing-push-tokens

View source

Move existing mobile push devices from another platform (OneSignal, Braze, Customer.io, Airship, or your own Firebase backend) into a PostHog workflows push channel, so people who installed the app before the switch still get push notifications.

measuring-email-performance

View source

Reports how a PostHog workflow email performs, read-only over MCP: sends, deliveries, opens, clicks, bounces and spam complaints per email step, version comparisons, clicked links, product outcomes after the send, and one person's email history.

  • workflows-stats
  • workflows-version-stats
  • workflows-get
  • execute-sql
  • workflows-list-batch-jobs
  • workflows-list
  • persons-list
  • workflows-list-invocations
  • read-data-schema
  • workflows-list-versions
  • workflows-list-proposals
  • query-session-recordings-list

migrating-from-customer-io

View source

Move Customer.io automations into PostHog as draft workflows, and transactional messages into transactional templates.

migrating-from-email-providers

View source

Move a team from an email API provider such as Resend, Postmark, SendGrid, Mailgun or Mailchimp to PostHog: import the suppression list, unsubscribes, topics, mailing lists, templates and automations with the provider-imports tools, then walk through DNS, template review and the cutover.

setting-up-an-email-domain

View source

Set up a custom sending domain for PostHog Workflows email end to end: create the email sender, get its DNS records, publish them through Domain Connect or your own DNS tools, and verify until the domain can send.

setting-up-supabase-auth-emails

View source

Connect a Supabase project so its auth emails send through PostHog email templates via the Supabase Send Email Hook, in an order that never breaks a sign-up.

sending-transactional-emails

View source

Set up PostHog transactional emails: one-off emails that code sends to one person, such as password resets, sign-in codes, magic links, verification emails, receipts, and invites.

MCP tools

PostHog MCP lists the Workflows tools that the PostHog MCP server gives your agent.

Settings and lookup tables

PageWhat it lists
TriggersEvery trigger type and its settings
StepsEvery automation step and its settings
Push step optionsThe settings of a push notification step
LiquidTemplate variables, filters, and tags
Engagement eventsThe events that PostHog captures for each email, and their properties
Retries and errorsTransactional error codes, and which ones to retry
Test senderWhat the PostHog test sender does before you verify a domain

Amazon SES documentation

PostHog sends email through Amazon SES. These AWS pages explain the parts of SES that affect you as a PostHog sender.

AWS pageWhy it matters
Amazon SES tenantsHow PostHog keeps the sending reputation of each project apart from other projects
Dedicated vs. shared IP addressesWhy PostHog sends from managed, shared SES IP addresses
Email authentication (DKIM, SPF, DMARC)The DNS records that verify your domain
Custom MAIL FROM domainsHow your feedback. subdomain sends bounces back to PostHog
Monitoring bounces and complaintsHow SES evaluates bounce and complaint rates
Managing sending quotasSES account limits, which are not the same as your project's sending tier
Migrating to Amazon SESHow your domain keeps its reputation when you move from another provider

Concepts

To understand why these limits and settings exist, read the explanations:

Still have questions?

Was this page useful?