🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 27, 2026

How to Connect Gravity Forms to Self-Hosted Listmonk for Newsletter Sign-ups

GravityExtra
How to Connect Gravity Forms to Self-Hosted Listmonk for Newsletter Sign-ups

A mailing list is one of the few things on the web you truly own. Social reach comes and goes, but a list of people who asked to hear from you stays yours. Listmonk is the open-source, self-hosted way to run that list: fast, private and free of per-subscriber fees. The missing piece is usually the sign-up. Your newsletter box, your contact form and your registration all live in Gravity Forms, and getting those submissions into Listmonk by hand, or through a brittle webhook, is exactly the sort of job that quietly breaks. This guide shows how to connect Gravity Forms to a self-hosted Listmonk, step by step, so every submission creates or updates a subscriber and adds them to the right lists, using the Gravity Forms Listmonk Premium Add-on and without writing a line of code.

Why self-hosted Listmonk and your own forms

Hosted newsletter services are easy to start with and expensive to grow with. The bill climbs with every subscriber, your list lives on someone else’s servers, and the data you can keep about each person is whatever the service allows. Listmonk flips all of that. You host it, so there is no per-subscriber cost and no third party between you and your audience. You decide what attributes to store. You run the opt-in the way you want. The only thing it does not do for you is collect the sign-ups, and that is where Gravity Forms comes in: a form builder you already trust, on a site you already run.

Joining the two should be direct. A form is submitted, a subscriber appears in Listmonk, on the right list, with the right details. No export, no copy-paste, no middle service holding your subscriber data on the way through. That is what this add-on does, and it does it entirely between your WordPress site and your own Listmonk.

Create an API user in Listmonk

Listmonk exposes an HTTP API, and the add-on signs in to it with an API user and a token. In your Listmonk admin, create an API user and copy the token it gives you. That token is the credential the add-on uses, so keep it private the way you would a password. Note your base URL too, which is simply the web address where your Listmonk admin lives, such as https://listmonk.your-domain. You do not add anything to it; the add-on appends the /api path itself.

That is the whole preparation on the Listmonk side. There is no app to register with a third party, no OAuth dance and no approval to wait for, because Listmonk is yours. A base URL and an API user with a token are all the add-on needs.

Enter your connection and confirm it

Install and activate the add-on after Gravity Forms, then open Forms → Settings → Listmonk. Paste the base URL, the API user and the token, and save. The token is stored encrypted, so the plain value never sits in your database, and the field is shown blank afterwards with a note that it is kept safe. Leave it blank to keep the stored token or type a new one to replace it.

The Listmonk settings page in Gravity Forms: license key, the Listmonk base URL, the API user and the API token, and a connection status line that reads how many lists were found
The settings page: paste your base URL, API user and token, and watch the connection line confirm your lists.

Under the fields is a connection line. As soon as your credentials are saved, the add-on reads your lists once and tells you how many it found. “Connected to Listmonk” with a list count means everything works and you can build a feed. A clear message instead tells you whether the base URL is wrong or the user and token were not accepted, so you fix a typo here and not when a visitor cannot sign up. You can read the full mechanism and every setting in the Gravity Forms Listmonk setup guide.

Build a feed that routes submissions to lists

A feed ties one form to Listmonk, and a form can have several. Open a form, go to its Listmonk settings, and add a feed. Give it a name, then tick the lists this feed should add the subscriber to; the add-on reads them straight from your Listmonk, so you pick from real lists rather than remembering ids. If the lists cannot be read, a text box lets you paste the ids instead.

The Listmonk feed list for a Gravity Forms form showing two feeds, Newsletter subscribers and Customers, each with the lists it adds the subscriber to
Several feeds on one form: each adds the subscriber to its own lists, chosen by conditional logic.

Because each feed carries its own conditional logic, one form can send different people to different lists. A feed that runs when someone picks “newsletter” adds your newsletter list; another that runs for “product updates” adds a different list; a submission that matches neither adds nobody. This is how a single contact or sign-up form can quietly keep several lists tidy at once.

Map the email, the name and attributes

In the subscriber section you map the email, which is required because it is how Listmonk matches an existing person, and the name. Leave the name empty and the add-on uses the part before the @ so a subscriber always has one. Below that, the attributes map stores extra data in the subscriber’s attribs JSON: give each row a key such as city or plan and the form field that fills it. A value that looks like a number is sent as a number and everything else as text, so counts stay counts and a postcode with a leading zero stays text.

Decide the double opt-in per feed

Listmonk lists can run a single or a double opt-in, where a new subscriber confirms by email before they count as confirmed. The feed has a toggle that decides how the subscription is recorded. Leave it off and the subscription is added as unconfirmed, so each list’s own opt-in takes over and a double opt-in list sends its confirmation mail, which is the right, consent-friendly default. Turn it on and the subscription is marked confirmed at once, skipping that email, which suits a form where the person has clearly asked to join. The choice is yours and it is made per feed, so a public newsletter box and an internal staff form can behave differently on the same site.

What happens when the form is submitted

When a visitor sends the form and a feed’s condition is met, the add-on creates the subscriber in Listmonk with the email, name and attributes. If that email already exists, it finds the existing subscriber and updates it instead, so you never collect duplicates and the subscriber’s other lists are left exactly as they were. It then adds the subscriber to the feed’s lists, confirmed or unconfirmed as the toggle says. All of this runs in the background after the entry is saved, so the visitor never waits on Listmonk and a slow or failed call never stops them submitting.

Every entry keeps a short Listmonk note so you can see the result. A success note says the subscriber was saved and how many lists were added, with the email masked; a failure note records the reason, again masked, and the entry is still saved so no submission is ever lost. That upsert-by-email behaviour is the heart of the add-on: it keeps your list clean without you ever thinking about duplicates.

Only your Listmonk is contacted

A bridge to your mailing list should not quietly route your subscriber data through anyone else. This one does not. The only server it contacts is your own Listmonk, at the base URL you set, plus gravityextra.com for the license check. Your API token is encrypted at rest, never shown again after it is saved and never written to an entry or a log. Your subscribers go from your form to your Listmonk and nowhere else, which is the whole reason to self-host in the first place.

Frequently asked questions

Do I need Listmonk hosted somewhere already?

Yes. Listmonk is self-hosted, so you run it yourself and give the add-on its base URL and an API user with a token. Nothing goes through GravityExtra.

Will the same email create duplicate subscribers?

No. The subscriber is matched by email. An address that already exists is updated instead of duplicated, and its other lists are kept.

Can one form add people to different lists?

Yes. Add several feeds, each with its own lists and conditional logic, and each submission is routed by the rules you set.

Will it respect my double opt-in?

Yes. Leave the feed’s toggle off and new subscriptions are unconfirmed, so your list’s opt-in sends its confirmation. Turn it on only when you want to skip that step.

Is my API token safe?

Yes. It is stored encrypted, shown blank after saving, and used only to sign in to your own Listmonk. It is never written to an entry or a log.

Which Gravity Forms and PHP versions are supported?

Gravity Forms 2.9 and newer, on PHP 7.4 and newer.

Get started

Owning your mailing list only pays off when sign-ups reach it without friction. The Gravity Forms Listmonk Premium Add-on connects your forms to your own self-hosted Listmonk, creating or updating a subscriber on every submission, mapping the name and attributes, and adding people to the right lists with the opt-in you choose, all with your token encrypted and nothing sent through a middle service. See the features, the price and the full setup on the add-on page.

See the Listmonk add-on

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr