finance
Paystack CLI for Headless Automation
Use the Paystack CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 5 read 2 write API key auth
Paystack CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. The Paystack CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Paystack CLI for Headless Automation
kosmokrator integrations:configure paystack --set secret_key="$PAYSTACK_SECRET_KEY" --enable --read allow --write ask --json
kosmo integrations:call paystack.paystack_list_transactions '{"per_page":1,"page":1,"status":"example_status","customer":"example_customer","from":"example_from","to":"example_to"}' --json Discovery Before Execution
Agents and scripts can inspect Paystack docs and schemas before choosing a function.
kosmo integrations:docs paystack --json
kosmo integrations:docs paystack.paystack_list_transactions --json
kosmo integrations:schema paystack.paystack_list_transactions --json
kosmo integrations:search "Paystack" --json
kosmo integrations:list --json Useful Paystack CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
paystack.paystack_list_transactions | Read | per_page, page, status, customer, from, to | List transactions on your Paystack integration. Supports filtering by status, customer, and date range with pagination. |
paystack.paystack_get_transaction | Read | id | Get details of a specific Paystack transaction by its ID or reference. |
paystack.paystack_initialize_transaction | Write | amount, email, reference, callback_url | Initialize a new payment transaction on Paystack. Returns an authorization URL for the customer to complete payment. |
paystack.paystack_list_customers | Read | per_page, page | List customers on your Paystack integration. Supports pagination. |
paystack.paystack_create_customer | Write | email, first_name, last_name, phone | Create a new customer on your Paystack integration. |
paystack.paystack_list_plans | Read | per_page, page, status | List subscription plans on your Paystack integration. Supports filtering by status and pagination. |
paystack.paystack_get_current_user | Read | none | Verify the Paystack API connection and retrieve integration payment session timeout settings. Use this to check if the API key is valid and the service is reachable. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.