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 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.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
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.
kosmo integrations:call lasso.lasso_list_contacts '{"project_id":"example_project_id","limit":1,"page":1}' --json 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.
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 - Parameters
- project_id, limit, page
kosmo integrations:call lasso.lasso_list_contacts '{"project_id":"example_project_id","limit":1,"page":1}' --json 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 - Parameters
- id
kosmo integrations:call lasso.lasso_get_contact '{"id":"example_id"}' --json 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 - Parameters
- first_name, last_name, email, phone, project_id, source, notes
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 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 - Parameters
- project_id, status, limit, page
kosmo integrations:call lasso.lasso_list_deals '{"project_id":"example_project_id","status":"example_status","limit":1,"page":1}' --json 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 - Parameters
- id
kosmo integrations:call lasso.lasso_get_deal '{"id":"example_id"}' --json 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 - Parameters
- project_id, status, limit, page
kosmo integrations:call lasso.lasso_list_inventory '{"project_id":"example_project_id","status":"example_status","limit":1,"page":1}' --json 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 - Parameters
- none
kosmo integrations:call lasso.lasso_get_current_user '{}' --json 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
kosmo integrations:schema lasso.lasso_list_contacts --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema lasso.lasso_get_contact --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The contact ID. |
lasso.lasso_create_contact 7 parameters
kosmo integrations:schema lasso.lasso_create_contact --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema lasso.lasso_list_deals --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema lasso.lasso_get_deal --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The deal ID. |
lasso.lasso_list_inventory 4 parameters
kosmo integrations:schema lasso.lasso_list_inventory --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema lasso.lasso_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.