Hello,
At this time, a user context (OAuth token obtained via a user oriented OAuth flow) is necessary to send internal chat messages.
It is not possible to send an internal chat message using a Client Credentials Grant OAuth token (i.e. not possible to send an internal chat message via a Data Action).
You can check for existing Genesys Cloud ideas or create one and vote for it here: https://genesyscloud.ideas.aha.io/
Regards,
------------------------------
Jerome Saint-Marc
Senior Development Support Engineer
------------------------------
Original Message:
Sent: 11-21-2025 07:09
From: Takayuki Suzuki
Subject: POST /api/v2/chats/users/{userId}/messages returned a 404 response
I executed this from a Data Action. An error was displayed stating that the chat sender (From) user does not exist. However, the user shown in the error is the ID of the OAuth we are using. Could you tell me how to resolve this?
#DataActions
#PlatformAPI
------------------------------
Takayuki Suzuki
NA
------------------------------