MailerLite
Create subscribers, manage groups, and grow your email list with MailerLite.
On this page
Connect
Auth type: API key (secret_text). Paste the API key (or token) from the provider's settings into the connect dialog. It is encrypted at rest and only decrypted on the server when an action runs.
- In the editor: Backend panel, Integrations tab, then Connect. This connects it for the project.
- For every project in a workspace: Workspace settings, Integrations.
- Owners and admins choose which integrations members may connect in the admin panel (Integrations tab), and can attach their own OAuth app there.
Call it from a workflow
Pass the action name and its input. The call resolves with { success, output, error? }; a missing connection resolves with success false and the reason. See ctx.integrations.invoke and ctx.integrations.call.
// .workflow.js (native ctx)
export async function run(ctx) {
const res = await ctx.integrations.invoke("mailer_lite", "find_subscriber", {
"searchValue": "<subscriber id or email>"
});
if (!res.success) throw new Error(res.error);
ctx.log.info("MailerLite answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "mailer-lite-find-subscriber",
name: "MailerLite: Find a Subscriber",
description: "Calls MailerLite when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("mailer_lite", {
"action": "find_subscriber",
"searchValue": "<subscriber id or email>"
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/mailer_lite/find_subscriber" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"searchValue":"<subscriber id or email>"}}'Actions
find_subscriberin catalog
Find a Subscriber. Search for subscriber by email or name.
| Input | Type | Description |
|---|---|---|
searchValuerequired | text | Subscriber ID or Email |
add_or_update_subscriber
Add or Update subscriber. Create a new subscriber or updates an existing one if the email already exists.
| Input | Type | Description |
|---|---|---|
emailrequired | text | Email of the new contact |
subscriberFieldsrequired | object (depends on other props) | Fields |
statusoptional | one of "active" | "unsubscribed" | "unconfirmed" | "bounced" | "junk" | If empty, status Active is used by default. |
subscriberGroupIdoptional | ids (picked from your account) | Group IDs |
subscribed_atoptional | date-time (ISO) | Subscribed On |
opted_in_atoptional | date-time (ISO) | Opt-in Date |
ip_addressoptional | text | Signup IP address |
optin_ipoptional | text | Opt-in IP address |
add_subscriber_to_group
Add Subscriber to a Group. Adds existing subscriber to a specific group.
| Input | Type | Description |
|---|---|---|
subscriberIdrequired | id (picked from your account) | Subscriber ID |
subscriberGroupIdrequired | id (picked from your account) | Group ID |
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
remove_subscriber_from_group
Remove Subscriber from a Group. Removes subscriber from a specific group.
| Input | Type | Description |
|---|---|---|
subscriberIdrequired | id (picked from your account) | Subscriber ID |
subscriberGroupIdrequired | id (picked from your account) | Group ID |
Details
- Id
mailer_lite- Category
- Marketing
- Tags
- email, newsletter, automation, subscribers
- Package
@activepieces/piece-mailer-lite@0.6.4- Tier
- Community