marketing
Zendesk Marketing CLI for CI
Use the Zendesk Marketing CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.
8 functions 7 read 1 write Manual OAuth token auth
Zendesk Marketing 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 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 CI
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
| Function | Type | Parameters | Description |
|---|---|---|---|
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
- 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.