KosmoKrator

productivity

Lasso CRM CLI for AI Agents

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

Lasso CRM CLI Setup

Lasso CRM can be configured headlessly with `kosmokrator integrations:configure lasso`.

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 lasso --set token="$LASSO_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor lasso --json
kosmokrator integrations:status --json

Credentials

Authentication type: API token api_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
token LASSO_TOKEN Secret secret yes API Token
url LASSO_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 lasso.lasso_list_contacts '{"project_id":"example_project_id","limit":1,"page":1}' --json
Provider shortcut
kosmo integrations:lasso lasso_list_contacts '{"project_id":"example_project_id","limit":1,"page":1}' --json

Discovery

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

Discovery commands
kosmo integrations:docs lasso --json
kosmo integrations:docs lasso.lasso_list_contacts --json
kosmo integrations:schema lasso.lasso_list_contacts --json
kosmo integrations:search "Lasso CRM" --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.

lasso.lasso_list_contacts

List contacts (registrants) in Lasso CRM. Optionally filter by project ID or other criteria. Supports pagination.

Read read
Parameters
project_id, limit, page
Generic call
kosmo integrations:call lasso.lasso_list_contacts '{"project_id":"example_project_id","limit":1,"page":1}' --json
Shortcut
kosmo integrations:lasso lasso_list_contacts '{"project_id":"example_project_id","limit":1,"page":1}' --json

lasso.lasso_get_contact

Get full details for a single contact (registrant) in Lasso CRM, including emails, phone numbers, and associated information.

Read read
Parameters
id
Generic call
kosmo integrations:call lasso.lasso_get_contact '{"id":"example_id"}' --json
Shortcut
kosmo integrations:lasso lasso_get_contact '{"id":"example_id"}' --json

lasso.lasso_create_contact

Create a new contact (registrant) in Lasso CRM. Provide at least a first name or last name, and optionally email, phone, and other details.

Write write
Parameters
first_name, last_name, email, phone, project_id, source, notes
Generic call
kosmo integrations:call lasso.lasso_create_contact '{"first_name":"example_first_name","last_name":"example_last_name","email":"example_email","phone":"example_phone","project_id":"example_project_id","source":"example_source","notes":"example_notes"}' --json
Shortcut
kosmo integrations:lasso lasso_create_contact '{"first_name":"example_first_name","last_name":"example_last_name","email":"example_email","phone":"example_phone","project_id":"example_project_id","source":"example_source","notes":"example_notes"}' --json

lasso.lasso_list_deals

List deals (sales) in Lasso CRM. Optionally filter by project ID or status. Supports pagination.

Read read
Parameters
project_id, status, limit, page
Generic call
kosmo integrations:call lasso.lasso_list_deals '{"project_id":"example_project_id","status":"example_status","limit":1,"page":1}' --json
Shortcut
kosmo integrations:lasso lasso_list_deals '{"project_id":"example_project_id","status":"example_status","limit":1,"page":1}' --json

lasso.lasso_get_deal

Get full details for a single deal (sale) in Lasso CRM, including pricing, unit details, and associated contacts.

Read read
Parameters
id
Generic call
kosmo integrations:call lasso.lasso_get_deal '{"id":"example_id"}' --json
Shortcut
kosmo integrations:lasso lasso_get_deal '{"id":"example_id"}' --json

lasso.lasso_list_inventory

List available inventory (units/lots) in Lasso CRM. Optionally filter by project ID or status. Supports pagination.

Read read
Parameters
project_id, status, limit, page
Generic call
kosmo integrations:call lasso.lasso_list_inventory '{"project_id":"example_project_id","status":"example_status","limit":1,"page":1}' --json
Shortcut
kosmo integrations:lasso lasso_list_inventory '{"project_id":"example_project_id","status":"example_status","limit":1,"page":1}' --json

lasso.lasso_get_current_user

Get the profile of the currently authenticated Lasso CRM user — name, email, organization, and other account details.

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

Function Schemas

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

lasso.lasso_list_contacts 3 parameters
Schema command
kosmo integrations:schema lasso.lasso_list_contacts --json
ParameterTypeRequiredDescription
project_id string no Filter contacts by project ID.
limit integer no Maximum number of contacts to return (default: 25).
page integer no Page number for pagination.
lasso.lasso_get_contact 1 parameters
Schema command
kosmo integrations:schema lasso.lasso_get_contact --json
ParameterTypeRequiredDescription
id string yes The contact ID.
lasso.lasso_create_contact 7 parameters
Schema command
kosmo integrations:schema lasso.lasso_create_contact --json
ParameterTypeRequiredDescription
first_name string no Contact first name.
last_name string no Contact last name.
email string no Primary email address.
phone string no Primary phone number.
project_id string no Project ID to associate the contact with.
source string no Lead source (e.g., "Website", "Referral").
notes string no Notes about the contact.
lasso.lasso_list_deals 4 parameters
Schema command
kosmo integrations:schema lasso.lasso_list_deals --json
ParameterTypeRequiredDescription
project_id string no Filter deals by project ID.
status string no Filter by deal status.
limit integer no Maximum number of deals to return (default: 25).
page integer no Page number for pagination.
lasso.lasso_get_deal 1 parameters
Schema command
kosmo integrations:schema lasso.lasso_get_deal --json
ParameterTypeRequiredDescription
id string yes The deal ID.
lasso.lasso_list_inventory 4 parameters
Schema command
kosmo integrations:schema lasso.lasso_list_inventory --json
ParameterTypeRequiredDescription
project_id string no Filter inventory by project ID.
status string no Filter by inventory status (e.g., "Available", "Sold", "Reserved").
limit integer no Maximum number of inventory items to return (default: 25).
page integer no Page number for pagination.
lasso.lasso_get_current_user 0 parameters
Schema command
kosmo integrations:schema lasso.lasso_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.