For any API when we pass JWT Token, getting invalid sdk credentials 4002 error

Hi Team,

We are adding the API scope for Intent and Entity Detection API. After that publishing the Bot and generating jwt token from https://jwt.io/

We are getting Invalid SDK credentials response.
Please Note, we are calling this API: https://bots.kore.ai/api/v1.1/rest/bot//findIntent?fetchConfiguredTasks=false

Is there any changes in the API? Webhook is working fine. There also we are passing jwt token. Issue is only for Intent and Entity Detection API. Can you help us here to resolve the issue?

Hello @praful_dhone,

Please use the API : https://bots.kore.ai/api/v1.1/rest/streams/{botID}/findIntent?fetchConfiguredTasks=false

This is the working format. We will update the documentation accordingly.

I also experienced this issue, and I was invoking /api/v1.1/rest/streams/{botID}/findIntent?fetchConfiguredTasks=false, configured an application in menu ‘Manage Apps’, added API Scope for the App, enabled JTI and JWE, generated JWT under https://developer.kore.ai/tools/jwt/, however it gave error 4002:
{
“errors”: [
{
“msg”: “Invalid SDK credentials”,
“code”: 4002
}
]
}

One thing I saw, in https://developer.kore.ai/docs/bots/api-guide/apis/ it said ‘the API Scopes need to be Published. [Follow the Publish] procedure ensuring that the API Scopes are selected from the API Extensions option.’, I dont see API Scopes in my publish screen, see attached.publish

can you please suggest ?

Thanks