KosmoKrator

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, configure, and verify
# 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.

KeyEnv varTypeRequiredLabel
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.

Generic CLI call
kosmo integrations:call kajabi.kajabi_list_offers '{"page":1,"per_page":1}' --json
Provider shortcut
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.

Discovery commands
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 read
Parameters
page, per_page
Generic call
kosmo integrations:call kajabi.kajabi_list_offers '{"page":1,"per_page":1}' --json
Shortcut
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 read
Parameters
offer_id
Generic call
kosmo integrations:call kajabi.kajabi_get_offer '{"offer_id":"example_offer_id"}' --json
Shortcut
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 read
Parameters
page, per_page
Generic call
kosmo integrations:call kajabi.kajabi_list_products '{"page":1,"per_page":1}' --json
Shortcut
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 read
Parameters
product_id
Generic call
kosmo integrations:call kajabi.kajabi_get_product '{"product_id":"example_product_id"}' --json
Shortcut
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 read
Parameters
page, per_page
Generic call
kosmo integrations:call kajabi.kajabi_list_members '{"page":1,"per_page":1}' --json
Shortcut
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 read
Parameters
member_id
Generic call
kosmo integrations:call kajabi.kajabi_get_member '{"member_id":"example_member_id"}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call kajabi.kajabi_get_current_user '{}' --json
Shortcut
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
Schema command
kosmo integrations:schema kajabi.kajabi_list_offers --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema kajabi.kajabi_get_offer --json
ParameterTypeRequiredDescription
offer_id string yes The ID of the offer to retrieve.
kajabi.kajabi_list_products 2 parameters
Schema command
kosmo integrations:schema kajabi.kajabi_list_products --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema kajabi.kajabi_get_product --json
ParameterTypeRequiredDescription
product_id string yes The ID of the product to retrieve.
kajabi.kajabi_list_members 2 parameters
Schema command
kosmo integrations:schema kajabi.kajabi_list_members --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema kajabi.kajabi_get_member --json
ParameterTypeRequiredDescription
member_id string yes The ID of the member to retrieve.
kajabi.kajabi_get_current_user 0 parameters
Schema command
kosmo integrations:schema kajabi.kajabi_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.