Bulk Contact API does not return full accounts (linkMultiple) information

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arantxa.ag
    Junior Member
    • Feb 2026
    • 2

    #1

    Bulk Contact API does not return full accounts (linkMultiple) information

    Hello,

    I am currently working on the integration of the Contact endpoint and I have a question regarding the accounts field, which is defined as a linkMultiple with the following attributes:
    • accountsIds (string[])
    • accountsNames (Record<string, string>)
    • accountsColumns (Record<string, Record<string, string>>)

    When I perform a bulk GET request on:
    {siteUrl}/api/v1/Contact
    the response only includes the primary account name, but it does not return the secondary or additional linked accounts.

    To retrieve the full information, I need to make an additional request for each contact:
    {siteUrl}/api/v1/Contact/{id}/accounts
    In my case, I have around 5,000 contacts, so this means making 5,000 additional API calls just to retrieve the linked accounts information, which is quite expensive from a performance and rate-limit perspective. My questions are:
    1. Is there a way to include the full accounts (linkMultiple) data directly in the bulk Contact endpoint (/api/v1/Contact)?
    2. Is there any query parameter, expand option, or configuration that allows returning accountsIds, accountsNames, or accountsColumns in the bulk response?
    3. If not, is there any plan or recommended approach to avoid making one request per contact to retrieve linked accounts?

    Any guidance or best practice for this scenario would be greatly appreciated.

    Thank you in advance.

    Click image for larger version

Name:	image.png
Views:	0
Size:	136.0 KB
ID:	124612
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9640

    #2
    You need to pass the needed columns in the attributeSelect parameter.

    Code:
    accountsIds,accountsNames,accountsColumns

    Comment

    Working...