BoldSales

API Documentation

Users

Users represent the individuals in your organization with application access, such as sales professionals, administrators, or customer service representatives.

Get all users

get/api/v1/users

Retrieves a paginated list of users with details such as personal information, status, role, reporting hierarchy, and creation metadata. Supports pagination, filtering, and sorting with query parameters.

Code snippet

curl -X 'GET' \
  'https://{yourdomain}/api/v1/users?page=1&pageSize=10&orderBy=createdOn desc' \
  -H 'accept: text/plain; x-api-version=1.0' \
  -H 'x-api-key: {your API key}'

Query parameters

pageintegerPage number for pagination. Starts from 1. Default is 1 if not specified.
pageSizeintegerNumber of records per page. Default is 10 if not specified. Maximum allowed is 100.
includeTotalCountbooleanDetermines whether the response includes the total record count. The default is false.
orderBystringSpecifies the sorting criteria for the returned results. The value "createdOn desc" means records will be ordered by the created on date in descending order (most recent first).

Example response

200 Success

{
  "data": [
    {
      "id": 1234,
      "firstName": "John",
      "lastName": "Smith",
      "displayName": "John Smith",
      "emailAddress": "[email protected]",
      "reportsTo": {
        "id": 101,
        "name": "Sarah Johnson"
      },
      "status": {
        "id": 1,
        "name": "Active"
      },
      "timezone": {
        "id": 15,
        "name": "(UTC-04:00) New York, Washington DC, Atlanta, Miami"
      },
      "role": {
        "id": 2,
        "name": "Sales Manager"
      },
      "permissionSet": {
        "id": 1,
        "name": "Admin"
      },
      "creator": {
        "id": 1001,
        "name": "Emily Parker"
      },
      "createdOn": "2024-03-15T10:22:35.000Z",
      "modifier": {
        "id": 1002,
        "name": "Michael Chen"
      },
      "modifiedOn": "2024-06-12T08:45:10.000Z"
    }
  ],
  "pagination": {
    "page": 1,
    "pageSize": 1,
    "totalRecords": 150,
    "totalPages": 8
  }
}