Skip to content
English
  • There are no suggestions because the search field is empty.

Working with Employees through the API

This article provides instructions for integrating with the Builder Prime Employees API endpoint. This endpoint allows you to retrieve a single employee record or a list of employee records from your Builder Prime account.

 

API Access and Security

All requests to the Employees API require a secret key. This key must be created in your Builder Prime app with the appropriate scope for the action you want to perform.

  • Security Header: The secret key must be included in the request headers with the key x-api-key.

  • Required API Key Scope: employees.read is required for both retrieving a single employee and listing employees.


 

API Base URL

The base URL for the Employees endpoint depends on the action you're performing, and you must replace <builder-prime-subdomain> with your specific customer subdomain.

Action HTTP Method Endpoint URL
Retrieve a Single Employee GET https://<builder-prime-subdomain>.builderprime.com/api/employees/v1/<employeeId>
List Employees GET https://<builder-prime-subdomain>.builderprime.com/api/employees/v1

Retrieving a Single Employee Record

To get the details of a specific employee, you must include the employee's internal ID in the request path.

Requirements

  • HTTP Method: GET

  • URL: Must include the internal <employeeId> in the path.

Important Note

If the <employeeId> is not specified in the path, the API will attempt to retrieve a list of employees instead.

Example API Call

Request

GET https://<builder-prime-subdomain>.builderprime.com/api/employees/v1/1000356

Header: x-api-key: [Your Secret Key]

Successful Response (Excerpt)

JSON
{
"success": true,
"data": {
"id": 1000356,
"firstName": "Bob",
"lastName": "Damob",
"email": "bob@example.com",
"isProjectManager": false,
"isCurrentEmployee": true,
"timezone": "America/New York"
// ... more employee properties
}
}

Listing Multiple Employee Records

To retrieve a list of employees, use a GET request to the base employees URL. You can optionally add parameters to manage the results.

Requirements

  • HTTP Method: GET

  • URL: https://<builder-prime-subdomain>.builderprime.com/api/employees/v1

Available Query Parameters

Parameter Type Description
<limit> Number Limits the number of records returned. The maximum value is 100.
<page> Number Used with the limit parameter for pagination. Specifies which page of results should be returned, starting with page 0.

Example API Call (Pagination)

This example requests up to 100 employee records, starting with page 0.

Request

GET https://<builder-prime-subdomain>.builderprime.com/api/employees/v1?limit=100&page=0

Header: x-api-key: [Your Secret Key]

Successful Response (Excerpt)

JSON
{
"success": true,
"data": [
{
"id": 1000356,
"firstName": "Bob",
"lastName": "Damob",
"isSalesPerson": false
// ... more employee properties
}
]
}

Best Practices

  • Test your requests using a tool like Postman before deploying.

  • Keep your secret key private. Do not share it or expose it in frontend code.


Need Help?

If you run into issues or need clarification, contact your Builder Prime support rep via email at support@builderprime.com.