API

API Endpoints

API Endpoints

Authorize

The authorize endpoint supports three response_types: code, id_token, token. If code is present in your parameters, JWTs are not needed for authorization.

get

https://id.trimble.com/oauth/authorize

Token

The token endpoint is use to retrieve an access token.

post

https://id.trimble.com/oauth/token

UserInfo

get

https://id.trimble.com/oauth/userinfo

Logout

get

https://id.trimble.com/oauth/logout

Revoke

The token revocation endpoint is used to revoke, or invalidate, a specific refresh token.

post

https://id.trimble.com/oauth/revoke

Headers

HeaderDescription
AuthorizationBasic (base64 encoded Client id
secret)

Parameters

ParameterDescription
tokenRefresh token to be revoked
token_type_hintRefresh token

Example

Terminal window
# Your application credentials
client_id="your client id"
client_secret="your client secret"
token="token to be revoked"
hint="token hint"
encoded_credentials=$(echo -n "$client_id:$client_secret" | base64)
curl --location --request POST "https://id.trimble.com/oauth/revoke" \
--header "Authorization: Basic $encoded_credentials" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "token=$token" \
--data-urlencode "token_type_hint=$hint"