Figuring out using API's to interact with the bot

I am trying to use the API to connect to my bot but receiving “msg”: “Invalid SDK credentials”, “code”: 4002.

I followed the steps to given on below link
→ " Associating API Scopes to a Client App from Settings → Dev tools → API scopes",
→ Saved and published the app
→ Generated JWT token using client ID, client secret following the documentation. API Scopes - Kore ai Docs
→Ran this command and this is the output curl -X GET “https://bots.kore.ai/api/public/roles?roleType=bot^&limit=2” -H “auth: **********************************************************************************************************”
{“errors”:[{“msg”:“Invalid SDK credentials”,“code”:4002}]}

Could anyone assist me with this I think I am following the right steps if not please let me know

Hello Amogh,

Welcome to Kore.ai Community.
The error which you are seeing is related to incorrect JWT token.

Might be there was an issue with the token generation.
Kindly verify if you are using the correct Token and validate once again.

Thank you,
Srujan Madderla
Kore.ai Community Team.

Thanks, will check it