KosmoKrator

marketing

Zendesk Marketing CLI for Shell Scripts

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

8 functions 7 read 1 write Manual OAuth token auth

Zendesk Marketing 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 Zendesk Marketing CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Zendesk Marketing CLI for Shell Scripts
kosmokrator integrations:configure zend --set access_token="$ZEND_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call zend.zend_list_campaigns '{}' --json

Discovery Before Execution

Agents and scripts can inspect Zendesk Marketing docs and schemas before choosing a function.

kosmo integrations:docs zend --json
kosmo integrations:docs zend.zend_list_campaigns --json
kosmo integrations:schema zend.zend_list_campaigns --json
kosmo integrations:search "Zendesk Marketing" --json
kosmo integrations:list --json

Useful Zendesk Marketing CLI Functions

FunctionTypeParametersDescription
zend.zend_list_campaigns Read none List all email marketing campaigns in your Zendesk account. Returns campaign IDs, subjects, and status.
zend.zend_get_campaign Read campaign_id Get detailed information about a specific email marketing campaign, including subject, content, and delivery stats.
zend.zend_create_campaign Write subject, content, list_ids, from_name, from_email Create a new email marketing campaign with subject, content, and target lists.
zend.zend_list_lists Read none List all subscriber lists in your Zendesk account. Returns list IDs and names.
zend.zend_get_list Read list_id Get detailed information about a specific subscriber list, including subscriber counts and custom fields.
zend.zend_list_subscribers Read list_id, page, page_size List subscribers on a Zendesk list. Returns email addresses, names, and subscription dates.
zend.zend_get_subscribers Read subscriber_id Get detailed information about a specific subscriber, including email, name, and subscription status.
zend.zend_get_current_user Read none Get the authenticated user's Zendesk account details, including name and email.

Automation Notes

Related Zendesk Marketing CLI Pages