Jerome.Saint-Marc Genesys Employee
February 21

Hello,

POST /api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages requires an access token associated with a user context (OAuth token).
I mean it needs to be a token obtained by a user through an OAuth Grant flow like Implicit Grant, Authorization Code Grant, PKCE Grant. It has to be a user who is a participant in this conversation.

Client Credentials Grant is for server-to-server.

saravana.n.kumar:

Is this platform Api defect ?

No. This API Endpoint does not support the use of an access token obtained via an OAuth Client Credentials Grant flow.

Regards,


Visit Topic to respond.


Previous Replies

saravana.n.kumar
February 21

Hi Team,
we have custom app which was designed to post messages on existing web message conversation , where us we are getting error while using this API with Oauth - Grant Type -Client Credentials with all necessary permissions

/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages
Error-
-{"message":"This request requires a user context. Client credentials cannot be used for requests to this resource.","code":"bad.request","status":400,"}
Is this platform Api defect ?


Visit Topic to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here.