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.
campaigns:read lists and reads campaigns, including cost, delivered, and the contact groups on a campaign. analytics:read is also accepted for those two tools. contacts:read is required for lists_list. 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. Each recipient includes scheduled_send_at, the enforced not-before timestamp. The worker will not send that person before it.
It is that recipient's send_at, or the next open of their quiet hours or local window when the action is queue. It is not a spacing estimate. A dry run's projected_send_at is the spacing estimate, placed in earliest-eligible order. send_at and local-window queueing are per recipient and do not head-of-line block: a future send_at or a closed window delays only that person.
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. campaigns_list and campaigns_get read campaigns for a Nike or Adidas style account. They need campaigns:read or analytics:read. Delivered is sent minus failed on the campaign row, which remains after message cleanup.
campaigns_get includes the contact groups captured for that send. lists_list reads contact groups and needs contacts:read. None of these send or change a campaign.
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. send_at and a local send window are fields on that ingest, not a separate flag. They are evaluated per recipient without head-of-line blocking. A future send_at or a closed local window queues only that recipient.
The stored scheduled_send_at is the enforced not-before. Dry-run projected_send_at is the spacing estimate. 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 on email and SMS. A missing weight counts as 1. Explicit 0 is not chosen while any positive weight remains. A numeric string such as "25" is stored as 25.
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, including when a later worker batch starts. It is not a random draw and it is not the in-memory round-robin. Four Nike senders at weight 25 and Adidas, Puma, and Reebok at 100 each is about 25% per brand.
Failover tries the remaining entries heaviest first. 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.
A chain sender can be fixed, such as NikeVIP, or a placeholder in single braces such as {sender} or {brand}, filled from each recipient's variables at send time. Saving a routing policy and every SMS dry run return a sender_not_saved warning when a chain sender, or a resolved placeholder value on a dry run, is not saved on that provider. It is only a warning.
senders_add saves an SMS sender on a provider you own, needs flowforge:ingest and confirm set to true, and returns the existing row when the sender is already saved.
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. Risky-email coverage is bought once, from the Suppression page or the bell, for active shared-list addresses added after the paid cutoff. A batch id does not set that price. These tools do not sell or extend it.
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. To pass a click to a partner, put the double-brace click_id or message_id variable inside a FlowForge link.
SESender fills it in when the tracked link is clicked; links without it are redirected exactly as written. A postback that returns that click_id is matched to the recipient's run, message, and sender. When conversion reporting is turned on for the account, run status adds conversions with revenue per currency and per sender; otherwise conversions reads 0 with empty breakdowns (conversion reporting is still off on sesender.com).
If the account has its own private tracking domain, FlowForge links use it first and never use another account's private domain. 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 segments field leaves the placeholder and links as written. Each SMS preview row also has segments_live_estimate, which counts the tracked short link and the unsubscribe link at live length; use that near a segment boundary.
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.
Send spacing per provider account is per automation by default. Set throttle.providerScope to account (with provider spacing) when several automations share one provider account and must keep one gap between all of their sends.
To stop the same person getting both an SMS and an email, give every row an external_id and set guardrails.external_id_cap, for example dedupe_days 3, or max_messages with period_days. It is off unless set.
On sesender.com, GET /api/v1/flowforge/sender-route-suggestions compares the sender IDs used per country and suggests a better one. It never changes routing; ask the owner before moving weight.
FlowForge winner mode is on at sesender.com through the API, MCP, and the FlowForge Winner Mode panel. It needs content A/B with two variants and winnerMode with engine flowforge; it tests a share of each run, then sends the better variant to the rest after the evaluation delay.
What a successful send stores
Run-level variables on ingest are defaults for every row, and a row's own value wins. A CSV upload can pass column_mapping, such as Mobile Number to phone and Promo Code to promo, and a mapped header that is missing from the CSV is rejected. infer_country_from_phone is off by default. When it is true, a row with no country gets the phone number's region, and a row that has a country is never changed.
Run status lists provider_results per provider, sender, and route with human clicks and unique_clickers, plus by_sender, which totals each sender ID with a click_rate. Run recipients show the sender, message_id, and cost of each message. Cost is null when it is not known, never zero. include=variables adds each recipient's stored variables.
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. The price on that GET is the charged amount. SESender does not multiply it by a local segment count.
Until the price is stored, the cost is an estimate from the country rate and the sent text, and the campaign total is labeled estimated.
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 email and SMS entries by weight. A missing weight counts as 1. Explicit 0 is unused while any positive weight remains. It stays unset until you set it. The same recipient keeps that entry on the next worker batch.
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.