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 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.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
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.
kosmo integrations:call podia.podia_list_products '{}' --json 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.
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 - Parameters
- none
kosmo integrations:call podia.podia_list_products '{}' --json 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 - Parameters
- product_id
kosmo integrations:call podia.podia_get_product '{"product_id":"example_product_id"}' --json 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 - Parameters
- page
kosmo integrations:call podia.podia_list_customers '{"page":1}' --json 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 - Parameters
- customer_id
kosmo integrations:call podia.podia_get_customer '{"customer_id":"example_customer_id"}' --json 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 - Parameters
- product_id, before, after, page
kosmo integrations:call podia.podia_list_sales '{"product_id":"example_product_id","before":"example_before","after":"example_after","page":1}' --json 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 - Parameters
- sale_id
kosmo integrations:call podia.podia_get_sale '{"sale_id":"example_sale_id"}' --json 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 - Parameters
- none
kosmo integrations:call podia.podia_get_current_user '{}' --json 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
kosmo integrations:schema podia.podia_list_products --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
podia.podia_get_product 1 parameters
kosmo integrations:schema podia.podia_get_product --json | Parameter | Type | Required | Description |
|---|---|---|---|
product_id | string | yes | The ID of the product to retrieve. |
podia.podia_list_customers 1 parameters
kosmo integrations:schema podia.podia_list_customers --json | Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number for pagination (default: 1). |
podia.podia_get_customer 1 parameters
kosmo integrations:schema podia.podia_get_customer --json | Parameter | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | The ID of the customer to retrieve. |
podia.podia_list_sales 4 parameters
kosmo integrations:schema podia.podia_list_sales --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema podia.podia_get_sale --json | Parameter | Type | Required | Description |
|---|---|---|---|
sale_id | string | yes | The ID of the sale to retrieve. |
podia.podia_get_current_user 0 parameters
kosmo integrations:schema podia.podia_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.