Messages- Send message on existing conversation

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 ?

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.

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

Regards,

Thank you Jerome for the quick turn around, if this information would have captured in API documentation it helps better.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.