BoldSales

API Documentation

Relationships

Relationships define associations between different modules in BoldSales (such as Contacts, Companies, and Pipelines), enabling cross-module data linking. Each relationship connects a primary module to a linked module and uses relationship labels to define the specific nature and roles of the association.

Get all relationships

get/api/v1/relationships

Retrieves the list of relationships configured between modules. You can optionally filter the relationships by specifying a primary module identifier. Each relationship record includes its unique identifier, the primary module details, and the linked module details.

Code snippet

curl -X 'GET' \
  'https://{yourdomain}/api/v1/relationships' \
  -H 'accept: text/plain; x-api-version=1.0' \
  -H 'x-api-key: {your API key}'

Query parameters

moduleIdintegerThe unique identifier of the primary module used to filter relationship records. When omitted, all configured relationships are returned.

Example response

200 Success

{
  "data": [
    {
      "id": 1,
      "primaryModule": {
        "id": 1,
        "name": "Pipeline",
        "singularName": "Pipeline",
        "pluralName": "Pipelines"
      },
      "linkedModule": {
        "id": 2,
        "name": "Contact",
        "singularName": "Contact",
        "pluralName": "Contacts"
      }
    },
    {
      "id": 2,
      "primaryModule": {
        "id": 1,
        "name": "Pipeline",
        "singularName": "Pipeline",
        "pluralName": "Pipelines"
      },
      "linkedModule": {
        "id": 3,
        "name": "Company",
        "singularName": "Company",
        "pluralName": "Companies"
      }
    }
  ]
}