saravana.n.kumar | 2025-02-21 14:02:38 UTC | #1
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 ?
Jerome.Saint-Marc | 2025-02-21 14:17:59 UTC | #2
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, post:1, topic:31861
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,
saravana.n.kumar | 2025-02-21 16:41:08 UTC | #3
Thank you Jerome for the quick turn around, if this information would have captured in API documentation it helps better.
system | 2025-03-23 16:41:39 UTC | #4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 31861