maton hubspot associations list
maton hubspot associations list [flags]
List every association of a given target type from a single source record (GET /crm/v4/objects/{from}/{id}/associations/{to}).
–from is a type:id pair like “contacts:12345”; –to is just the target object type (“companies”, “deals”, etc.) since the endpoint returns all matching links, not a single one.
Options
-
--after <string> - Pagination cursor from a previous response
-
--connection <string> - Connection ID to route through (Maton-Connection header)
-
--dry-run - Print the request that would be sent without executing it
-
--from <string> - Source object as type:id (required, e.g. contacts:12345)
-q,--jq <expression>- Filter JSON output using a jq expression
-
--json - Output raw JSON
-L,--limit <int> (default 10)- Max results per page
-
--paginate - Follow next_cursor and concatenate all pages (list commands only)
-t,--template <string>- Format JSON output using a Go template; see "maton help formatting"
-
--to <string> - Target object type (required, e.g. companies)
Options inherited from parent commands
-p,--profile <string>- Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)
Examples
$ maton hubspot associations list --from contacts:12345 --to companies
$ maton hubspot associations list --from deals:99999 --to contacts --paginate --json