Generate tokens for organization applications¶
After you authorize applications to API resources and assign users to the appropriate roles, you can generate tokens to access the protected resources. Organization applications support the following OAuth 2.0 grant types to generate tokens and issue scopes.
Password grant¶
Use the following steps to use the user's credentials to get an access token.
Note
If you need scopes in the response, add the scope parameter to the token request with the required scopes.
Client credentials grant¶
Use the following steps to use the client credentials to get an access token.
Note
If you need scopes in the response, add the scope parameter to the token request with the required scopes.
Introspect tokens¶
You can use the token introspection endpoint to validate access tokens issued for organization applications. The following example demonstrates how to introspect an access token.
{
"aut": "APPLICATION_USER",
"aud": "fhErtAT2YF_M0Ek3AAYHLI8L25oa",
"nbf": 1739253383,
"org_id": "12d1c4d2-2bb1-443b-aa4a-68f98a40d7c6",
"active": true,
"token_type": "Bearer",
"exp": 1739256983,
"iat": 1739253383,
"client_id": "fhErtAT2YF_M0Ek3AAYHLI8L25oa",
"username": "Charlie@12d1c4d2-2bb1-443b-aa4a-68f98a40d7c6"
}
Revoke tokens¶
The following example demonstrates how to revoke tokens issued for organization applications.