This page is the public guide for the SESender MCP connector at https://sesender.com/api/v1/mcp. It is how Claude, Grok, the OpenAI API, the xAI API, and Gemini CLI / Gemini API talk to a FlowForge account. The connector can list automations, read runs, draft a routing change, and, only after you confirm, send or enroll people. “Works with” means the connector is available. It does not mean the assistant’s company endorses SESender.
The ChatGPT app and the Gemini app at gemini.google.com are not yet supported. Both only support OAuth, and this connector does not use OAuth. Use claude.ai, grok.com, the OpenAI Responses API, the xAI API, or Gemini CLI / the Gemini API with the google-genai SDK. Create the API key in your SESender account. In every sample, write YOUR_SESENDER_API_KEY. Do not paste a real key into a chat, a ticket, or a screenshot.
Turn the connector on
The URL answers that it does not exist until FF_MCP_V2 is exactly 1 on the web process. Unset, true, yes, and 0 stay off, and the route is hidden before the key is checked. Turning that flag on is an operator step. Nothing on this page sets it. After it is on, the same URL serves every client listed above.
On claude.ai, add a custom connector. Set the URL to https://sesender.com/api/v1/mcp. Set authentication to No sign-in. Leave OAuth and other sign-in methods off. Claude does not sign in to a SESender account for this connector. Add a request header named x-api-key and set the value to your SESender API key. When that header is present it is the key that is checked, even if the client also sends an Authorization header.
Authorization: Bearer also works when x-api-key is absent.
On grok.com, open Connectors, then New Connector, then Custom, and use the same URL and the same x-api-key header. For the OpenAI API, add a remote MCP tool on the Responses API and send the key in the headers. For the xAI API, add a remote MCP tool with the same URL and send the key in x-api-key. That path is separate from the grok.com connector.
Gemini CLI only: run gemini mcp add --transport http https://sesender.com/api/v1/mcp -H 'x-api-key: YOUR_KEY'. For the Gemini API, use the google-genai SDK: open an MCP streamable-HTTP session with the x-api-key header and pass it in tools.
Scopes and confirm
Grant only the scopes the assistant should have. flowforge:read lists and reads automations, runs, templates, routing policies, and funnel stats. It does not send. flowforge:ingest dry-runs an audience and saves edits that do not send, including funnel_save. flowforge:operate is required for a live action, and the tool call must also set confirm to true. flowforge:approve is only for ingest with auto-approve. providers:read lists provider accounts and senders and does not return credentials.
REST routes do not require flowforge:operate. That scope is the confirm gate on this connector.
Live actions require confirm. Without confirm, the tool returns a preview and does not call the handler, so nothing is sent, activated, cancelled, or enrolled. A connected assistant can prepare the call. You confirm it. Include flowforge:operate on the key only when you want that gate to be available. A read-only key is the right key for an assistant that should inspect runs and never start one.
Tools worth knowing
Read tools call the same REST handlers as the API and stop at your account. automations_list and automations_get show the automation, including whether the canvas is valid, the throttle, and warm-up. runs_list, runs_get, and runs_recipients show a run and its people. runs_recipients can filter by status. automation_stats sums sent, failed, delivered, and clicks from up to ten pages of runs and sets partial when older runs were left out. template_sets_list and template_sets_get read template sets.
approvals_list finds runs waiting for approval. funnel_get, funnel_enrollments, and funnel_stats read a funnel without sending.
Edits that do not send still need a confirm when they can change live traffic. automations_update patches an automation. Setting isActive on that patch also needs flowforge:operate and confirm true. template_sets_update and routing_policies_update need flowforge:ingest, flowforge:operate, and confirm true. Without confirm they return a preview and do not write. A template change does not rewrite a run that already froze its snapshot.
funnel_save writes steps and stops and does not activate the funnel and does not send.
Live tools are the ones that move people. ingest posts the audience. dry_run defaults to true. Only boolean false is a live send, and that needs flowforge:operate and confirm true. Dry runs need flowforge:ingest. Suppression, caps, and the approval threshold stay on the handler. auto_approve still needs flowforge:approve. automation_activate and automation_deactivate flip isActive. run_cancel stops a run and does not recall messages already sent. approvals_approve starts delivery for a run in awaiting_approval.
funnel_activate and funnel_deactivate turn the funnel tick on or off. New funnel sends still need FF_FUNNELS exactly 1 on the worker. funnel_enroll can cause later sends. funnel_exit stops future steps for one enrollment. events_send posts one event. If that route is not mounted, the tool returns FLOWFORGE_EVENTS_SEND_STUB and does not deliver.
Routing policies
routing_policies_list and routing_policies_get read policies. routing_policies_update writes one. The patch can set chain entries, preferred_route_id, weight, and rotation.mode. It can also set match.domains and providerDomainBlocklists. It does not return provider credentials. Without confirm it returns the normalized patch and does not write.
Email rules can match the recipient domain. match.domains is case-insensitive and subdomain-aware. nike.com matches mail.nike.com and does not match notnike.com. gmail.com and googlemail.com, including subdomains, are the same domain. A rule with both countries and domains matches only when both match. Domain rules are tried before country rules and the default rule. providerDomainBlocklists maps a provider id to domains that skip that provider and use the next chain entry.
If every provider is blocked for that domain, the original chain is used, the send is logged, and the recipient is not dropped. providerBlocklists is countries only. A domain stored there is ignored and is not migrated. Domain rules are email-only. SMS routing stays country and preferred_route_id. This is not Account Block domain, which skips the address everywhere, and it is not a campaign include or exclude filter.
Domain Bounce Analysis on Campaigns counts only this account's own email messages. An event counts only when it joins one of those messages by message id or by provider message id on the same provider. Hard, soft, and dropped are separate. Hard is a permanent bounce. Soft is deferred, blocked, or a bounce that is not permanent. Dropped is a provider drop or suppression, not a mailbox bounce.
A suggestion to exclude a domain from one provider needs at least 100 owned messages and a hard-bounce rate of at least 15%. That suggestion uses the next provider in the chain. It does not drop the recipient and it does not write Account Blocked Domains. The dashboard card Email domains to review is a different rule: the last 30 days, 20 sent emails with no opens, or at least 90% bounced.
An SMS chain entry uses preferred_route_id. route_id is the same field and is still accepted. Unset uses that provider account’s Route ID. auto or blank means the provider picks, so neither query parameter is sent. A real value is sent as preferred_route_id with the digits unquoted, and the same digits are also sent as the legacy route_id.
One provider account can appear on more than one entry, each with its own preferred_route_id, so one account can cover more than one country. A bad value is rejected and is not stored.
rotation.mode stays unset by default, so the first chain entry is used unless rotate is on. Set rotation.mode to weighted to split one rule’s entries by weight. A missing weight counts as 1. The choice is a stable hash of the recipient external_id, or the recipient id when that is missing, so a retry of the same person stays on the same entry.
It is not a random draw and it is not the in-memory round-robin. Failover still moves to a different provider account. It does not try the other preferred_route_id on the same provider. A dry-run preview row shows provider_id, preferred_route_id, weight, and expected_share for the entry that hash would pick.
providers_list
providers_list returns this account’s provider accounts: id, name, provider type, channel, status, and whether an SMS Edge route id is set. It needs providers:read. It does not return credentials, and it does not return the route id value itself. Use it to see which accounts exist before you put a provider_id on a chain. senders_list reads the stored senders for one provider you own. It also needs providers:read and does not return credentials.
A saved sender is not automatically the From at send time. The chain entry sender is what the send uses, and the provider still has to allow that originator.
senders_verify checks a sender or domain status at the provider. It needs providers:read. Pass email or sender_id. It does not send a campaign. Alphanumeric SMS senders drop spaces and are cut to 11 characters. A phone-number sender is not cut that way.
Funnels and the options that stay off
Funnels and events are early access, enabled per account on request, and off by default. Events need FF_EVENTS_API exactly 1 on the web process and Enable events API (funnels) on the account in Settings, FlowForge. With the flag off, POST /api/v1/events answers HTTP 404. With the account switch off, it answers HTTP 403. The worker does not read FF_EVENTS_API. Step sends need FF_FUNNELS exactly 1 on the worker and an activated funnel.
Nothing on this page turns those flags on.
Prefix event names with the brand, such as acme_signup, and use that same name as the funnel trigger. signup, deposit, deposit_declined, and ftd still work when the trigger uses those names. signup matches a registration trigger. deposit and deposit_declined are exact names and do not trip a first-deposit stop. The brand field does not choose the funnel. One contact has one enrollment per funnel until that funnel turns re-entry on.
New funnels do not stop on registration or first deposit, and they do not enroll on registration, until you save those stops.
Optional funnel controls stay off until you set them. Step filters need FF_FUNNEL_STEP_FILTERS exactly 1 and still send to everyone while every filter is unset. With the flag off, the tick does not read the filter tables. A step can skip when a named event arrived since the previous step, and the funnel continues. Unset skips nobody. Re-entry after exit or after N days is per funnel. The default is still one enrollment.
An active enrollment is not reset. Quiet hours hold until the window ends unless the action is send at the last allowed minute. If that minute has already passed, the send goes now instead of queueing a past time. Settings can limit a contact to one funnel message per UTC day. Someone who already had a funnel step today waits until the next UTC midnight.
That does not stop the funnel and does not skip the step. A step From or Reply-to, left blank, keeps the routing sender. Reply-to is sent on SendGrid and Mailgun. Opt-out event names are empty until saved. A match stops every active funnel for that contact and suppresses the email and phone. Example names do nothing until you add them.
Suppression and validation
Suppression is automatic at ingest. Phone numbers on the account SMS list and emails on the account email list are dropped. Unsubscribe, suppression, and complaint also block a later send. A test run skips the ordinary suppression list. Dedupe, the frequency cap, and quiet hours run only when those settings are on. Leave them unset and they do not apply.
An account-wide frequency cap is a separate switch, off until you turn it on per channel.
Phone checks use libphonenumber on FlowForge ingest, funnel SMS steps, and campaigns. That is format and possibility only, not a live carrier lookup. A paid lookup such as Twilio is a separate tool.
Email validation is two switches, both off until you set them. Connecting ZeroBounce does nothing at send time. Turn on Validate addresses before sending for FlowForge uploads, funnel email steps, and classic email campaigns. That switch checks an address that has no stored result, and only when a provider is connected. Skip invalid or not-yet-checked is a separate switch on each automation or campaign and stays off until set.
It skips a stored status that is not valid and not catch-all. A classic campaign does not copy a FlowForge skip switch. Set it on that campaign, or validate the list before the send. A test run does not call the validator and does not apply the skip.
Auto-suppress hard bounces is on for every account. A missing settings row stays on. Turn it off on the Suppression page if a permanent bounce should not be added. Soft bounces are counted per address and that address is suppressed after 3, unless the account changes the number. A later delivery resets the count. 0 turns the soft-bounce count off. Blocks and greylisting are not counted. Sending itself is unchanged.
The address is added to the email suppression list, and later sends honour that list.
Blocked email domains
Block domain on the dashboard adds that domain to Account Blocked Domains, and FlowForge skips those email recipients at ingest and at send. The list is the account field users.blockedDomains, edited under Account, Preferences, Blocked Email Domains. Campaigns already skip those recipients. You can remove a domain later from Account.
The dashboard card Email domains to review lists a domain from the last 30 days after 20 sent emails when none were opened, or when at least 90% bounced. A domain already on the list is not shown. Block domain asks you to confirm before it writes the domain. FlowForge email ingest counts a blocked recipient as suppressed, including a test run.
At send, the recipient is skipped with reason blocked_domain and is not handed to a provider. This is not a server flag. It follows the account list.
Tracking
Use SESender tracking links for SMS. The link should start with https, and link tracking should be left on. A link without a scheme is sent as written and is not tracked. For email, turn on the provider’s open and click tracking. SESender tracked links in email are optional. The builder canvas shows a screen node for suppression and the checks that are on. Those nodes describe the settings.
They do not add a second send path.
In an SMS body, the variable unsubscribe_url becomes a short https link on the tracking host plus a five-character token. Count those characters when you are close to a segment boundary. The dry-run preview leaves the placeholder unexpanded, so the preview is shorter than the live message. Keep spare characters. FlowForge variables use double braces, such as first_name.
SMS Edge spintax is a single pair of braces with a bar between options, and FlowForge sends that text as written.
What a successful send stores
For a list, use the FlowForge builder or MCP ingest, and dry-run first. POST /api/v1/sms/send is one message, not a list. A dry run does not send and does not require the automation to be active. A live ingest still requires the automation to be active. The same run_key returns the original run, so a retry does not double-send.
A successful Dynamic Messaging send stores the numeric message id that delivery reports and GET /api/SMSMessages/{id} use. The GUID in newId is not that id. If the send response is only the GUID, SESender looks the message up and stores the integer when that row’s newId matches. A failed lookup still keeps the GUID and does not fail the send.
Delivery reports for one Dynamic Messaging API key arrive on the single callback URL that has a webhook token. A message sent by another provider row that shares that key is still matched, and the row named in the URL is preferred when both have the same id.
FAQ
Does connecting the assistant send anything?
No. Reading is allowed with flowforge:read. A live send, activation, approval, cancellation, or enrollment needs flowforge:operate and confirm set to true. Without confirm, the tool returns a preview and does not send. ingest defaults to a dry run.
Which id should a routing chain store?
Set preferred_route_id when that route should be used. route_id is the same field. auto or blank sends no route parameter. rotation.mode weighted is how you split entries by weight. It stays unset until you set it. For email, match.domains selects by recipient domain and providerDomainBlocklists skips one provider for that domain. Domains in providerBlocklists are ignored because that map is countries only.
If every provider blocks the domain, the original chain is used and the recipient is not dropped. providers_list tells you which provider accounts exist and whether an SMS Edge route id is set. It does not reveal the route id or any credential.
How do funnels stay off?
FF_EVENTS_API and FF_FUNNELS stay off until an operator sets each one to exactly 1, and the account switch Enable events API (funnels) stays off until you turn it on. Optional step filters, skip-on-event, re-entry, a daily funnel cap, and opt-out event names stay unset until you save them. One contact has one enrollment per funnel until re-entry is saved. Prefix the event with the brand, such as acme_signup.
The brand field does not choose the funnel.
What does Block domain change?
Block domain on the dashboard adds that domain to Account Blocked Domains, and FlowForge skips those email recipients at ingest and at send. The dashboard lists a domain from the last 30 days after 20 sent emails with no opens, or at least a 90 percent bounce rate. Confirm first. Remove the domain later from Account. Ingest counts the address as suppressed, including a test run. Send skips it with reason blocked_domain.