Postmark CLI Setup Postmark can be configured headlessly with `kosmokrator integrations:configure postmark`.
# 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 postmark --set server_token=" $POSTMARK_SERVER_TOKEN " --enable --read allow --write ask --json
kosmokrator integrations:doctor postmark --json
kosmokrator integrations:status --json Credentials
Authentication type: API token api_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call Postmark Headlessly Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call postmark.postmark_list_messages '{
"count": 1,
"offset": 1,
"recipient": "example_recipient",
"fromemail": "example_fromemail",
"subject": "example_subject",
"status": "example_status",
"tag": "example_tag"
}' --json Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:postmark postmark_list_messages '{
"count": 1,
"offset": 1,
"recipient": "example_recipient",
"fromemail": "example_fromemail",
"subject": "example_subject",
"status": "example_status",
"tag": "example_tag"
}' --json Agent Discovery Commands
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs postmark --json
kosmo integrations:docs postmark.postmark_list_messages --json
kosmo integrations:schema postmark.postmark_list_messages --json
kosmo integrations:search "Postmark" --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 Postmark.
postmark.postmark_list_messages Read read List outbound messages from Postmark. Supports filtering by recipient, sender, subject, status, and tag.
count, offset, recipient, fromemail, subject, status, tag kosmo integrations:call postmark.postmark_list_messages '{"count":1,"offset":1,"recipient":"example_recipient","fromemail":"example_fromemail","subject":"example_subject","status":"example_status","tag":"example_tag"}' --json copy kosmo integrations:postmark postmark_list_messages '{"count":1,"offset":1,"recipient":"example_recipient","fromemail":"example_fromemail","subject":"example_subject","status":"example_status","tag":"example_tag"}' --json copy
postmark.postmark_get_message Read read Get details for a specific Postmark outbound message including body, recipients, and delivery status.
message_id kosmo integrations:call postmark.postmark_get_message '{"message_id":"example_message_id"}' --json copy kosmo integrations:postmark postmark_get_message '{"message_id":"example_message_id"}' --json copy
postmark.postmark_send_email Write write Send an email through Postmark. Requires To, From, and Subject. Provide either TextBody or HtmlBody.
To, From, Subject, TextBody, HtmlBody, Cc, Bcc, Tag, ReplyTo kosmo integrations:call postmark.postmark_send_email '{"To":"example_To","From":"example_From","Subject":"example_Subject","TextBody":"example_TextBody","HtmlBody":"example_HtmlBody","Cc":"example_Cc","Bcc":"example_Bcc","Tag":"example_Tag"}' --json copy kosmo integrations:postmark postmark_send_email '{"To":"example_To","From":"example_From","Subject":"example_Subject","TextBody":"example_TextBody","HtmlBody":"example_HtmlBody","Cc":"example_Cc","Bcc":"example_Bcc","Tag":"example_Tag"}' --json copy
postmark.postmark_send_template Write write Send an email using a Postmark template. Provide either a TemplateId or TemplateAlias along with the template model data.
From, To, TemplateId, TemplateAlias, TemplateModel, Cc, Bcc, ReplyTo, Tag, TrackOpens, TrackLinks kosmo integrations:call postmark.postmark_send_template '{"From":"example_From","To":"example_To","TemplateId":1,"TemplateAlias":"example_TemplateAlias","TemplateModel":"example_TemplateModel","Cc":"example_Cc","Bcc":"example_Bcc","ReplyTo":"example_ReplyTo"}' --json copy kosmo integrations:postmark postmark_send_template '{"From":"example_From","To":"example_To","TemplateId":1,"TemplateAlias":"example_TemplateAlias","TemplateModel":"example_TemplateModel","Cc":"example_Cc","Bcc":"example_Bcc","ReplyTo":"example_ReplyTo"}' --json copy
postmark.postmark_get_delivery_stats Read read Get email delivery statistics for your Postmark server, including counts of sent, bounced, and spam complaints.
none kosmo integrations:call postmark.postmark_get_delivery_stats '{}' --json copy kosmo integrations:postmark postmark_get_delivery_stats '{}' --json copy
postmark.postmark_list_templates Read read List all email templates in Postmark. Supports pagination.
count, offset kosmo integrations:call postmark.postmark_list_templates '{"count":1,"offset":1}' --json copy kosmo integrations:postmark postmark_list_templates '{"count":1,"offset":1}' --json copy
postmark.postmark_get_template Read read Get details for a Postmark email template including subject, HTML body, and text body.
template_id kosmo integrations:call postmark.postmark_get_template '{"template_id":"example_template_id"}' --json copy kosmo integrations:postmark postmark_get_template '{"template_id":"example_template_id"}' --json copy
postmark.postmark_list_servers Read read List servers in the Postmark account. Supports filtering by name and pagination.
count, offset, name kosmo integrations:call postmark.postmark_list_servers '{"count":1,"offset":1,"name":"example_name"}' --json copy kosmo integrations:postmark postmark_list_servers '{"count":1,"offset":1,"name":"example_name"}' --json copy
postmark.postmark_get_current_user Read read Get the current Postmark server info including name, settings, and delivery stats. Useful as a health check.
none kosmo integrations:call postmark.postmark_get_current_user '{}' --json copy kosmo integrations:postmark postmark_get_current_user '{}' --json copy Function Schemas Use these parameter tables when building CLI payloads without calling integrations:schema first.
Operation Read read
Schema command kosmo integrations:schema postmark.postmark_list_messages --json
Operation Read read
Schema command kosmo integrations:schema postmark.postmark_get_message --json
Operation Write write
Schema command kosmo integrations:schema postmark.postmark_send_email --json
Operation Write write
Schema command kosmo integrations:schema postmark.postmark_send_template --json
Operation Read read
Schema command kosmo integrations:schema postmark.postmark_get_delivery_stats --json
Operation Read read
Schema command kosmo integrations:schema postmark.postmark_list_templates --json
Operation Read read
Schema command kosmo integrations:schema postmark.postmark_get_template --json
Operation Read read
Schema command kosmo integrations:schema postmark.postmark_list_servers --json
Operation Read read
Schema command kosmo integrations:schema postmark.postmark_get_current_user --json 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.