Use OAuth2 authentication when you want to generate a temporary Bearer token before calling DQE APIs.
The OAuth2 flow uses your licence code, client secret and requested scope to return an access token with a limited validity period.
OAuth2 authentication flow
- Choose the DQE API scope you want to access.
- Request an OAuth2 token using either the GET or POST method.
- Read the token returned in the JSON response.
- Use the token as a Bearer token when calling the relevant DQE API.
Related OAuth2 documentation
- OAuth2 POST request
- OAuth2 GET request
- OAuth2 response format and errors
- OAuth2 Swagger documentation
Note: You can also include an API key directly in API calls when OAuth2 is not required for your integration.
Related to