OAuth2 Token Refresh 401 Error During Zendesk-to-GC Migration

Can anyone explain why the Genesys Cloud OAuth2 token refresh endpoint returns a 401 Unauthorized error? We are migrating our Zendesk authentication flow to Genesys Cloud using the REST API v2. The initial authorization works perfectly, but the refresh token fails immediately after the first use.

The Zendesk integration relies on seamless session continuity. In Zendesk, the session persistence handles this background refresh automatically. Here, the custom middleware receives the 401 response with error code “invalid_grant” when attempting to rotate the credentials.

Our environment is EU-West-1. The client ID and secret match the Zendesk app configuration. We need the Genesys equivalent of Zendesk’s persistent session token to maintain compliance with our security audit requirements without forcing re-logins.