email
and name
to match MailerLite's expected JSON keys.fetch()
to submit the form data, including the API key in the Authorization header.You can connect a Webflow form directly to MailerLite using MailerLite’s API and Webflow’s Form Action URL feature, bypassing embedded forms and third-party tools like Integromat or Make.
/groups/123456789…
).email
name
https://connect.mailerlite.com/api/subscribers
POST
fetch()
to send a POST request to MailerLite with the form data.Authorization
header using the Bearer
scheme.email
, name
(optional), and groups
.Example outline (must be added with correct email field reference and security measures):
form.addEventListener('submit', …)
function.fetch('https://connect.mailerlite.com/api/subscribers', { method: 'POST', headers: { Authorization: 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ email: userEmail, name: userName, groups: [GroupID] }) })
.Important: Do not expose your API key on the client side in production. For secure handling, consider using a lightweight backend server or a serverless function instead.
To connect a Webflow form with MailerLite without embedded forms or Make/Integromat:
fetch()
.This allows native-feeling MailerLite subscriptions using Webflow forms.