curl --request POST \
--url https://api.buildpass.global/oauth/token \
--header 'Content-Type: application/json' \
--data '{
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"scope": "read:builders read:subcontractors read:prequalifications read:insurances",
"audience": "https://api.buildpass.global",
"grant_type": "client_credentials"
}'
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600,
"expires": 3600,
"scope": "read:builders read:subcontractors"
}
Generate an OAuth token to access the BuildPass API
curl --request POST \
--url https://api.buildpass.global/oauth/token \
--header 'Content-Type: application/json' \
--data '{
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"scope": "read:builders read:subcontractors read:prequalifications read:insurances",
"audience": "https://api.buildpass.global",
"grant_type": "client_credentials"
}'
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600,
"expires": 3600,
"scope": "read:builders read:subcontractors"
}
Client credentials to obtain OAuth token
The body is of type object
.
Token response
The response is of type object
.