productivity
Kajabi CLI for AI Agents
Use the Kajabi CLI from KosmoKrator to call Kajabi tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Kajabi CLI Setup
Kajabi can be configured headlessly with `kosmokrator integrations:configure kajabi`.
# 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 kajabi --set access_token="$KAJABI_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor kajabi --json
kosmokrator integrations:status --json Credentials
Authentication type: Bearer token bearer_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
access_token | KAJABI_ACCESS_TOKEN | Secret secret | yes | Access Token |
url | KAJABI_URL | URL url | no | API Base URL |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call kajabi.kajabi_list_offers '{"page":1,"per_page":1}' --json kosmo integrations:kajabi kajabi_list_offers '{"page":1,"per_page":1}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs kajabi --json
kosmo integrations:docs kajabi.kajabi_list_offers --json
kosmo integrations:schema kajabi.kajabi_list_offers --json
kosmo integrations:search "Kajabi" --json
kosmo integrations:list --json Automation Contexts
The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.
CLI Functions
Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.
kajabi.kajabi_list_offers
List all offers in your Kajabi account. Returns offer names, IDs, prices, and associated products.
read - Parameters
- page, per_page
kosmo integrations:call kajabi.kajabi_list_offers '{"page":1,"per_page":1}' --json kosmo integrations:kajabi kajabi_list_offers '{"page":1,"per_page":1}' --json kajabi.kajabi_get_offer
Get detailed information about a single Kajabi offer by its ID. Returns full offer data including title, price, and associated product details.
read - Parameters
- offer_id
kosmo integrations:call kajabi.kajabi_get_offer '{"offer_id":"example_offer_id"}' --json kosmo integrations:kajabi kajabi_get_offer '{"offer_id":"example_offer_id"}' --json kajabi.kajabi_list_products
List all products (courses, coaching programs, memberships) in your Kajabi account. Returns product names, IDs, types, and metadata.
read - Parameters
- page, per_page
kosmo integrations:call kajabi.kajabi_list_products '{"page":1,"per_page":1}' --json kosmo integrations:kajabi kajabi_list_products '{"page":1,"per_page":1}' --json kajabi.kajabi_get_product
Get detailed information about a single Kajabi product by its ID. Returns full product data including description, pricing, and content details.
read - Parameters
- product_id
kosmo integrations:call kajabi.kajabi_get_product '{"product_id":"example_product_id"}' --json kosmo integrations:kajabi kajabi_get_product '{"product_id":"example_product_id"}' --json kajabi.kajabi_list_members
List all members in your Kajabi account. Returns member names, emails, status, and enrollment details.
read - Parameters
- page, per_page
kosmo integrations:call kajabi.kajabi_list_members '{"page":1,"per_page":1}' --json kosmo integrations:kajabi kajabi_list_members '{"page":1,"per_page":1}' --json kajabi.kajabi_get_member
Get detailed information about a single Kajabi member by their ID. Returns member profile, email, status, and enrollment details.
read - Parameters
- member_id
kosmo integrations:call kajabi.kajabi_get_member '{"member_id":"example_member_id"}' --json kosmo integrations:kajabi kajabi_get_member '{"member_id":"example_member_id"}' --json kajabi.kajabi_get_current_user
Get the profile of the currently authenticated Kajabi user. Useful to verify the connection and see account details.
read - Parameters
- none
kosmo integrations:call kajabi.kajabi_get_current_user '{}' --json kosmo integrations:kajabi kajabi_get_current_user '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
kajabi.kajabi_list_offers 2 parameters
kosmo integrations:schema kajabi.kajabi_list_offers --json | Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number for pagination (default: 1). |
per_page | integer | no | Number of results per page (default: 25). |
kajabi.kajabi_get_offer 1 parameters
kosmo integrations:schema kajabi.kajabi_get_offer --json | Parameter | Type | Required | Description |
|---|---|---|---|
offer_id | string | yes | The ID of the offer to retrieve. |
kajabi.kajabi_list_products 2 parameters
kosmo integrations:schema kajabi.kajabi_list_products --json | Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number for pagination (default: 1). |
per_page | integer | no | Number of results per page (default: 25). |
kajabi.kajabi_get_product 1 parameters
kosmo integrations:schema kajabi.kajabi_get_product --json | Parameter | Type | Required | Description |
|---|---|---|---|
product_id | string | yes | The ID of the product to retrieve. |
kajabi.kajabi_list_members 2 parameters
kosmo integrations:schema kajabi.kajabi_list_members --json | Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number for pagination (default: 1). |
per_page | integer | no | Number of results per page (default: 25). |
kajabi.kajabi_get_member 1 parameters
kosmo integrations:schema kajabi.kajabi_get_member --json | Parameter | Type | Required | Description |
|---|---|---|---|
member_id | string | yes | The ID of the member to retrieve. |
kajabi.kajabi_get_current_user 0 parameters
kosmo integrations:schema kajabi.kajabi_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| 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.