KosmoKrator

email

ConvertKit CLI for AI Agents

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

7 functions 6 read 1 write API key auth

ConvertKit CLI Setup

ConvertKit can be configured headlessly with `kosmokrator integrations:configure convertkit`.

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

Credentials

Authentication type: API key api_key. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
api_key CONVERTKIT_API_KEY Secret secret yes API Key
url CONVERTKIT_URL URL url no API Base URL

Call ConvertKit Headlessly

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

kosmo integrations:call convertkit.convertkit_list_subscribers '{
  "page": 1,
  "per_page": 1,
  "from": "example_from",
  "to": "example_to"
}' --json

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

kosmo integrations:convertkit convertkit_list_subscribers '{
  "page": 1,
  "per_page": 1,
  "from": "example_from",
  "to": "example_to"
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs convertkit --json
kosmo integrations:docs convertkit.convertkit_list_subscribers --json
kosmo integrations:schema convertkit.convertkit_list_subscribers --json
kosmo integrations:search "ConvertKit" --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 ConvertKit.

convertkit.convertkit_list_subscribers

Read read

List subscribers from your ConvertKit account. Supports pagination and date range filtering.

Parameters
page, per_page, from, to

Generic CLI call

kosmo integrations:call convertkit.convertkit_list_subscribers '{"page":1,"per_page":1,"from":"example_from","to":"example_to"}' --json

Provider shortcut

kosmo integrations:convertkit convertkit_list_subscribers '{"page":1,"per_page":1,"from":"example_from","to":"example_to"}' --json

convertkit.convertkit_get_subscriber

Read read

Get details for a single ConvertKit subscriber by their subscriber ID.

Parameters
subscriber_id

Generic CLI call

kosmo integrations:call convertkit.convertkit_get_subscriber '{"subscriber_id":1}' --json

Provider shortcut

kosmo integrations:convertkit convertkit_get_subscriber '{"subscriber_id":1}' --json

convertkit.convertkit_list_forms

Read read

List all forms in your ConvertKit account. Returns form IDs and names.

Parameters
none

Generic CLI call

kosmo integrations:call convertkit.convertkit_list_forms '{}' --json

Provider shortcut

kosmo integrations:convertkit convertkit_list_forms '{}' --json

convertkit.convertkit_list_tags

Read read

List all tags in your ConvertKit account. Returns tag IDs and names.

Parameters
none

Generic CLI call

kosmo integrations:call convertkit.convertkit_list_tags '{}' --json

Provider shortcut

kosmo integrations:convertkit convertkit_list_tags '{}' --json

convertkit.convertkit_create_tag

Write write

Create a new tag in ConvertKit.

Parameters
name

Generic CLI call

kosmo integrations:call convertkit.convertkit_create_tag '{"name":"example_name"}' --json

Provider shortcut

kosmo integrations:convertkit convertkit_create_tag '{"name":"example_name"}' --json

convertkit.convertkit_list_broadcasts

Read read

List broadcasts (email blasts) from your ConvertKit account. Supports pagination.

Parameters
page, per_page

Generic CLI call

kosmo integrations:call convertkit.convertkit_list_broadcasts '{"page":1,"per_page":1}' --json

Provider shortcut

kosmo integrations:convertkit convertkit_list_broadcasts '{"page":1,"per_page":1}' --json

convertkit.convertkit_get_current_user

Read read

Get the authenticated ConvertKit account information, including account name, email, and plan details.

Parameters
none

Generic CLI call

kosmo integrations:call convertkit.convertkit_get_current_user '{}' --json

Provider shortcut

kosmo integrations:convertkit convertkit_get_current_user '{}' --json

Function Schemas

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

convertkit.convertkit_list_subscribers

List subscribers from your ConvertKit account. Supports pagination and date range filtering.

Operation
Read read
Schema command
kosmo integrations:schema convertkit.convertkit_list_subscribers --json
ParameterTypeRequiredDescription
page integer no Page number (starts at 1).
per_page integer no Results per page (max 50, default 50).
from string no Filter subscribers added after this date (ISO 8601, e.g. "2025-01-01").
to string no Filter subscribers added before this date (ISO 8601, e.g. "2025-12-31").

convertkit.convertkit_get_subscriber

Get details for a single ConvertKit subscriber by their subscriber ID.

Operation
Read read
Schema command
kosmo integrations:schema convertkit.convertkit_get_subscriber --json
ParameterTypeRequiredDescription
subscriber_id integer yes The ConvertKit subscriber ID.

convertkit.convertkit_list_forms

List all forms in your ConvertKit account. Returns form IDs and names.

Operation
Read read
Schema command
kosmo integrations:schema convertkit.convertkit_list_forms --json
ParameterTypeRequiredDescription
No parameters.

convertkit.convertkit_list_tags

List all tags in your ConvertKit account. Returns tag IDs and names.

Operation
Read read
Schema command
kosmo integrations:schema convertkit.convertkit_list_tags --json
ParameterTypeRequiredDescription
No parameters.

convertkit.convertkit_create_tag

Create a new tag in ConvertKit.

Operation
Write write
Schema command
kosmo integrations:schema convertkit.convertkit_create_tag --json
ParameterTypeRequiredDescription
name string yes Name for the new tag.

convertkit.convertkit_list_broadcasts

List broadcasts (email blasts) from your ConvertKit account. Supports pagination.

Operation
Read read
Schema command
kosmo integrations:schema convertkit.convertkit_list_broadcasts --json
ParameterTypeRequiredDescription
page integer no Page number (starts at 1).
per_page integer no Results per page (default 50).

convertkit.convertkit_get_current_user

Get the authenticated ConvertKit account information, including account name, email, and plan details.

Operation
Read read
Schema command
kosmo integrations:schema convertkit.convertkit_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.