sales
Salesloft CLI for Shell Scripts
Use the Salesloft CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.
6 functions 5 read 1 write Bearer token auth
Salesloft CLI for Shell Scripts
Call integration functions from shell scripts with stable JSON input and output.
Use shell scripts for small local automations that need one or more integration calls. The Salesloft CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Salesloft CLI for Shell Scripts
kosmokrator integrations:configure salesloft --set access_token="$SALESLOFT_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call salesloft.salesloft_list_sequences '{"limit":1,"page":1,"status":"example_status"}' --json Discovery Before Execution
Agents and scripts can inspect Salesloft docs and schemas before choosing a function.
kosmo integrations:docs salesloft --json
kosmo integrations:docs salesloft.salesloft_list_sequences --json
kosmo integrations:schema salesloft.salesloft_list_sequences --json
kosmo integrations:search "Salesloft" --json
kosmo integrations:list --json Useful Salesloft CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
salesloft.salesloft_list_sequences | Read | limit, page, status | List call sequences from Salesloft. Returns sequences with their IDs, names, statuses, and metadata. Supports pagination and optional status filtering. |
salesloft.salesloft_get_sequence | Read | id | Get detailed information about a specific call sequence in Salesloft by its ID. |
salesloft.salesloft_create_sequence | Write | name, steps, owner_id, status, targets | Create a new call sequence in Salesloft with steps, owner assignment, status, and targets. |
salesloft.salesloft_list_rules | Read | limit, page | List automation rules from Salesloft. Returns rules with their IDs, names, conditions, and actions. |
salesloft.salesloft_get_rule | Read | id | Get detailed information about a specific automation rule in Salesloft by its ID. |
salesloft.salesloft_get_current_user | Read | none | Get the profile of the currently authenticated Salesloft user. Useful for verifying credentials and identifying the connected account. |
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.