To interact with the BuildPass API, you need to authenticate using OAuth 2.0.
client_id
client_secret
/oauth/token
endpoint with your client credentials. The request body should include the following parameters:
client_id
: Your client ID.client_secret
: Your client secret.scope
: The scopes you want to request access to. Available scopes include read:builders
, read:subcontractors
, read:prequalifications
, read:insurances
, read:contacts
, read:swms
, read:timesheets
.audience
: The audience for the token. This should be set to https://api.buildpass.global
.grant_type
: The grant type you want to use. This should be set to client_credentials
.application/x-www-form-urlencoded
content type:
invalid_request
: Missing or malformed request parametersinvalid_client
: Invalid client credentialsinvalid_scope
: Requested scopes are invalid for the audienceunsupported_grant_type
: Grant type not supported