Hit a 401 error when hitting https://api.mypurecloud.com/oauth/token from our Python backend. The goal is to grab an access token to inject into the X-G2-User-ID header for downstream Data Action tracing.
import requests
resp = requests.post(
'https://api.mypurecloud.com/oauth/token',
data={'grant_type': 'client_credentials'},
auth=(CLIENT_ID, CLIENT_SECRET)
)
Response is just {"error": "invalid_client"}. Checked the secret multiple times. Is the base URL different for our region?