Facing "Invalid SDK credentials"

Hai,
when I am trying to get users conversation I am facing this issue.
Post url i am using :https://bots.kore.ai/api/public/bot/st-181d4900-94dd-5609-91c6-e40ac10570f3/getMessages?userId=u-b1cf2e4e-0807-5fed-a3dd-57a6d2d834aa&limit=10
any issues in this. how to fix or any reference.

Hi @vithyabarathi3519 ,

Please make sure the API Scopes are defined as shown below.

  • Make sure only App ID / Client ID is passed in order to fetch the JWT token
  • Make sure there are no spaces when the JWT is entered in API Headers.
  • Check the format of the JSON request body.

Below is the Sample Request:

{
“userId”: “u-XXXXXXXXXXXXXXXXXX”,
“skip”: 0,
“limit”: 100,
“dateFrom”: “2019-04-01”,
“dateTo”: “2019-04-01”,
“channelType”: “rcs”,
“sessionId”: [“XXXXXXXXXXXXXXXXX”],
“includeTraceId”: “true”,
“tags”: {
“and”: [
{
“name”: “tagname”,
“values”: [“tagvalue1”, “tagvalue2”],
“type”: “tagtype”
},
{
“name”: “tagname”,
“values”: [“tagvalue1”, “tagvalue2”],
“type”: “tagtype”
}
]
}
}

The above is extracted from POST call under the documentation:
Conversation History API - Kore.ai Documentation Version 2

If you still face any issue, please revert back we will be glad to assist you.

Thank you,
Srujan Madderla
Kore.ai Community Team

Hai @srujan.madderla
these are my steps i have followed
1.API scope

2.Jwt :

3.Postman

at body “channelType”:“rtm” given.
4.params:

Is any mistake i have done? facing this issue.

Hi @vithyabarathi3519 ,

  • Try creating a New API App under Deploy tab
  • Enable all the API scopes
  • Go to postman, recopy the Curl from the documentation and paste it in a new tab of Postman
  • Within the Post API call URL, in the place of:

bot id: You can get this from the API app
created user ID: You can get this from the Bot (while talking to it).
You need to open the bot ->enter the command → cheat who am I.

The user ID is visible. It looks like U-xxxxxxx-xxxxxxx-xxxxxxxxxx

Reference Screenshot.

Thank you,
Srujan Madderla
Kore.ai Community Team