Question: When making an API call to a standard object, what query parameter must you append to get connected contact records?
- ?properties=contacts
- ?archived=TRUE
- ?associations=contacts
- ?after=contacts
Explanation
The query parameter requests associated records when retrieving a standard CRM object. HubSpot uses associations to connect records across object types, such as companies and contacts. Adding the association parameter tells the API to include linked contact record IDs in the response. This is different from requesting object properties because associations represent relationships, not field values. The parameter must match the target associated object type.
Why the other options are incorrect
?properties This requests selected property values, not connected records.
?archived This filters archived records and does not return associations.
?after This is used for pagination and does not request connected contacts.
Source for verification
https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4
The answer(s) to the question is highlighted in the BOLD text above. You can also find more questions and answers related to the exams on the "Integrating With HubSpot I: Foundations" page.
