other
Mailer Send CLI for CI
Use the Mailer Send CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write API token auth
Mailer Send CLI for CI
Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.
Use this shape when a pipeline needs to read or update an external service. 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 CI
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
| Function | Type | Parameters | Description |
|---|---|---|---|
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
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.