KosmoKrator

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, 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 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.

KeyEnv varTypeRequiredLabel
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.

Generic CLI call
kosmo integrations:call moosend.moosend_list_mailing_lists '{"limit":1,"offset":1}' --json
Provider shortcut
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.

Discovery commands
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 read
Parameters
limit, offset
Generic call
kosmo integrations:call moosend.moosend_list_mailing_lists '{"limit":1,"offset":1}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call moosend.moosend_get_mailing_list '{"id":"example_id"}' --json
Shortcut
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 write
Parameters
name
Generic call
kosmo integrations:call moosend.moosend_create_mailing_list '{"name":"example_name"}' --json
Shortcut
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 read
Parameters
list_id, limit, page, status
Generic call
kosmo integrations:call moosend.moosend_list_subscribers '{"list_id":"example_list_id","limit":1,"page":1,"status":"example_status"}' --json
Shortcut
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 write
Parameters
list_id, email, name
Generic call
kosmo integrations:call moosend.moosend_add_subscriber '{"list_id":"example_list_id","email":"example_email","name":"example_name"}' --json
Shortcut
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 read
Parameters
limit, page, status
Generic call
kosmo integrations:call moosend.moosend_list_campaigns '{"limit":1,"page":1,"status":"example_status"}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call moosend.moosend_get_current_user '{}' --json
Shortcut
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
Schema command
kosmo integrations:schema moosend.moosend_list_mailing_lists --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema moosend.moosend_get_mailing_list --json
ParameterTypeRequiredDescription
id string yes The mailing list ID.
moosend.moosend_create_mailing_list 1 parameters
Schema command
kosmo integrations:schema moosend.moosend_create_mailing_list --json
ParameterTypeRequiredDescription
name string yes The name for the new mailing list.
moosend.moosend_list_subscribers 4 parameters
Schema command
kosmo integrations:schema moosend.moosend_list_subscribers --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema moosend.moosend_add_subscriber --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema moosend.moosend_list_campaigns --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema moosend.moosend_get_current_user --json
ParameterTypeRequiredDescription
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.