Error 412 when calling "https://bots.kore.ai/api/1.1/oauth/token" from POSTMAN

Hello!

Im trying to get a token from the following API: https://bots.kore.ai/api/1.1/oauth/token
but im getting this error:

{
“errors”: [
{
“msg”: “Validation errors/ Invalid arguments”,
“code”: 412
}
]
}

Its an HTTP POST, my only header is: Content-Type = application/json, the raw json im sending in the body is:

{
“client_id”: “cs-89755318-01aa-5d94-b4d6-xxxx”,
“client_secret”: “OcgwuWWOij3ej/GnYdQN4kduuLdXFVv6xxxx”,
“grant_type”: “client_credentials”,
“scope”: “all”
}

This is the setup i got from my Automation AI / Bot / Channel / Digital / Web Mobile client

Could you please help me as to how i need to get the token?

My objective is once i get the token, i would like to post a message from an external source to be displayed in my KORE.AI chatbot

Hello Pedro,

Thank you for reaching out to Kore.ai Community.
The error which you have shared seems to be related to incorrect Payload used here.

May i request you to share the complete curl ?

That would help us to identify the root cause and assist you accordingly.

Thank you,
Srujan Madderla
Kore.ai Community Team