Effective from v1.69, an access token must be obtained by providing "AIModule_External_App" client credentials to be utilized for sending inference requests for generative question answering.
Token Endpoint:
URL: {{identityBaseUrl}}/connect/token
HTTP Method: POST
Content-Type: application/x-www-form-urlencoded
Here's an example of a request:
curl --location '{{IdentityBaseUrl}}/connect/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=AIModule_SestekAI_App' \
--data-urlencode 'client_secret="enter client secret"' \
--data-urlencode 'grant_type=client_credentials'
Expected Response:
{
"access_token": "<accessToken>",
"expires_in": 86400, // valid for 1 day
"token_type": "Bearer",
"scope": "AIModule"
}
