KosmoKrator

marketing

Autopilot CLI for Cron Jobs

Use the Autopilot CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write API key auth

Autopilot CLI for Cron Jobs

Schedule repeatable integration workflows from cron while keeping credentials in KosmoKrator config.

Use the headless CLI from cron when an operation should run without an interactive agent session. The Autopilot CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Autopilot CLI for Cron Jobs
kosmokrator integrations:configure autopilot --set api_key="$AUTOPILOT_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call autopilot.autopilot_list_contacts '{"limit":1,"bookmark":"example_bookmark"}' --json

Discovery Before Execution

Agents and scripts can inspect Autopilot docs and schemas before choosing a function.

kosmo integrations:docs autopilot --json
kosmo integrations:docs autopilot.autopilot_list_contacts --json
kosmo integrations:schema autopilot.autopilot_list_contacts --json
kosmo integrations:search "Autopilot" --json
kosmo integrations:list --json

Useful Autopilot CLI Functions

FunctionTypeParametersDescription
autopilot.autopilot_list_contacts Read limit, bookmark List contacts in your Autopilot account. Returns contact IDs, emails, and names.
autopilot.autopilot_get_contact Read contact_id Get detailed information about a specific Autopilot contact by ID or email address.
autopilot.autopilot_create_contact Write email, first_name, last_name, phone, title, company, custom_fields Create or update a contact in Autopilot. Requires an email address; other fields are optional.
autopilot.autopilot_list_lists Read none List all lists in your Autopilot account. Returns list IDs and titles.
autopilot.autopilot_get_list Read list_id Get detailed information about a specific Autopilot list, including contacts.
autopilot.autopilot_list_journeys Read none List all journeys in your Autopilot account. Returns journey IDs and names.
autopilot.autopilot_get_current_user Read none Get the authenticated user's Autopilot account details.

Automation Notes

Related Autopilot CLI Pages