Recent updates
January 15, 2025 - Subcontractor endpoints improvements
Enhanced performance and reliability for subcontractor status data:-
GET /subcontractors - List subcontractors
- Subcontractor statuses are now properly filtered based on the
projectId
query parameter when provided - Fixed an issue that caused duplicate statuses to appear in responses
- Subcontractor statuses are now properly filtered based on the
-
GET /subcontractors/<id> - Get subcontractor
- Added support for the
projectId
query parameter to retrieve project-specific status information
- Added support for the
June 25, 2025 - OAuth 2.0 authentication enhancements
We’ve enhanced our authentication system to more effectively comply with the OAuth 2.0 standards:New features
- HTTP Basic Authentication: You can now authenticate using HTTP Basic Authentication in addition to the existing request body method
- Pass client credentials via the
Authorization: Basic <credentials>
header - Credentials should be Base64-encoded in the format
client_id:client_secret
- Request body credentials take precedence when both methods are used
- Pass client credentials via the
Changes
- Standardized Token Expiration: The
expires
field has been renamed toexpires_in
. The value of this field has not changed. - Enhanced Security: Improved request validation and error handling.
Migration guide
You must ensure your code properly handles theexpires_in
field. This can be used to determine when a new token is necessary. The expires
field will be maintained until the 25th of September, 2025.
May 26th, 2025 - New API endpoints
Timesheets API
We’ve added comprehensive timesheet management endpoints to help you integrate with BuildPass timesheet data:-
GET /timesheets - Retrieve all timesheets for a builder with filtering options
- Filter by project, status, and date range
- Supports pagination with offset/limit
- Returns timesheet details including hours, notes, time types, and cost codes
-
GET /timesheets/<timesheetId> - Get a specific timesheet by ID
- Includes associated profile and project information
- Full timesheet details with approval status
-
GET /timesheets/time-types - Get configured time types for a builder
- Returns available time categories (e.g., “Regular Hours”, “Overtime”, “Annual Leave”)
-
GET /timesheets/cost-codes - Get configured cost codes for a builder
- Returns project cost codes for timesheet categorization
SWMS (Safe Work Method Statements) API
New endpoints for accessing SWMS documents:-
GET /subcontractors/<id>/swms - Get all SWMS documents for a subcontractor
- Filter by project ID and review status
- Supports pagination
- Returns document metadata and review status
-
GET /subcontractors/<id>/swms/<swmsDocId> - Get a specific SWMS document
- Includes document URL for download
- Shows current review status and approval state
read:timesheets
and read:swms
) and follow the same authentication patterns as other API endpoints.