Association Created
Overview
This webhook response is triggered when a new association is created between objects, such as linking contacts to custom objects. Currently, only contact-to-contact , contact to custom object and custom object to custom object associations are supported. There are plans to expand support for additional associations in the future.
For example, in a real estate system, a company may want to associate potential buyers with specific properties. In this case:
- The first object (buyer) would be a custom object representing the interested person.
- The second object (property) would be a custom object representing the real estate listing.
- The association label might be "Interested Buyer," indicating that the buyer has shown interest in the property.
- The system could store multiple buyers per property (many-to-many relationship), allowing for flexible tracking of interest.
Schema
The webhook response follows the JSON schema below:
id
stringassociationType
stringfirstObjectKey
stringfirstObjectLabel
stringsecondObjectKey
stringsecondObjectLabel
stringkey
stringlocationId
stringField Descriptions
id
id- Type:
string - Unique identifier for the association.
associationType
associationType- Type:
string - Specifies the type of association (e.g.,
USER_DEFINEDorSYSTEM_DEFINED).
firstObjectKey
firstObjectKey- Type:
string - Key representing the first object in the association.
firstObjectLabel
firstObjectLabel- Type:
string - Readable label for the first object.
secondObjectKey
secondObjectKey- Type:
string - Key representing the second object in the association.
secondObjectLabel
secondObjectLabel- Type:
string - Readable label for the second object.
key
key- Type:
string - Unique key assigned to the association.
locationId
locationId- Type:
string - Identifies the location associated with the created association.
Example Response
{"id": "67ade73d1119d2ac7ad0c475","associationType": "USER_DEFINED","firstObjectKey": "custom_objects.real_estate_buyer","firstObjectLabel": "Interested Buyer","secondObjectKey": "custom_objects.property","secondObjectLabel": "Property","key": "buyer_property_interest","locationId": "eHy2cOSZxMQzQ6Yyvl8P"}
Additional Notes
- Ensure that your webhook listener is capable of processing
POSTrequests. - The
firstObjectKeyandsecondObjectKeyhelp define relationships between entities. - The
traceIdis useful for debugging and logging purposes.