OAuth2 token endpoint supporting client_credentials and refresh_token grant types.
client_credentials grant type (default):
The client_id and client_secret represent the API key and secret generated from the
Unomiq Dashboard.
The audience parameter specifies the target API for the token. Defaults to
https://api.unomiq.com (Management and Economic Engine APIs).
Use https://gateway-api.unomiq.com for OTel Gateway access.
refresh_token grant type:
Exchange a refresh token for a new access token. Requires client_id and refresh_token.
If refresh token rotation is enabled, a new refresh token will also be returned.
Note: For automatic OpenTelemetry instrumentation, use the OTel OAuth2 Client Credentials Authenticator Extension which handles token retrieval and refresh automatically.