Loading...
Loading...
Find a specific CRM record by ID, email, domain, or name fragment, and traverse associations for the full account picture.
npx skill4agent add hubspot/agent-cli-skills crm-lookuphubspot <command> --helpbulk-operations/SKILL.mdhubspot properties list --type <type>--properties| Object | |
|---|---|
| contacts | |
| companies | |
| deals | |
| tickets | |
hs_analytics_*hs_analytics_sourcehs_analytics_source_data_1_2hs_analytics_first_touch_converting_campaignhs_analytics_last_touch_converting_campaignhubspot properties list --type contacts | grep hs_analytics_hubspot objects get --type contacts 12345 67890 23456 --properties email,firstname,lastname,company,phone,lifecyclestageemaildomain--filterhubspot objects search --type contacts --filter "email=jane@acme.com" \
--properties email,firstname,lastname,company,lifecyclestage,hubspot_owner_id
hubspot objects search --type companies --filter "domain=acme.com" \
--properties name,domain,industry,annualrevenue,hubspot_owner_id
# OR — multiple emails in one call
hubspot objects search --type contacts \
--filter "email=alice@acme.com" --filter "email=bob@acme.com" --properties email,firstname~dealname~acmejqhubspot objects search --type deals --filter "dealname~acme" --properties dealname,amount,dealstage \
| jq -c 'select(.properties.dealname | ascii_downcase | contains("acme corp"))'associations listjq -c '{id}'objects getxargs -I{} hubspot objects get …--fromcontacts:companies:deals:--help# All contacts at a company
hubspot associations list --from companies:67890 --to contacts \
| jq -c '{id}' \
| hubspot objects get --type contacts --properties email,firstname,lastname,jobtitle
# Open deals for a contact (filter client-side; "open" varies by pipeline)
hubspot associations list --from contacts:12345 --to deals | jq -c '{id}' \
| hubspot objects get --type deals --properties dealname,amount,dealstage,hs_is_closed \
| jq -c 'select(.properties.hs_is_closed != "true")'contact_id=12345
hubspot objects get --type contacts $contact_id --properties email,firstname,lastname,company,lifecyclestage
# Associated company (usually one)
hubspot associations list --from contacts:$contact_id --to companies | jq -c '{id}' | head -1 \
| hubspot objects get --type companies --properties name,domain,industry,annualrevenue
# Associated deals
hubspot associations list --from contacts:$contact_id --to deals | jq -c '{id}' \
| hubspot objects get --type deals --properties dealname,amount,dealstage,closedatebulk-operations/SKILL.md~jq--dry-run--confirmbulk-operations/SKILL.md