Skip to content

Reference

CLI

Install capsure and call the Platform API from the command line. The token is the same one Administration issues.

capsure is a client of the Platform API. It stores a token and calls /api/v1/x. It does not take a raw path, and it cannot do something the API refuses.

Examples use Harbor Lane Capital. The API address is the host your firm was given.

Download the build for the machine that will run it.

SystemFile
Windowscapsure-win-x64.exe
Linuxcapsure-linux-x64
macOS (Apple silicon)capsure-osx-arm64

On Linux and macOS, mark the file executable before the first run. The command is capsure.

A machine with the .NET SDK can install the tool package instead. Save the file in an empty folder, then from that folder:

dotnet tool install --global --add-source . Capsure.Cli

Issue a token in Administration → API tokens. Scopes and what they allow are on Authentication.

capsure login --api https://api.capsuresoftware.com --token cap_...
capsure whoami

whoami prints the person and the firm. It does not print the secret.

The token is stored in credentials.json under .capsure in the home directory. CAPSURE_TOKEN overrides the stored token for one process. CAPSURE_API overrides the stored address.

An API token stays on the firm it was issued for. A session from login --api <url> --id-token <jwt> can list firms with capsure tenants and open another firm this email already belongs to with capsure switch <tenant-id>.

capsure logout deletes the stored file.

Each command is one route. The pages linked here describe the body and the errors. -o <file> writes the JSON response to a file. A body is a JSON file.

CommandPage
capsure catalogCatalog
capsure openapiThe route list. Field schemas stay on the catalog
capsure search <text>Search
capsure records list CompanyRecords
capsure funds listFunds
capsure funds push fund.jsonFunds
capsure commitments push <fund-id> --file commitment.jsonFunds
capsure portfolio companiesPortfolio
capsure portfolio value --fund <id>Portfolio
capsure changesChanges
capsure records create Company --file company.jsonRecords
capsure fields create --file field.jsonCustom fields
capsure views list companiesSaved views
capsure automations push flow.jsonAutomations. This saves a draft
capsure automations publish <id>Automations. A high-impact tree stays a draft
capsure forms push form.jsonForms
capsure forms version <id> --file version.jsonForms
capsure agents push agent.jsonAgents
capsure agents get <id>Agents
capsure quick-actions push action.jsonQuick actions
capsure processes push process.jsonProcesses
capsure strategies push strategy.jsonStrategies
capsure sources push source.jsonDeal sources
capsure attribute-sets push set.jsonAttribute sets
capsure reports push report.jsonReports
capsure tasks listWorkspace
capsure users listWorkspace
capsure firms listWorkspace
capsure taxonomy list sectorsProduct screens
capsure portal accessProduct screens
capsure products list <company-id>Product screens
capsure company-investors list <company-id>Product screens
capsure esg-requests list --period <id>Product screens
capsure campaigns listProduct screens
capsure meetings listProduct screens
capsure audit-log listProduct screens
capsure projection-templates push template.jsonProduct screens
capsure usageProduct screens
capsure addresses list <company-id>What a person fills in
capsure deals terms <deal-id>What a person fills in
capsure deals next-ups <deal-id>What a person fills in
capsure deals decision <deal-id>What a person fills in
capsure documents upload <file> --entity Company --id <entity-id>What a person fills in
capsure report-templates push template.jsonReports
capsure connectors push connector.jsonConnectors. This saves an inactive draft
capsure imports list --project <id>Imports
capsure imports push import.jsonImports

capsure --help lists every command, including get, update, activate, and delete.

A failed call prints the HTTP status, the error code, and the detail. A missing scope includes the scope name. The codes are on Errors.