KosmoKrator

email

Elastic Email CLI for Headless Automation

Use the Elastic Email CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.

6 functions 4 read 2 write API key auth

Elastic Email CLI for Headless Automation

Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.

Use headless automation when another tool needs a stable local command surface. The Elastic Email CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Elastic Email CLI for Headless Automation
kosmokrator integrations:configure elastic-email --set api_key="$ELASTIC_EMAIL_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call elastic-email.elasticemail_send_email '{"to":"example_to","subject":"example_subject","body":"example_body","from":"example_from","from_name":"example_from_name","reply_to":"example_reply_to","cc":"example_cc","bcc":"example_bcc"}' --json

Discovery Before Execution

Agents and scripts can inspect Elastic Email docs and schemas before choosing a function.

kosmo integrations:docs elastic-email --json
kosmo integrations:docs elastic-email.elasticemail_send_email --json
kosmo integrations:schema elastic-email.elasticemail_send_email --json
kosmo integrations:search "Elastic Email" --json
kosmo integrations:list --json

Useful Elastic Email CLI Functions

FunctionTypeParametersDescription
elastic-email.elasticemail_send_email Write to, subject, body, from, from_name, reply_to, cc, bcc Send a transactional email via Elastic Email. Provide the recipient address, subject, and HTML body.
elastic-email.elasticemail_list_templates Read limit, offset List email templates available in your Elastic Email account.
elastic-email.elasticemail_get_template Read id Get details of a specific email template by its ID from Elastic Email.
elastic-email.elasticemail_list_contacts Read limit, offset List contacts from your Elastic Email account.
elastic-email.elasticemail_create_contact Write email, list_name, first_name, last_name Create or add a contact in Elastic Email. Optionally assign the contact to an existing list.
elastic-email.elasticemail_get_current_user Read none Get information about the currently authenticated Elastic Email user account.

Automation Notes

Related Elastic Email CLI Pages