Use the ChartMogul CLI from KosmoKrator to call ChartMogul tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
ChartMogul can be configured headlessly with `kosmokrator integrations:configure chartmogul`.
# 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 chartmogul --set api_key="$CHARTMOGUL_API_KEY" --enable --read allow --write ask --jsonkosmokrator integrations:doctor chartmogul --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API keyapi_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
api_key
CHARTMOGUL_API_KEY
Secret secret
yes
API Key
url
CHARTMOGUL_URL
URL url
no
API Base URL
Call ChartMogul Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to ChartMogul.
chartmogul.chartmogul_list_customers
Read read
List customers from ChartMogul. Supports filtering by status or email and pagination. Returns customer details including UUID, name, email, company, and status.
List subscriptions from ChartMogul. Supports filtering by customer UUID or status and pagination. Returns subscription details including plan, dates, and state.
List invoices from ChartMogul. Supports filtering by customer UUID and pagination. Returns invoice details including amount, dates, line items, and status.
Query subscription analytics metrics from ChartMogul. Returns key metrics like MRR, ARR, churn rate, customer count, and more. Specify a date range and interval for timeseries data.
Get the currently authenticated ChartMogul user. Returns user details including name, email, and account information. Useful for verifying API credentials.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
chartmogul.chartmogul_list_customers
List customers from ChartMogul. Supports filtering by status or email and pagination. Returns customer details including UUID, name, email, company, and status.
List subscriptions from ChartMogul. Supports filtering by customer UUID or status and pagination. Returns subscription details including plan, dates, and state.
Number of results per page (default: 50, max: 200).
page
integer
no
Page number, starting from 1 (default: 1).
chartmogul.chartmogul_list_invoices
List invoices from ChartMogul. Supports filtering by customer UUID and pagination. Returns invoice details including amount, dates, line items, and status.
Number of results per page (default: 50, max: 200).
page
integer
no
Page number, starting from 1 (default: 1).
customer_uuid
string
no
Filter invoices by customer UUID.
chartmogul.chartmogul_get_metrics
Query subscription analytics metrics from ChartMogul. Returns key metrics like MRR, ARR, churn rate, customer count, and more. Specify a date range and interval for timeseries data.
Start date for the metrics period (ISO 8601, e.g. "2025-01-01").
end_date
string
yes
End date for the metrics period (ISO 8601, e.g. "2025-01-31").
interval
string
no
Interval for grouping results: "day", "week", or "month" (default: "month").
type
string
no
Type of metrics to return: "absolute" or "percentage". Omit for default.
chartmogul.chartmogul_get_current_user
Get the currently authenticated ChartMogul user. Returns user details including name, email, and account information. Useful for verifying API credentials.
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.