KosmoKrator

marketing

Zendesk Marketing CLI for AI Agents

Use the Zendesk Marketing CLI from KosmoKrator to call Zendesk Marketing tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

8 functions 7 read 1 write Manual OAuth token auth

Zendesk Marketing CLI Setup

Zendesk Marketing can be configured headlessly with `kosmokrator integrations:configure zend`.

# 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 zend --set access_token="$ZEND_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor zend --json
kosmokrator integrations:status --json

Credentials

Authentication type: Manual OAuth token oauth2_manual_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
access_token ZEND_ACCESS_TOKEN Secret secret yes Access Token
url ZEND_URL URL url no API Base URL

Call Zendesk Marketing Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call zend.zend_list_campaigns '{}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:zend zend_list_campaigns '{}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities 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

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 Zendesk Marketing.

zend.zend_list_campaigns

Read read

List all email marketing campaigns in your Zendesk account. Returns campaign IDs, subjects, and status.

Parameters
none

Generic CLI call

kosmo integrations:call zend.zend_list_campaigns '{}' --json

Provider shortcut

kosmo integrations:zend zend_list_campaigns '{}' --json

zend.zend_get_campaign

Read read

Get detailed information about a specific email marketing campaign, including subject, content, and delivery stats.

Parameters
campaign_id

Generic CLI call

kosmo integrations:call zend.zend_get_campaign '{"campaign_id":"example_campaign_id"}' --json

Provider shortcut

kosmo integrations:zend zend_get_campaign '{"campaign_id":"example_campaign_id"}' --json

zend.zend_create_campaign

Write write

Create a new email marketing campaign with subject, content, and target lists.

Parameters
subject, content, list_ids, from_name, from_email

Generic CLI call

kosmo integrations:call zend.zend_create_campaign '{"subject":"example_subject","content":"example_content","list_ids":"example_list_ids","from_name":"example_from_name","from_email":"example_from_email"}' --json

Provider shortcut

kosmo integrations:zend zend_create_campaign '{"subject":"example_subject","content":"example_content","list_ids":"example_list_ids","from_name":"example_from_name","from_email":"example_from_email"}' --json

zend.zend_list_lists

Read read

List all subscriber lists in your Zendesk account. Returns list IDs and names.

Parameters
none

Generic CLI call

kosmo integrations:call zend.zend_list_lists '{}' --json

Provider shortcut

kosmo integrations:zend zend_list_lists '{}' --json

zend.zend_get_list

Read read

Get detailed information about a specific subscriber list, including subscriber counts and custom fields.

Parameters
list_id

Generic CLI call

kosmo integrations:call zend.zend_get_list '{"list_id":"example_list_id"}' --json

Provider shortcut

kosmo integrations:zend zend_get_list '{"list_id":"example_list_id"}' --json

zend.zend_list_subscribers

Read read

List subscribers on a Zendesk list. Returns email addresses, names, and subscription dates.

Parameters
list_id, page, page_size

Generic CLI call

kosmo integrations:call zend.zend_list_subscribers '{"list_id":"example_list_id","page":1,"page_size":1}' --json

Provider shortcut

kosmo integrations:zend zend_list_subscribers '{"list_id":"example_list_id","page":1,"page_size":1}' --json

zend.zend_get_subscribers

Read read

Get detailed information about a specific subscriber, including email, name, and subscription status.

Parameters
subscriber_id

Generic CLI call

kosmo integrations:call zend.zend_get_subscribers '{"subscriber_id":"example_subscriber_id"}' --json

Provider shortcut

kosmo integrations:zend zend_get_subscribers '{"subscriber_id":"example_subscriber_id"}' --json

zend.zend_get_current_user

Read read

Get the authenticated user's Zendesk account details, including name and email.

Parameters
none

Generic CLI call

kosmo integrations:call zend.zend_get_current_user '{}' --json

Provider shortcut

kosmo integrations:zend zend_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

zend.zend_list_campaigns

List all email marketing campaigns in your Zendesk account. Returns campaign IDs, subjects, and status.

Operation
Read read
Schema command
kosmo integrations:schema zend.zend_list_campaigns --json
ParameterTypeRequiredDescription
No parameters.

zend.zend_get_campaign

Get detailed information about a specific email marketing campaign, including subject, content, and delivery stats.

Operation
Read read
Schema command
kosmo integrations:schema zend.zend_get_campaign --json
ParameterTypeRequiredDescription
campaign_id string yes The campaign ID.

zend.zend_create_campaign

Create a new email marketing campaign with subject, content, and target lists.

Operation
Write write
Schema command
kosmo integrations:schema zend.zend_create_campaign --json
ParameterTypeRequiredDescription
subject string yes The campaign email subject line.
content string no The HTML content of the campaign email.
list_ids array no Array of subscriber list IDs to target.
from_name string no The sender name for the campaign.
from_email string no The sender email address for the campaign.

zend.zend_list_lists

List all subscriber lists in your Zendesk account. Returns list IDs and names.

Operation
Read read
Schema command
kosmo integrations:schema zend.zend_list_lists --json
ParameterTypeRequiredDescription
No parameters.

zend.zend_get_list

Get detailed information about a specific subscriber list, including subscriber counts and custom fields.

Operation
Read read
Schema command
kosmo integrations:schema zend.zend_get_list --json
ParameterTypeRequiredDescription
list_id string yes The subscriber list ID.

zend.zend_list_subscribers

List subscribers on a Zendesk list. Returns email addresses, names, and subscription dates.

Operation
Read read
Schema command
kosmo integrations:schema zend.zend_list_subscribers --json
ParameterTypeRequiredDescription
list_id string no The subscriber list ID to filter by.
page integer no Page number for pagination (default: 1).
page_size integer no Number of subscribers per page (default: 100).

zend.zend_get_subscribers

Get detailed information about a specific subscriber, including email, name, and subscription status.

Operation
Read read
Schema command
kosmo integrations:schema zend.zend_get_subscribers --json
ParameterTypeRequiredDescription
subscriber_id string yes The subscriber ID.

zend.zend_get_current_user

Get the authenticated user's Zendesk account details, including name and email.

Operation
Read read
Schema command
kosmo integrations:schema zend.zend_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

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.