data
Moosend CLI for AI Agents
Use the Moosend CLI from KosmoKrator to call Moosend tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Moosend CLI Setup
Moosend can be configured headlessly with `kosmokrator integrations:configure moosend`.
# 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 moosend --set api_key="$MOOSEND_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor moosend --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.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
api_key | MOOSEND_API_KEY | Secret secret | yes | API Key |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call moosend.moosend_list_mailing_lists '{"limit":1,"offset":1}' --json kosmo integrations:moosend moosend_list_mailing_lists '{"limit":1,"offset":1}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs moosend --json
kosmo integrations:docs moosend.moosend_list_mailing_lists --json
kosmo integrations:schema moosend.moosend_list_mailing_lists --json
kosmo integrations:search "Moosend" --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.
moosend.moosend_list_mailing_lists
List all mailing lists in your Moosend account. Returns list IDs, names, and subscriber counts.
read - Parameters
- limit, offset
kosmo integrations:call moosend.moosend_list_mailing_lists '{"limit":1,"offset":1}' --json kosmo integrations:moosend moosend_list_mailing_lists '{"limit":1,"offset":1}' --json moosend.moosend_get_mailing_list
Get detailed information about a specific mailing list in Moosend, including subscriber counts and settings.
read - Parameters
- id
kosmo integrations:call moosend.moosend_get_mailing_list '{"id":"example_id"}' --json kosmo integrations:moosend moosend_get_mailing_list '{"id":"example_id"}' --json moosend.moosend_create_mailing_list
Create a new mailing list in Moosend. Returns the newly created list with its ID.
write - Parameters
- name
kosmo integrations:call moosend.moosend_create_mailing_list '{"name":"example_name"}' --json kosmo integrations:moosend moosend_create_mailing_list '{"name":"example_name"}' --json moosend.moosend_list_subscribers
List subscribers for a specific mailing list in Moosend. Supports filtering by status and pagination.
read - Parameters
- list_id, limit, page, status
kosmo integrations:call moosend.moosend_list_subscribers '{"list_id":"example_list_id","limit":1,"page":1,"status":"example_status"}' --json kosmo integrations:moosend moosend_list_subscribers '{"list_id":"example_list_id","limit":1,"page":1,"status":"example_status"}' --json moosend.moosend_add_subscriber
Add a new subscriber to a Moosend mailing list. Requires an email address; name is optional.
write - Parameters
- list_id, email, name
kosmo integrations:call moosend.moosend_add_subscriber '{"list_id":"example_list_id","email":"example_email","name":"example_name"}' --json kosmo integrations:moosend moosend_add_subscriber '{"list_id":"example_list_id","email":"example_email","name":"example_name"}' --json moosend.moosend_list_campaigns
List all email campaigns in your Moosend account. Supports filtering by status and pagination.
read - Parameters
- limit, page, status
kosmo integrations:call moosend.moosend_list_campaigns '{"limit":1,"page":1,"status":"example_status"}' --json kosmo integrations:moosend moosend_list_campaigns '{"limit":1,"page":1,"status":"example_status"}' --json moosend.moosend_get_current_user
Get the current authenticated Moosend user. Useful as a health check to verify API connectivity.
read - Parameters
- none
kosmo integrations:call moosend.moosend_get_current_user '{}' --json kosmo integrations:moosend moosend_get_current_user '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
moosend.moosend_list_mailing_lists 2 parameters
kosmo integrations:schema moosend.moosend_list_mailing_lists --json | Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | no | Maximum number of mailing lists to return (default: 10). |
offset | integer | no | Offset for pagination (default: 0). |
moosend.moosend_get_mailing_list 1 parameters
kosmo integrations:schema moosend.moosend_get_mailing_list --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The mailing list ID. |
moosend.moosend_create_mailing_list 1 parameters
kosmo integrations:schema moosend.moosend_create_mailing_list --json | Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | The name for the new mailing list. |
moosend.moosend_list_subscribers 4 parameters
kosmo integrations:schema moosend.moosend_list_subscribers --json | Parameter | Type | Required | Description |
|---|---|---|---|
list_id | string | yes | The mailing list ID to retrieve subscribers for. |
limit | integer | no | Maximum number of subscribers to return (default: 10). |
page | integer | no | Page number for pagination (default: 1). |
status | string | no | Filter by subscriber status: "Subscribed", "Unsubscribed", "Bounced", "Removed". |
moosend.moosend_add_subscriber 3 parameters
kosmo integrations:schema moosend.moosend_add_subscriber --json | Parameter | Type | Required | Description |
|---|---|---|---|
list_id | string | yes | The mailing list ID to add the subscriber to. |
email | string | yes | The subscriber's email address. |
name | string | no | The subscriber's name (optional). |
moosend.moosend_list_campaigns 3 parameters
kosmo integrations:schema moosend.moosend_list_campaigns --json | Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | no | Maximum number of campaigns to return (default: 10). |
page | integer | no | Page number for pagination (default: 1). |
status | string | no | Filter by campaign status: "Sent", "Draft", "Scheduled", "Sending". |
moosend.moosend_get_current_user 0 parameters
kosmo integrations:schema moosend.moosend_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
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.