v1

latestOpenAPI 3.1.02026-07-1414757122.7 KB
items

Get related entity items

Returns entity items related to the given entity item. For example, get all deals related to a contact. Example: GET /crm/v1/entities/contacts/14/related/deals

get/crm/v1/entities/{entity}/{itemId}/related/{entity_code}

Response

Successful response

titlestring
ownerinteger
sourcestring

Example response

[
  {
    "title": "Lead example",
    "owner": 1,
    "source": "shop",
    "email": [
      {
        "id": "",
        "type": "main",
        "value": "stark@gmail.com",
        "main": true
      },
      {
        "id": "01gdnpddf5xgzxqvcn4x83mc2s",
        "type": "work",
        "value": "benner@gmail.com",
        "main": false
      }
    ],
    "phone": [
      {
        "id": "01gdnpddf5xgzxqvcn4x83mc2s",
        "type": "WORK",
        "value": "+380123456789",
        "code": "+380"
      }
    ],
    "messengers": [
      {
        "id": "01gdnpddf5xgzxqvcn4x83bn2s",
        "type": "facebook",
        "link": "https://www.facebook.com"
      }
    ]
  }
]