Get associations for CRM object

GET crm-associations/v1/associations/:objectId/HUBSPOT_DEFINED/:definitionId

Method Details

HTTP Methods:

GET

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing

Get the IDs of objects associated with the given object, based on the specified association type. See the table below for a list of association types on their IDs.

For example, to get the ticket IDs for all tickets associated with a specific contact record, the objectId would be the contact vid, and the definitionId would be 15.

To get all companies associated with a specific ticket record, the objectId would be the objectId of the ticket, and the definitionId would be 26.

Required Parameters How to use Description
OAuth Access Token or API Key Authorization: Bearer {token} header or hapikey={key} query parameter. Used to authenticate the request. Please see this page for more details about authentication.
Object ID /:objectId
Used in the request URL
The ID of the object that you want to get the associations for.
Association type /:definitionId
Used in the request URL
The ID of the type of associations you want. See the table the table on the overview page for a list of these IDs.

Optional Parameters How to use Description
Limit &limit=
Used in the request URL
The number of associations to return in a single response. Defaults to 10 if the parameter is not included, supports a maximum value of 100.
Offset &offset=
Used in the request URL
Used to page through the results. Each response will include an offset, which can be used to get the next set of results in the next request.