I’m completely stumped as to why my Open Messaging bot receives a 401 Unauthorized response right after successfully refreshing the OAuth token. The clock skew between my server (Berlin) and the Genesys Cloud API is negligible.
- Call
POST /api/v2/oauth/tokenwithgrant_type=refresh_token. - Receive new
access_tokenandexpires_in. - Immediately call
POST /api/v2/conversations/messaging/interactions/{id}/messageswith the new token.
The request fails with HTTP 401. JSON error payload:
{
"errors": [
{
"code": "unauthorized",
"message": "Invalid or expired token"
}
]
}
Is there a propagation delay for token validity checks in the backend?