Get relationship labels
Relationship labels define the specific nature and roles of the association between records across connected modules (for example, Partner, Client, or Vendor).
Get relationship labels
get/api/v1/relationships/{id}/labelsRetrieves the list of relationship labels associated with the specified relationship identifier. You can optionally filter the result by providing search text that matches the name of the primary record label or linked record label. Each relationship label includes its unique identifier, description, and the basic details of both the primary record label and linked record label.
Code snippet
curl -X 'GET' \
'https://{yourdomain}/api/v1/relationships/{id}/labels' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}'
Path parameters
| idintegerRequired | The unique identifier of the relationship whose associated labels need to be retrieved. |
Query parameters
| searchTextstring | Filter relationship labels by the primary record label or linked record label name that contains the search text. When omitted, all relationship labels associated with the specified relationship are returned. |
Example response
200 Success
{
"data": [
{
"id": 1,
"description": "Primary relationship",
"primaryRecordLabel": {
"id": 10,
"name": "Partner",
"labelLimit": 5
},
"linkedRecordLabel": {
"id": 11,
"name": "Client",
"labelLimit": 10
}
},
{
"id": 3,
"description": "Related account",
"primaryRecordLabel": {
"id": 12,
"name": "Related",
"labelLimit": 5
},
"linkedRecordLabel": {
"id": 13,
"name": "Reference",
"labelLimit": 10
}
}
]
}