KosmoKrator

analytics

Delighted CLI for AI Agents

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

Delighted CLI Setup

Delighted can be configured headlessly with `kosmokrator integrations:configure delighted`.

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 delighted --set api_key="$DELIGHTED_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor delighted --json
kosmokrator integrations:status --json

Credentials

Authentication type: basic auth basic_auth. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
api_key DELIGHTED_API_KEY Secret secret yes API Key
url DELIGHTED_URL Text text no API URL

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call delighted.delighted_send_person '{}' --json
Provider shortcut
kosmo integrations:delighted delighted_send_person '{}' --json

Discovery

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

Discovery commands
kosmo integrations:docs delighted --json
kosmo integrations:docs delighted.delighted_send_person --json
kosmo integrations:schema delighted.delighted_send_person --json
kosmo integrations:search "Delighted" --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.

delighted.delighted_send_person

Create or update a person and schedule a survey.

Write write
Parameters
none
Generic call
kosmo integrations:call delighted.delighted_send_person '{}' --json
Shortcut
kosmo integrations:delighted delighted_send_person '{}' --json

delighted.delighted_list_survey_responses

List survey responses.

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

delighted.delighted_get_metrics

Get account metrics and score breakdowns.

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

delighted.delighted_create_survey_response

Add a survey response manually.

Write write
Parameters
none
Generic call
kosmo integrations:call delighted.delighted_create_survey_response '{}' --json
Shortcut
kosmo integrations:delighted delighted_create_survey_response '{}' --json

delighted.delighted_delete_pending_survey_request

Delete pending survey requests for a person.

Write write
Parameters
none
Generic call
kosmo integrations:call delighted.delighted_delete_pending_survey_request '{}' --json
Shortcut
kosmo integrations:delighted delighted_delete_pending_survey_request '{}' --json

delighted.delighted_unsubscribe_person

Unsubscribe a person.

Write write
Parameters
none
Generic call
kosmo integrations:call delighted.delighted_unsubscribe_person '{}' --json
Shortcut
kosmo integrations:delighted delighted_unsubscribe_person '{}' --json

delighted.delighted_list_people

List people.

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

delighted.delighted_list_unsubscribes

List unsubscribed people.

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

delighted.delighted_list_bounces

List bounced people.

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

delighted.delighted_delete_person

Delete a person by identifier.

Write write
Parameters
none
Generic call
kosmo integrations:call delighted.delighted_delete_person '{}' --json
Shortcut
kosmo integrations:delighted delighted_delete_person '{}' --json

delighted.delighted_get_autopilot_email

Get email Autopilot configuration.

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

delighted.delighted_get_autopilot_sms

Get SMS Autopilot configuration.

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

delighted.delighted_list_autopilot_email_memberships

List people in email Autopilot.

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

delighted.delighted_list_autopilot_sms_memberships

List people in SMS Autopilot.

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

delighted.delighted_add_autopilot_email_membership

Add a person to email Autopilot.

Write write
Parameters
none
Generic call
kosmo integrations:call delighted.delighted_add_autopilot_email_membership '{}' --json
Shortcut
kosmo integrations:delighted delighted_add_autopilot_email_membership '{}' --json

delighted.delighted_add_autopilot_sms_membership

Add a person to SMS Autopilot.

Write write
Parameters
none
Generic call
kosmo integrations:call delighted.delighted_add_autopilot_sms_membership '{}' --json
Shortcut
kosmo integrations:delighted delighted_add_autopilot_sms_membership '{}' --json

delighted.delighted_remove_autopilot_email_membership

Remove a person from email Autopilot.

Write write
Parameters
none
Generic call
kosmo integrations:call delighted.delighted_remove_autopilot_email_membership '{}' --json
Shortcut
kosmo integrations:delighted delighted_remove_autopilot_email_membership '{}' --json

delighted.delighted_remove_autopilot_sms_membership

Remove a person from SMS Autopilot.

Write write
Parameters
none
Generic call
kosmo integrations:call delighted.delighted_remove_autopilot_sms_membership '{}' --json
Shortcut
kosmo integrations:delighted delighted_remove_autopilot_sms_membership '{}' --json

delighted.delighted_api_get

Call a safe relative Delighted GET path.

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

delighted.delighted_api_post

Call a safe relative Delighted POST path.

Write write
Parameters
none
Generic call
kosmo integrations:call delighted.delighted_api_post '{}' --json
Shortcut
kosmo integrations:delighted delighted_api_post '{}' --json

delighted.delighted_api_delete

Call a safe relative Delighted DELETE path.

Write write
Parameters
none
Generic call
kosmo integrations:call delighted.delighted_api_delete '{}' --json
Shortcut
kosmo integrations:delighted delighted_api_delete '{}' --json

Function Schemas

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

delighted.delighted_send_person 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_send_person --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_list_survey_responses 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_list_survey_responses --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_get_metrics 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_get_metrics --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_create_survey_response 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_create_survey_response --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_delete_pending_survey_request 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_delete_pending_survey_request --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_unsubscribe_person 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_unsubscribe_person --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_list_people 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_list_people --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_list_unsubscribes 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_list_unsubscribes --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_list_bounces 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_list_bounces --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_delete_person 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_delete_person --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_get_autopilot_email 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_get_autopilot_email --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_get_autopilot_sms 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_get_autopilot_sms --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_list_autopilot_email_memberships 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_list_autopilot_email_memberships --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_list_autopilot_sms_memberships 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_list_autopilot_sms_memberships --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_add_autopilot_email_membership 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_add_autopilot_email_membership --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_add_autopilot_sms_membership 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_add_autopilot_sms_membership --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_remove_autopilot_email_membership 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_remove_autopilot_email_membership --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_remove_autopilot_sms_membership 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_remove_autopilot_sms_membership --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_api_get 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_api_get --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_api_post 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_api_post --json
ParameterTypeRequiredDescription
No parameters.
delighted.delighted_api_delete 0 parameters
Schema command
kosmo integrations:schema delighted.delighted_api_delete --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.