KosmoKrator

productivity

MailerLite CLI for AI Agents

Use the MailerLite CLI from KosmoKrator to call MailerLite tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

MailerLite CLI Setup

MailerLite can be configured headlessly with `kosmokrator integrations:configure mailerlite`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure mailerlite --set api_key="$MAILERLITE_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor mailerlite --json
kosmokrator integrations:status --json

Credentials

Authentication type: API key api_key. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
api_key MAILERLITE_API_KEY Secret secret yes API Key

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call mailerlite.mailerlite_list_subscribers '{"cursor":"example_cursor","limit":1,"status":"example_status","include":"example_include"}' --json
Provider shortcut
kosmo integrations:mailerlite mailerlite_list_subscribers '{"cursor":"example_cursor","limit":1,"status":"example_status","include":"example_include"}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs mailerlite --json
kosmo integrations:docs mailerlite.mailerlite_list_subscribers --json
kosmo integrations:schema mailerlite.mailerlite_list_subscribers --json
kosmo integrations:search "MailerLite" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

mailerlite.mailerlite_list_subscribers

List subscribers from MailerLite. Supports cursor pagination, status filtering, and groups include.

Read read
Parameters
cursor, limit, status, include
Generic call
kosmo integrations:call mailerlite.mailerlite_list_subscribers '{"cursor":"example_cursor","limit":1,"status":"example_status","include":"example_include"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_subscribers '{"cursor":"example_cursor","limit":1,"status":"example_status","include":"example_include"}' --json

mailerlite.mailerlite_get_subscriber

Get details for a single MailerLite subscriber by ID or email address.

Read read
Parameters
id
Generic call
kosmo integrations:call mailerlite.mailerlite_get_subscriber '{"id":"example_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_get_subscriber '{"id":"example_id"}' --json

mailerlite.mailerlite_create_subscriber

Add a new subscriber to MailerLite. Provide an email address and optionally a name and custom fields.

Write write
Parameters
email, name, fields, groups, status
Generic call
kosmo integrations:call mailerlite.mailerlite_create_subscriber '{"email":"example_email","name":"example_name","fields":"example_fields","groups":"example_groups","status":"example_status"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_create_subscriber '{"email":"example_email","name":"example_name","fields":"example_fields","groups":"example_groups","status":"example_status"}' --json

mailerlite.mailerlite_update_subscriber

Update an existing subscriber in MailerLite. Provide the subscriber ID and fields to update.

Write write
Parameters
id, name, fields, groups, status, subscribed_at
Generic call
kosmo integrations:call mailerlite.mailerlite_update_subscriber '{"id":"example_id","name":"example_name","fields":"example_fields","groups":"example_groups","status":"example_status","subscribed_at":"example_subscribed_at"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_update_subscriber '{"id":"example_id","name":"example_name","fields":"example_fields","groups":"example_groups","status":"example_status","subscribed_at":"example_subscribed_at"}' --json

mailerlite.mailerlite_delete_subscriber

Delete a subscriber from MailerLite by their ID. This action is permanent.

Write write
Parameters
id
Generic call
kosmo integrations:call mailerlite.mailerlite_delete_subscriber '{"id":"example_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_delete_subscriber '{"id":"example_id"}' --json

mailerlite.mailerlite_list_subscriber_activity

List activity log entries for a subscriber with optional log-name, cursor, and limit filters.

Read read
Parameters
id, filter[log_name], limit, page
Generic call
kosmo integrations:call mailerlite.mailerlite_list_subscriber_activity '{"id":"example_id","filter[log_name]":"example_filter[log_name]","limit":1,"page":1}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_subscriber_activity '{"id":"example_id","filter[log_name]":"example_filter[log_name]","limit":1,"page":1}' --json

mailerlite.mailerlite_list_groups

List subscriber groups (segments) from MailerLite. Supports pagination.

Read read
Parameters
page, limit
Generic call
kosmo integrations:call mailerlite.mailerlite_list_groups '{"page":1,"limit":1}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_groups '{"page":1,"limit":1}' --json

mailerlite.mailerlite_create_group

Create a subscriber group by name.

Write write
Parameters
name
Generic call
kosmo integrations:call mailerlite.mailerlite_create_group '{"name":"example_name"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_create_group '{"name":"example_name"}' --json

mailerlite.mailerlite_update_group

Update a subscriber group name.

Write write
Parameters
group_id, name
Generic call
kosmo integrations:call mailerlite.mailerlite_update_group '{"group_id":"example_group_id","name":"example_name"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_update_group '{"group_id":"example_group_id","name":"example_name"}' --json

mailerlite.mailerlite_delete_group

Delete a subscriber group by ID.

Write write
Parameters
group_id
Generic call
kosmo integrations:call mailerlite.mailerlite_delete_group '{"group_id":"example_group_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_delete_group '{"group_id":"example_group_id"}' --json

mailerlite.mailerlite_list_group_subscribers

List subscribers belonging to a group with cursor pagination and status filtering.

Read read
Parameters
group_id, filter[status], limit, cursor
Generic call
kosmo integrations:call mailerlite.mailerlite_list_group_subscribers '{"group_id":"example_group_id","filter[status]":"example_filter[status]","limit":1,"cursor":"example_cursor"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_group_subscribers '{"group_id":"example_group_id","filter[status]":"example_filter[status]","limit":1,"cursor":"example_cursor"}' --json

mailerlite.mailerlite_add_subscriber_to_group

Add a subscriber to a MailerLite group by providing the group ID and subscriber email.

Write write
Parameters
group_id, email, name
Generic call
kosmo integrations:call mailerlite.mailerlite_add_subscriber_to_group '{"group_id":"example_group_id","email":"example_email","name":"example_name"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_add_subscriber_to_group '{"group_id":"example_group_id","email":"example_email","name":"example_name"}' --json

mailerlite.mailerlite_assign_subscriber_to_group

Assign an existing subscriber to a group by subscriber ID and group ID.

Write write
Parameters
subscriber_id, group_id
Generic call
kosmo integrations:call mailerlite.mailerlite_assign_subscriber_to_group '{"subscriber_id":"example_subscriber_id","group_id":"example_group_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_assign_subscriber_to_group '{"subscriber_id":"example_subscriber_id","group_id":"example_group_id"}' --json

mailerlite.mailerlite_unassign_subscriber_from_group

Remove an existing subscriber from a group by subscriber ID and group ID.

Write write
Parameters
subscriber_id, group_id
Generic call
kosmo integrations:call mailerlite.mailerlite_unassign_subscriber_from_group '{"subscriber_id":"example_subscriber_id","group_id":"example_group_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_unassign_subscriber_from_group '{"subscriber_id":"example_subscriber_id","group_id":"example_group_id"}' --json

mailerlite.mailerlite_import_subscribers_to_group

Bulk import subscriber payloads into a group and return the import progress URL.

Write write
Parameters
group_id, subscribers
Generic call
kosmo integrations:call mailerlite.mailerlite_import_subscribers_to_group '{"group_id":"example_group_id","subscribers":"example_subscribers"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_import_subscribers_to_group '{"group_id":"example_group_id","subscribers":"example_subscribers"}' --json

mailerlite.mailerlite_list_segments

List audience segments with pagination.

Read read
Parameters
limit, page
Generic call
kosmo integrations:call mailerlite.mailerlite_list_segments '{"limit":1,"page":1}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_segments '{"limit":1,"page":1}' --json

mailerlite.mailerlite_list_segment_subscribers

List subscribers in a segment with cursor pagination and status filtering.

Read read
Parameters
segment_id, filter[status], limit, cursor
Generic call
kosmo integrations:call mailerlite.mailerlite_list_segment_subscribers '{"segment_id":"example_segment_id","filter[status]":"example_filter[status]","limit":1,"cursor":"example_cursor"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_segment_subscribers '{"segment_id":"example_segment_id","filter[status]":"example_filter[status]","limit":1,"cursor":"example_cursor"}' --json

mailerlite.mailerlite_update_segment

Update a segment name.

Write write
Parameters
segment_id, name
Generic call
kosmo integrations:call mailerlite.mailerlite_update_segment '{"segment_id":"example_segment_id","name":"example_name"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_update_segment '{"segment_id":"example_segment_id","name":"example_name"}' --json

mailerlite.mailerlite_delete_segment

Delete a segment by ID.

Write write
Parameters
segment_id
Generic call
kosmo integrations:call mailerlite.mailerlite_delete_segment '{"segment_id":"example_segment_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_delete_segment '{"segment_id":"example_segment_id"}' --json

mailerlite.mailerlite_list_fields

List custom subscriber fields.

Read read
Parameters
limit, page
Generic call
kosmo integrations:call mailerlite.mailerlite_list_fields '{"limit":1,"page":1}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_fields '{"limit":1,"page":1}' --json

mailerlite.mailerlite_create_field

Create a custom subscriber field. Type must be text, number, or date.

Write write
Parameters
name, type
Generic call
kosmo integrations:call mailerlite.mailerlite_create_field '{"name":"example_name","type":"example_type"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_create_field '{"name":"example_name","type":"example_type"}' --json

mailerlite.mailerlite_update_field

Update a custom field name.

Write write
Parameters
field_id, name
Generic call
kosmo integrations:call mailerlite.mailerlite_update_field '{"field_id":"example_field_id","name":"example_name"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_update_field '{"field_id":"example_field_id","name":"example_name"}' --json

mailerlite.mailerlite_delete_field

Delete a custom subscriber field by ID.

Write write
Parameters
field_id
Generic call
kosmo integrations:call mailerlite.mailerlite_delete_field '{"field_id":"example_field_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_delete_field '{"field_id":"example_field_id"}' --json

mailerlite.mailerlite_list_automations

List automations with optional enabled, name, and group filters.

Read read
Parameters
filter[enabled], filter[name], filter[group], page, limit
Generic call
kosmo integrations:call mailerlite.mailerlite_list_automations '{"filter[enabled]":true,"filter[name]":"example_filter[name]","filter[group]":"example_filter[group]","page":1,"limit":1}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_automations '{"filter[enabled]":true,"filter[name]":"example_filter[name]","filter[group]":"example_filter[group]","page":1,"limit":1}' --json

mailerlite.mailerlite_get_automation

Get an automation by ID, including its configured steps and stats.

Read read
Parameters
automation_id
Generic call
kosmo integrations:call mailerlite.mailerlite_get_automation '{"automation_id":"example_automation_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_get_automation '{"automation_id":"example_automation_id"}' --json

mailerlite.mailerlite_list_automation_activity

List subscriber activity for an automation.

Read read
Parameters
automation_id, page, limit
Generic call
kosmo integrations:call mailerlite.mailerlite_list_automation_activity '{"automation_id":"example_automation_id","page":1,"limit":1}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_automation_activity '{"automation_id":"example_automation_id","page":1,"limit":1}' --json

mailerlite.mailerlite_create_automation

Create a draft automation. Use payload for advanced automation fields or name for a simple draft.

Write write
Parameters
name, payload
Generic call
kosmo integrations:call mailerlite.mailerlite_create_automation '{"name":"example_name","payload":"example_payload"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_create_automation '{"name":"example_name","payload":"example_payload"}' --json

mailerlite.mailerlite_delete_automation

Delete an automation by ID.

Write write
Parameters
automation_id
Generic call
kosmo integrations:call mailerlite.mailerlite_delete_automation '{"automation_id":"example_automation_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_delete_automation '{"automation_id":"example_automation_id"}' --json

mailerlite.mailerlite_list_campaigns

List campaigns with optional status, type, name, sort, and pagination filters.

Read read
Parameters
filter[status], filter[type], filter[name], sort, page, limit
Generic call
kosmo integrations:call mailerlite.mailerlite_list_campaigns '{"filter[status]":"example_filter[status]","filter[type]":"example_filter[type]","filter[name]":"example_filter[name]","sort":"example_sort","page":1,"limit":1}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_campaigns '{"filter[status]":"example_filter[status]","filter[type]":"example_filter[type]","filter[name]":"example_filter[name]","sort":"example_sort","page":1,"limit":1}' --json

mailerlite.mailerlite_get_campaign

Get a campaign by ID.

Read read
Parameters
campaign_id
Generic call
kosmo integrations:call mailerlite.mailerlite_get_campaign '{"campaign_id":"example_campaign_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_get_campaign '{"campaign_id":"example_campaign_id"}' --json

mailerlite.mailerlite_create_campaign

Create a campaign. Use payload for the full MailerLite campaign body including emails, groups, segments, and settings.

Write write
Parameters
payload
Generic call
kosmo integrations:call mailerlite.mailerlite_create_campaign '{"payload":"example_payload"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_create_campaign '{"payload":"example_payload"}' --json

mailerlite.mailerlite_update_campaign

Update a campaign. Use payload for the full MailerLite update body.

Write write
Parameters
campaign_id, payload
Generic call
kosmo integrations:call mailerlite.mailerlite_update_campaign '{"campaign_id":"example_campaign_id","payload":"example_payload"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_update_campaign '{"campaign_id":"example_campaign_id","payload":"example_payload"}' --json

mailerlite.mailerlite_schedule_campaign

Schedule a campaign. Use payload for MailerLite scheduling fields.

Write write
Parameters
campaign_id, payload
Generic call
kosmo integrations:call mailerlite.mailerlite_schedule_campaign '{"campaign_id":"example_campaign_id","payload":"example_payload"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_schedule_campaign '{"campaign_id":"example_campaign_id","payload":"example_payload"}' --json

mailerlite.mailerlite_cancel_campaign

Cancel a campaign send when the campaign is still in a cancelable state.

Write write
Parameters
campaign_id
Generic call
kosmo integrations:call mailerlite.mailerlite_cancel_campaign '{"campaign_id":"example_campaign_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_cancel_campaign '{"campaign_id":"example_campaign_id"}' --json

mailerlite.mailerlite_delete_campaign

Delete a campaign by ID.

Write write
Parameters
campaign_id
Generic call
kosmo integrations:call mailerlite.mailerlite_delete_campaign '{"campaign_id":"example_campaign_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_delete_campaign '{"campaign_id":"example_campaign_id"}' --json

mailerlite.mailerlite_list_campaign_subscriber_activity

List subscriber activity for a sent campaign, including opens, clicks, bounces, and unsubscribes.

Read read
Parameters
campaign_id, page, limit
Generic call
kosmo integrations:call mailerlite.mailerlite_list_campaign_subscriber_activity '{"campaign_id":"example_campaign_id","page":1,"limit":1}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_campaign_subscriber_activity '{"campaign_id":"example_campaign_id","page":1,"limit":1}' --json

mailerlite.mailerlite_list_forms

List forms by type: popup, embedded, or promotion.

Read read
Parameters
type, filter[name], sort, page, limit
Generic call
kosmo integrations:call mailerlite.mailerlite_list_forms '{"type":"example_type","filter[name]":"example_filter[name]","sort":"example_sort","page":1,"limit":1}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_forms '{"type":"example_type","filter[name]":"example_filter[name]","sort":"example_sort","page":1,"limit":1}' --json

mailerlite.mailerlite_get_form

Get a form by ID.

Read read
Parameters
form_id
Generic call
kosmo integrations:call mailerlite.mailerlite_get_form '{"form_id":"example_form_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_get_form '{"form_id":"example_form_id"}' --json

mailerlite.mailerlite_update_form

Update a form. Use payload for the full MailerLite form update body.

Write write
Parameters
form_id, payload
Generic call
kosmo integrations:call mailerlite.mailerlite_update_form '{"form_id":"example_form_id","payload":"example_payload"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_update_form '{"form_id":"example_form_id","payload":"example_payload"}' --json

mailerlite.mailerlite_delete_form

Delete a form by ID.

Write write
Parameters
form_id
Generic call
kosmo integrations:call mailerlite.mailerlite_delete_form '{"form_id":"example_form_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_delete_form '{"form_id":"example_form_id"}' --json

mailerlite.mailerlite_list_form_subscribers

List subscribers who signed up to a specific form.

Read read
Parameters
form_id, page, limit
Generic call
kosmo integrations:call mailerlite.mailerlite_list_form_subscribers '{"form_id":"example_form_id","page":1,"limit":1}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_form_subscribers '{"form_id":"example_form_id","page":1,"limit":1}' --json

mailerlite.mailerlite_list_webhooks

List configured webhooks.

Read read
Parameters
page, limit
Generic call
kosmo integrations:call mailerlite.mailerlite_list_webhooks '{"page":1,"limit":1}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_list_webhooks '{"page":1,"limit":1}' --json

mailerlite.mailerlite_get_webhook

Get a webhook by ID.

Read read
Parameters
webhook_id
Generic call
kosmo integrations:call mailerlite.mailerlite_get_webhook '{"webhook_id":"example_webhook_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_get_webhook '{"webhook_id":"example_webhook_id"}' --json

mailerlite.mailerlite_create_webhook

Create a webhook subscription for subscriber or campaign events.

Write write
Parameters
name, events, url, enabled, batchable, payload
Generic call
kosmo integrations:call mailerlite.mailerlite_create_webhook '{"name":"example_name","events":"example_events","url":"example_url","enabled":true,"batchable":true,"payload":"example_payload"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_create_webhook '{"name":"example_name","events":"example_events","url":"example_url","enabled":true,"batchable":true,"payload":"example_payload"}' --json

mailerlite.mailerlite_update_webhook

Update webhook name, events, callback URL, enabled state, or batchable flag.

Write write
Parameters
webhook_id, name, events, url, enabled, batchable, payload
Generic call
kosmo integrations:call mailerlite.mailerlite_update_webhook '{"webhook_id":"example_webhook_id","name":"example_name","events":"example_events","url":"example_url","enabled":true,"batchable":true,"payload":"example_payload"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_update_webhook '{"webhook_id":"example_webhook_id","name":"example_name","events":"example_events","url":"example_url","enabled":true,"batchable":true,"payload":"example_payload"}' --json

mailerlite.mailerlite_delete_webhook

Delete a webhook by ID.

Write write
Parameters
webhook_id
Generic call
kosmo integrations:call mailerlite.mailerlite_delete_webhook '{"webhook_id":"example_webhook_id"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_delete_webhook '{"webhook_id":"example_webhook_id"}' --json

mailerlite.mailerlite_batch

Execute up to 50 MailerLite API requests in one batch. Paths must be relative API paths such as api/fields.

Write write
Parameters
requests
Generic call
kosmo integrations:call mailerlite.mailerlite_batch '{"requests":"example_requests"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_batch '{"requests":"example_requests"}' --json

mailerlite.mailerlite_get_current_user

Verify MailerLite credentials with a lightweight subscriber summary request.

Read read
Parameters
none
Generic call
kosmo integrations:call mailerlite.mailerlite_get_current_user '{}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_get_current_user '{}' --json

mailerlite.mailerlite_api_get

Call a relative MailerLite API path with GET for endpoints not yet wrapped by a dedicated tool.

Read read
Parameters
path, params
Generic call
kosmo integrations:call mailerlite.mailerlite_api_get '{"path":"example_path","params":"example_params"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_api_get '{"path":"example_path","params":"example_params"}' --json

mailerlite.mailerlite_api_post

Call a relative MailerLite API path with POST for endpoints not yet wrapped by a dedicated tool.

Write write
Parameters
path, payload
Generic call
kosmo integrations:call mailerlite.mailerlite_api_post '{"path":"example_path","payload":"example_payload"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_api_post '{"path":"example_path","payload":"example_payload"}' --json

mailerlite.mailerlite_api_put

Call a relative MailerLite API path with PUT for endpoints not yet wrapped by a dedicated tool.

Write write
Parameters
path, payload
Generic call
kosmo integrations:call mailerlite.mailerlite_api_put '{"path":"example_path","payload":"example_payload"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_api_put '{"path":"example_path","payload":"example_payload"}' --json

mailerlite.mailerlite_api_patch

Call a relative MailerLite API path with PATCH for endpoints not yet wrapped by a dedicated tool.

Write write
Parameters
path, payload
Generic call
kosmo integrations:call mailerlite.mailerlite_api_patch '{"path":"example_path","payload":"example_payload"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_api_patch '{"path":"example_path","payload":"example_payload"}' --json

mailerlite.mailerlite_api_delete

Call a relative MailerLite API path with DELETE for endpoints not yet wrapped by a dedicated tool.

Write write
Parameters
path, payload
Generic call
kosmo integrations:call mailerlite.mailerlite_api_delete '{"path":"example_path","payload":"example_payload"}' --json
Shortcut
kosmo integrations:mailerlite mailerlite_api_delete '{"path":"example_path","payload":"example_payload"}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

mailerlite.mailerlite_list_subscribers 4 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_subscribers --json
ParameterTypeRequiredDescription
cursor string no Cursor from a previous response.
limit integer no Number of subscribers to return (default: 25).
status string no Filter by status: active, unsubscribed, unconfirmed, bounced, junk.
include string no Additional resource include. Currently groups is supported.
mailerlite.mailerlite_get_subscriber 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_get_subscriber --json
ParameterTypeRequiredDescription
id string yes The subscriber ID or email address.
mailerlite.mailerlite_create_subscriber 5 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_create_subscriber --json
ParameterTypeRequiredDescription
email string yes Subscriber email address.
name string no Subscriber name.
fields object no Custom fields as key-value pairs.
groups array no Group IDs to add the subscriber to.
status string no Subscriber status.
mailerlite.mailerlite_update_subscriber 6 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_update_subscriber --json
ParameterTypeRequiredDescription
id string yes The subscriber ID or email address.
name string no Updated subscriber name.
fields object no Updated custom fields as key-value pairs.
groups array no Complete group ID list for the subscriber. Omitted groups are removed by the API.
status string no Subscriber status.
subscribed_at string no Subscription date as yyyy-MM-dd HH:mm:ss.
mailerlite.mailerlite_delete_subscriber 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_delete_subscriber --json
ParameterTypeRequiredDescription
id string yes The subscriber ID or email address to delete.
mailerlite.mailerlite_list_subscriber_activity 4 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_subscriber_activity --json
ParameterTypeRequiredDescription
id string yes Subscriber ID.
filter[log_name] string no Activity type filter such as email_open, link_click, unsubscribed, or campaign_send.
limit integer no Maximum rows to return.
page integer no Page number.
mailerlite.mailerlite_list_groups 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_groups --json
ParameterTypeRequiredDescription
page integer no Page number (default: 1).
limit integer no Number of groups per page (default: 25).
mailerlite.mailerlite_create_group 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_create_group --json
ParameterTypeRequiredDescription
name string yes Group name.
mailerlite.mailerlite_update_group 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_update_group --json
ParameterTypeRequiredDescription
group_id string yes Group ID.
name string yes Updated group name.
mailerlite.mailerlite_delete_group 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_delete_group --json
ParameterTypeRequiredDescription
group_id string yes Group ID.
mailerlite.mailerlite_list_group_subscribers 4 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_group_subscribers --json
ParameterTypeRequiredDescription
group_id string yes Group ID.
filter[status] string no Subscriber status filter.
limit integer no Maximum rows to return.
cursor string no Cursor from a prior response.
mailerlite.mailerlite_add_subscriber_to_group 3 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_add_subscriber_to_group --json
ParameterTypeRequiredDescription
group_id string yes The group ID to add the subscriber to.
email string yes Subscriber email address.
name string no Subscriber name stored in the name field when creating or updating the subscriber.
mailerlite.mailerlite_assign_subscriber_to_group 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_assign_subscriber_to_group --json
ParameterTypeRequiredDescription
subscriber_id string yes Existing subscriber ID.
group_id string yes Existing group ID.
mailerlite.mailerlite_unassign_subscriber_from_group 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_unassign_subscriber_from_group --json
ParameterTypeRequiredDescription
subscriber_id string yes Existing subscriber ID.
group_id string yes Existing group ID.
mailerlite.mailerlite_import_subscribers_to_group 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_import_subscribers_to_group --json
ParameterTypeRequiredDescription
group_id string yes Group ID.
subscribers array yes Array of subscriber objects to import.
mailerlite.mailerlite_list_segments 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_segments --json
ParameterTypeRequiredDescription
limit integer no Maximum rows to return.
page integer no Page number.
mailerlite.mailerlite_list_segment_subscribers 4 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_segment_subscribers --json
ParameterTypeRequiredDescription
segment_id string yes Segment ID.
filter[status] string no Subscriber status filter.
limit integer no Maximum rows to return.
cursor string no Cursor from a prior response.
mailerlite.mailerlite_update_segment 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_update_segment --json
ParameterTypeRequiredDescription
segment_id string yes Segment ID.
name string yes Updated segment name.
mailerlite.mailerlite_delete_segment 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_delete_segment --json
ParameterTypeRequiredDescription
segment_id string yes Segment ID.
mailerlite.mailerlite_list_fields 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_fields --json
ParameterTypeRequiredDescription
limit integer no Maximum rows to return.
page integer no Page number.
mailerlite.mailerlite_create_field 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_create_field --json
ParameterTypeRequiredDescription
name string yes Field name.
type string yes Field type.
mailerlite.mailerlite_update_field 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_update_field --json
ParameterTypeRequiredDescription
field_id string yes Field ID.
name string yes Updated field name.
mailerlite.mailerlite_delete_field 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_delete_field --json
ParameterTypeRequiredDescription
field_id string yes Field ID.
mailerlite.mailerlite_list_automations 5 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_automations --json
ParameterTypeRequiredDescription
filter[enabled] boolean no Filter active or inactive automations.
filter[name] string no Partial name filter.
filter[group] string no Group ID filter.
page integer no Page number.
limit integer no Maximum rows to return.
mailerlite.mailerlite_get_automation 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_get_automation --json
ParameterTypeRequiredDescription
automation_id string yes Automation ID.
mailerlite.mailerlite_list_automation_activity 3 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_automation_activity --json
ParameterTypeRequiredDescription
automation_id string yes Automation ID.
page integer no Page number.
limit integer no Maximum rows to return.
mailerlite.mailerlite_create_automation 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_create_automation --json
ParameterTypeRequiredDescription
name string no Automation name.
payload object no Full automation payload.
mailerlite.mailerlite_delete_automation 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_delete_automation --json
ParameterTypeRequiredDescription
automation_id string yes Automation ID.
mailerlite.mailerlite_list_campaigns 6 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_campaigns --json
ParameterTypeRequiredDescription
filter[status] string no Campaign status filter.
filter[type] string no Campaign type filter.
filter[name] string no Partial name filter.
sort string no Sort field, optionally prefixed with minus for descending order.
page integer no Page number.
limit integer no Maximum rows to return.
mailerlite.mailerlite_get_campaign 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_get_campaign --json
ParameterTypeRequiredDescription
campaign_id string yes Campaign ID.
mailerlite.mailerlite_create_campaign 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_create_campaign --json
ParameterTypeRequiredDescription
payload object yes Campaign creation payload.
mailerlite.mailerlite_update_campaign 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_update_campaign --json
ParameterTypeRequiredDescription
campaign_id string yes Campaign ID.
payload object yes Campaign update payload.
mailerlite.mailerlite_schedule_campaign 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_schedule_campaign --json
ParameterTypeRequiredDescription
campaign_id string yes Campaign ID.
payload object no Schedule payload, such as delivery time or immediate-send settings.
mailerlite.mailerlite_cancel_campaign 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_cancel_campaign --json
ParameterTypeRequiredDescription
campaign_id string yes Campaign ID.
mailerlite.mailerlite_delete_campaign 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_delete_campaign --json
ParameterTypeRequiredDescription
campaign_id string yes Campaign ID.
mailerlite.mailerlite_list_campaign_subscriber_activity 3 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_campaign_subscriber_activity --json
ParameterTypeRequiredDescription
campaign_id string yes Campaign ID.
page integer no Page number.
limit integer no Maximum rows to return.
mailerlite.mailerlite_list_forms 5 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_forms --json
ParameterTypeRequiredDescription
type string yes Form type.
filter[name] string no Partial name filter.
sort string no Sort field, optionally prefixed with minus for descending order.
page integer no Page number.
limit integer no Maximum rows to return.
mailerlite.mailerlite_get_form 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_get_form --json
ParameterTypeRequiredDescription
form_id string yes Form ID.
mailerlite.mailerlite_update_form 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_update_form --json
ParameterTypeRequiredDescription
form_id string yes Form ID.
payload object yes Form update payload.
mailerlite.mailerlite_delete_form 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_delete_form --json
ParameterTypeRequiredDescription
form_id string yes Form ID.
mailerlite.mailerlite_list_form_subscribers 3 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_form_subscribers --json
ParameterTypeRequiredDescription
form_id string yes Form ID.
page integer no Page number.
limit integer no Maximum rows to return.
mailerlite.mailerlite_list_webhooks 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_list_webhooks --json
ParameterTypeRequiredDescription
page integer no Page number.
limit integer no Maximum rows to return.
mailerlite.mailerlite_get_webhook 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_get_webhook --json
ParameterTypeRequiredDescription
webhook_id string yes Webhook ID.
mailerlite.mailerlite_create_webhook 6 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_create_webhook --json
ParameterTypeRequiredDescription
name string no Webhook name.
events array yes Webhook event names.
url string yes Webhook callback URL.
enabled boolean no Whether the webhook is enabled.
batchable boolean no Required for campaign.open, campaign.click, and subscriber.deleted events.
payload object no Full webhook payload.
mailerlite.mailerlite_update_webhook 7 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_update_webhook --json
ParameterTypeRequiredDescription
webhook_id string yes Webhook ID.
name string no Webhook name.
events array no Webhook event names.
url string no Webhook callback URL.
enabled boolean no Whether the webhook is enabled.
batchable boolean no Batchable flag.
payload object no Full webhook update payload.
mailerlite.mailerlite_delete_webhook 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_delete_webhook --json
ParameterTypeRequiredDescription
webhook_id string yes Webhook ID.
mailerlite.mailerlite_batch 1 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_batch --json
ParameterTypeRequiredDescription
requests array yes Array of objects with method, path, and optional body.
mailerlite.mailerlite_get_current_user 0 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_get_current_user --json
ParameterTypeRequiredDescription
No parameters.
mailerlite.mailerlite_api_get 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_api_get --json
ParameterTypeRequiredDescription
path string yes Relative API path, for example /subscribers. Absolute URLs are rejected.
params object no Query parameters.
mailerlite.mailerlite_api_post 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_api_post --json
ParameterTypeRequiredDescription
path string yes Relative API path. Absolute URLs are rejected.
payload object no JSON body.
mailerlite.mailerlite_api_put 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_api_put --json
ParameterTypeRequiredDescription
path string yes Relative API path. Absolute URLs are rejected.
payload object no JSON body.
mailerlite.mailerlite_api_patch 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_api_patch --json
ParameterTypeRequiredDescription
path string yes Relative API path. Absolute URLs are rejected.
payload object no JSON body.
mailerlite.mailerlite_api_delete 2 parameters
Schema command
kosmo integrations:schema mailerlite.mailerlite_api_delete --json
ParameterTypeRequiredDescription
path string yes Relative API path. Absolute URLs are rejected.
payload object no JSON body.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.