Read

POST {{baseUrl}}/crm/v4/associations/:fromObjectType/:toObjectType/batch/read

Batch read associations for objects to specific object type. The 'after' field in a returned paging object can be added alongside the 'id' to retrieve the next page of associations from that objectId. The 'link' field is deprecated and should be ignored.

Request Body

{"inputs"=>[{"id"=>"<string>", "after"=>"<string>"}, {"id"=>"<string>", "after"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;completedAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;results&quot;:[{&quot;from&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;},&quot;to&quot;:[{&quot;associationTypes&quot;:[{&quot;category&quot;:&quot;USER_DEFINED&quot;,&quot;typeId&quot;:&quot;\u003cinteger\u003e&quot;,&quot;label&quot;:&quot;\u003cstring\u003e&quot;},{&quot;category&quot;:&quot;USER_DEFINED&quot;,&quot;typeId&quot;:&quot;\u003cinteger\u003e&quot;,&quot;label&quot;:&quot;\u003cstring\u003e&quot;}],&quot;toObjectId&quot;:&quot;\u003cinteger\u003e&quot;},{&quot;associationTypes&quot;:[{&quot;category&quot;:&quot;INTEGRATOR_DEFINED&quot;,&quot;typeId&quot;:&quot;\u003cinteger\u003e&quot;,&quot;label&quot;:&quot;\u003cstring\u003e&quot;},{&quot;category&quot;:&quot;USER_DEFINED&quot;,&quot;typeId&quot;:&quot;\u003cinteger\u003e&quot;,&quot;label&quot;:&quot;\u003cstring\u003e&quot;}],&quot;toObjectId&quot;:&quot;\u003cinteger\u003e&quot;}],&quot;paging&quot;:{&quot;next&quot;:{&quot;after&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;},&quot;prev&quot;:{&quot;before&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;}}},{&quot;from&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;},&quot;to&quot;:[{&quot;associationTypes&quot;:[{&quot;category&quot;:&quot;USER_DEFINED&quot;,&quot;typeId&quot;:&quot;\u003cinteger\u003e&quot;,&quot;label&quot;:&quot;\u003cstring\u003e&quot;},{&quot;category&quot;:&quot;HUBSPOT_DEFINED&quot;,&quot;typeId&quot;:&quot;\u003cinteger\u003e&quot;,&quot;label&quot;:&quot;\u003cstring\u003e&quot;}],&quot;toObjectId&quot;:&quot;\u003cinteger\u003e&quot;},{&quot;associationTypes&quot;:[{&quot;category&quot;:&quot;INTEGRATOR_DEFINED&quot;,&quot;typeId&quot;:&quot;\u003cinteger\u003e&quot;,&quot;label&quot;:&quot;\u003cstring\u003e&quot;},{&quot;category&quot;:&quot;USER_DEFINED&quot;,&quot;typeId&quot;:&quot;\u003cinteger\u003e&quot;,&quot;label&quot;:&quot;\u003cstring\u003e&quot;}],&quot;toObjectId&quot;:&quot;\u003cinteger\u003e&quot;}],&quot;paging&quot;:{&quot;next&quot;:{&quot;after&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;},&quot;prev&quot;:{&quot;before&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;}}}],&quot;startedAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;status&quot;:&quot;CANCELED&quot;,&quot;requestedAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;links&quot;:{&quot;sita&quot;:&quot;\u003cstring\u003e&quot;}}