Loading...
Loading...
List, inspect, create, update, and delete HubSpot workflows (v4 flows API) from the CLI.
npx skill4agent add hubspot/agent-cli-skills workflow-automation| File | When to use |
|---|---|
| Body shape for create/update — top-level fields, |
| Minimal valid |
hubspot workflows --helplistgetcreateupdatedeletesearchlist | jqbulk-operations/SKILL.mdhubspot workflows list # JSONL: id, name, isEnabled, type, objectTypeId, revisionId
hubspot workflows list --format table # for human scanning
# Find by name — case-insensitive substring
hubspot workflows list | jq -c 'select(.name | test("Welcome"; "i"))'
# Exact match
hubspot workflows list | jq -c 'select(.name == "MQL Nurture")'--aftermeta.nextbulk-operations/SKILL.mdresources/json-patterns.mdbulk-operationsjqhubspot workflows get 12345678 # one
hubspot workflows get 12345678 87654321 # batch positional
printf '%s\n' 12345678 87654321 | hubspot workflows get # batch stdin
hubspot workflows get 12345678 > workflow.json # save for editingactionsenrollmentCriteriarevisionIdresources/workflow-json-reference.mdhubspot workflows create --file workflow.json --dry-run
hubspot workflows create --file workflow.json
cat workflow.json | hubspot workflows create # stdin also workstypeCONTACT_FLOWPLATFORM_FLOWPLATFORM_FLOWobjectTypeIdresources/workflow-json-reference.mdresources/example-contact-flow.jsongetrevisionIdgettypecreatedAtupdatedAtdataSources--digest <hash> --confirm <flowId># 1. Fetch current state
hubspot workflows get 12345678 > workflow.json
# 2. Edit workflow.json (preserve revisionId, type, and any field you want to keep)
# 3. Dry-run — emits a digest
hubspot workflows update 12345678 --file workflow.json --dry-run
# 4. Apply — confirm value is the flow id
hubspot workflows update 12345678 --file workflow.json \
--digest blast-xxxxxxxx --confirm 12345678actionsenrollmentCriteriaget# 1. Dry-run — emits a digest + the confirm hint
hubspot workflows delete 12345678 --dry-run
# 2. Re-run with digest + confirm. Confirm value is the workflow's NAME, not its id.
hubspot workflows delete 12345678 --digest blast-xxxxxxxx --confirm "New lead routing"apply_command_hinthubspot history --since 1hbulk-operations/SKILL.mdhubspot workflows searchlist | jqdataSources