I’m trying to use the API to get the conversation history. MAs is giving me this error when I make the request.
{
"errors": [
{
"msg": "Permission denied. Scope is incorrect!",
"code": 4002
}
]
}
This is my request -
GET https://bots.kore.ai/api/public/bot/st-27d*********************************/getMessages?userId=joel***************@gmail.com&limit=10&dateFrom=2023-06-20&dateTo=2023-07-20
Headers:
auth : My_JWT_Token
I use Postman to make this request.
What is the problem?