KosmoKrator

other

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.

7 functions 5 read 2 write API key auth

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 use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
api_key MOOSEND_API_KEY Secret secret yes API Key

Call Moosend Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call moosend.moosend_list_mailing_lists '{
  "limit": 1,
  "offset": 1
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:moosend moosend_list_mailing_lists '{
  "limit": 1,
  "offset": 1
}' --json

Agent Discovery Commands

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

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Moosend.

moosend.moosend_list_mailing_lists

Read read

List all mailing lists in your Moosend account. Returns list IDs, names, and subscriber counts.

Parameters
limit, offset

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

moosend.moosend_get_mailing_list

Read read

Get detailed information about a specific mailing list in Moosend, including subscriber counts and settings.

Parameters
id

Generic CLI call

kosmo integrations:call moosend.moosend_get_mailing_list '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:moosend moosend_get_mailing_list '{"id":"example_id"}' --json

moosend.moosend_create_mailing_list

Write write

Create a new mailing list in Moosend. Returns the newly created list with its ID.

Parameters
name

Generic CLI call

kosmo integrations:call moosend.moosend_create_mailing_list '{"name":"example_name"}' --json

Provider shortcut

kosmo integrations:moosend moosend_create_mailing_list '{"name":"example_name"}' --json

moosend.moosend_list_subscribers

Read read

List subscribers for a specific mailing list in Moosend. Supports filtering by status and pagination.

Parameters
list_id, limit, page, status

Generic CLI call

kosmo integrations:call moosend.moosend_list_subscribers '{"list_id":"example_list_id","limit":1,"page":1,"status":"example_status"}' --json

Provider shortcut

kosmo integrations:moosend moosend_list_subscribers '{"list_id":"example_list_id","limit":1,"page":1,"status":"example_status"}' --json

moosend.moosend_add_subscriber

Write write

Add a new subscriber to a Moosend mailing list. Requires an email address; name is optional.

Parameters
list_id, email, name

Generic CLI call

kosmo integrations:call moosend.moosend_add_subscriber '{"list_id":"example_list_id","email":"example_email","name":"example_name"}' --json

Provider shortcut

kosmo integrations:moosend moosend_add_subscriber '{"list_id":"example_list_id","email":"example_email","name":"example_name"}' --json

moosend.moosend_list_campaigns

Read read

List all email campaigns in your Moosend account. Supports filtering by status and pagination.

Parameters
limit, page, status

Generic CLI call

kosmo integrations:call moosend.moosend_list_campaigns '{"limit":1,"page":1,"status":"example_status"}' --json

Provider shortcut

kosmo integrations:moosend moosend_list_campaigns '{"limit":1,"page":1,"status":"example_status"}' --json

moosend.moosend_get_current_user

Read read

Get the current authenticated Moosend user. Useful as a health check to verify API connectivity.

Parameters
none

Generic CLI call

kosmo integrations:call moosend.moosend_get_current_user '{}' --json

Provider 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

List all mailing lists in your Moosend account. Returns list IDs, names, and subscriber counts.

Operation
Read read
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

Get detailed information about a specific mailing list in Moosend, including subscriber counts and settings.

Operation
Read read
Schema command
kosmo integrations:schema moosend.moosend_get_mailing_list --json
ParameterTypeRequiredDescription
id string yes The mailing list ID.

moosend.moosend_create_mailing_list

Create a new mailing list in Moosend. Returns the newly created list with its ID.

Operation
Write write
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

List subscribers for a specific mailing list in Moosend. Supports filtering by status and pagination.

Operation
Read read
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

Add a new subscriber to a Moosend mailing list. Requires an email address; name is optional.

Operation
Write write
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

List all email campaigns in your Moosend account. Supports filtering by status and pagination.

Operation
Read read
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

Get the current authenticated Moosend user. Useful as a health check to verify API connectivity.

Operation
Read read
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.