We are in US West 2.
Original Message:
Sent: 02-05-2025 09:02
From: Jan Heinonen
Subject: Cannot obtain API token
Which AWS region is your Genesys Org in?
------------------------------
Jan Heinonen
Contact Center Specialist
GlobalConnect AB
Original Message:
Sent: 02-05-2025 08:28
From: Chad Meyer
Subject: Cannot obtain API token
It is a POST method to https://login.mypurecloud.com/oauth/token
Headers:
Content-Type : application/x-www-form-urlencoded
Authorization : <clientID:secret defined in Basic Auth> which auto converts to base64
Body:
{
"grant_type": "client_credentials"
}
------------------------------
Chad Meyer
Global Voice Engineer
Original Message:
Sent: 02-05-2025 08:21
From: Jan Heinonen
Subject: Cannot obtain API token
Which API are you using and what does the request look like?
------------------------------
Jan Heinonen
Contact Center Specialist
GlobalConnect AB
Original Message:
Sent: 02-05-2025 08:15
From: Chad Meyer
Subject: Cannot obtain API token
Here is the error that is returned.
{
"error": "invalid_request"
}
------------------------------
Chad Meyer
Global Voice Engineer
Original Message:
Sent: 02-05-2025 07:06
From: Jan Heinonen
Subject: Cannot obtain API token
Hello,
What 400 response are you getting?
400 could be returned for several reasons.
------------------------------
Jan Heinonen
Contact Center Specialist
GlobalConnect AB
Original Message:
Sent: 02-04-2025 17:55
From: Chad Meyer
Subject: Cannot obtain API token
Hey everyone,
Apologies if this has already been addressed but am new to the Genesys platform and trying to sort through some of the APIs available. In that, I am having difficulty obtaining the token. I have created the OAuth client in Genesys Admin with a grant type as 'Client Credentials'. When making the call via Postman as well as the example they provide for Python I am getting a 400 returned.
The following headers are defined:
Content-Type : application/x-www-form-urlencoded
Authorization: Basic (base64)
I have tried both x-www-form-urlencoded and raw as the Body when sending
{
"grant_type": "client_credentials"
}
Can anyone point me in the right direction here?
Thanks for the assistance!
#API/Integrations
------------------------------
Chad
------------------------------