KosmoKrator

other

Mailer Send CLI for Shell Scripts

Use the Mailer Send CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write API token auth

Mailer Send CLI for Shell Scripts

Call integration functions from shell scripts with stable JSON input and output.

Use shell scripts for small local automations that need one or more integration calls. The Mailer Send CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Mailer Send CLI for Shell Scripts
kosmokrator integrations:configure mailer-send --set api_token="$MAILER_SEND_API_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call mailer-send.mailer_send_list_messages '{"limit":1,"page":1}' --json

Discovery Before Execution

Agents and scripts can inspect Mailer Send docs and schemas before choosing a function.

kosmo integrations:docs mailer-send --json
kosmo integrations:docs mailer-send.mailer_send_list_messages --json
kosmo integrations:schema mailer-send.mailer_send_list_messages --json
kosmo integrations:search "Mailer Send" --json
kosmo integrations:list --json

Useful Mailer Send CLI Functions

FunctionTypeParametersDescription
mailer-send.mailer_send_list_messages Read limit, page List email messages from your MailerSend account. Returns a paginated list of sent messages with their IDs, subjects, and statuses.
mailer-send.mailer_send_get_message Read id Get detailed information about a specific email message by its ID. Returns the full message object including status, recipients, subject, and content.
mailer-send.mailer_send_send_email Write from, to, subject, html, text Send an email through the MailerSend API. Requires a sender (from), one or more recipients (to), and a subject. Optionally provide HTML and/or plain text content.
mailer-send.mailer_send_list_templates Read limit, page List email templates available in your MailerSend account. Returns template IDs, names, and types for use when sending templated emails.
mailer-send.mailer_send_list_domains Read limit, page, verified List sending domains configured in your MailerSend account. Returns domain names, verification statuses, and related settings.
mailer-send.mailer_send_list_recipients Read limit, page List recipients (contacts) from your MailerSend account. Returns recipient emails, names, and subscription statuses.
mailer-send.mailer_send_get_current_user Read none Verify MailerSend API connectivity by fetching a minimal list of domains. Use this as a health check to confirm the API token is valid and the service is reachable.

Automation Notes

Related Mailer Send CLI Pages