BoldSales

API Documentation

Get a role

get/api/v1/roles/{id}

Retrieves detailed information for a role by its unique identifier, including the number of assigned users and the reporting hierarchy.

Code snippet

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

Path parameters

idintegerRequiredUnique identifier of the role to retrieve. Must be a valid role ID that exists in the organization.

Example response

200 Success

{
  "data": {
    "id": 648,
    "name": "Business Intelligence Analyst",
    "description": "Develops dashboards and reports to support strategic decision-making",
    "assignedUserCount": 10,
    "reportingRole": {
      "id": 628,
      "name": "Software developer"
    },
    "createdOn": "2025-09-01T10:03:00.829848Z",
    "creator": {
      "id": 209,
      "name": "Emily Parker",
      "status": "Active"
    },
    "modifiedOn": "2025-09-01T10:10:44.553475Z",
    "modifier": {
      "id": 209,
      "name": "Michael Chen",
      "status": "Active"
    }
  }
}