KosmoKrator

productivity

Podia CLI for AI Agents

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

Podia CLI Setup

Podia can be configured headlessly with `kosmokrator integrations:configure podia`.

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 podia --set access_token="$PODIA_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor podia --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 PODIA_ACCESS_TOKEN Secret secret yes Access Token
url PODIA_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 podia.podia_list_products '{}' --json
Provider shortcut
kosmo integrations:podia podia_list_products '{}' --json

Discovery

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

Discovery commands
kosmo integrations:docs podia --json
kosmo integrations:docs podia.podia_list_products --json
kosmo integrations:schema podia.podia_list_products --json
kosmo integrations:search "Podia" --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.

podia.podia_list_products

List all online courses and digital downloads in your Podia account. Returns product names, IDs, types, and metadata.

Read read
Parameters
none
Generic call
kosmo integrations:call podia.podia_list_products '{}' --json
Shortcut
kosmo integrations:podia podia_list_products '{}' --json

podia.podia_get_product

Get detailed information about a single Podia product by its ID. Returns full product data including description, price, type (course or download), and purchase URL.

Read read
Parameters
product_id
Generic call
kosmo integrations:call podia.podia_get_product '{"product_id":"example_product_id"}' --json
Shortcut
kosmo integrations:podia podia_get_product '{"product_id":"example_product_id"}' --json

podia.podia_list_customers

List all customers in your Podia account. Returns customer names, emails, and purchase history summaries.

Read read
Parameters
page
Generic call
kosmo integrations:call podia.podia_list_customers '{"page":1}' --json
Shortcut
kosmo integrations:podia podia_list_customers '{"page":1}' --json

podia.podia_get_customer

Get detailed information about a single Podia customer by their ID. Returns customer status, email, and purchase details.

Read read
Parameters
customer_id
Generic call
kosmo integrations:call podia.podia_get_customer '{"customer_id":"example_customer_id"}' --json
Shortcut
kosmo integrations:podia podia_get_customer '{"customer_id":"example_customer_id"}' --json

podia.podia_list_sales

List sales from your Podia account. Optionally filter by product ID, date range, or page. Returns sale details including buyer info, amount, and product.

Read read
Parameters
product_id, before, after, page
Generic call
kosmo integrations:call podia.podia_list_sales '{"product_id":"example_product_id","before":"example_before","after":"example_after","page":1}' --json
Shortcut
kosmo integrations:podia podia_list_sales '{"product_id":"example_product_id","before":"example_before","after":"example_after","page":1}' --json

podia.podia_get_sale

Get detailed information about a single Podia sale by its ID. Returns full sale data including buyer details, amount, product, and payment status.

Read read
Parameters
sale_id
Generic call
kosmo integrations:call podia.podia_get_sale '{"sale_id":"example_sale_id"}' --json
Shortcut
kosmo integrations:podia podia_get_sale '{"sale_id":"example_sale_id"}' --json

podia.podia_get_current_user

Get the profile of the currently authenticated Podia user. Useful to verify the connection and see account details.

Read read
Parameters
none
Generic call
kosmo integrations:call podia.podia_get_current_user '{}' --json
Shortcut
kosmo integrations:podia podia_get_current_user '{}' --json

Function Schemas

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

podia.podia_list_products 0 parameters
Schema command
kosmo integrations:schema podia.podia_list_products --json
ParameterTypeRequiredDescription
No parameters.
podia.podia_get_product 1 parameters
Schema command
kosmo integrations:schema podia.podia_get_product --json
ParameterTypeRequiredDescription
product_id string yes The ID of the product to retrieve.
podia.podia_list_customers 1 parameters
Schema command
kosmo integrations:schema podia.podia_list_customers --json
ParameterTypeRequiredDescription
page integer no Page number for pagination (default: 1).
podia.podia_get_customer 1 parameters
Schema command
kosmo integrations:schema podia.podia_get_customer --json
ParameterTypeRequiredDescription
customer_id string yes The ID of the customer to retrieve.
podia.podia_list_sales 4 parameters
Schema command
kosmo integrations:schema podia.podia_list_sales --json
ParameterTypeRequiredDescription
product_id string no Filter sales by a specific product ID.
before string no Only return sales before this ISO 8601 timestamp (e.g., "2026-01-01T00:00:00Z").
after string no Only return sales after this ISO 8601 timestamp (e.g., "2026-01-01T00:00:00Z").
page integer no Page number for pagination (default: 1).
podia.podia_get_sale 1 parameters
Schema command
kosmo integrations:schema podia.podia_get_sale --json
ParameterTypeRequiredDescription
sale_id string yes The ID of the sale to retrieve.
podia.podia_get_current_user 0 parameters
Schema command
kosmo integrations:schema podia.podia_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.