Getting Bad Request Error Message every time When calling Notification API

Hello

I am getting "The request could not be understood by the server due to malformed syntax." everytime I am calling the api. Other apis are working fine but only issue is coming with this api.

API : POST /api/v2/notifications/channels/{channelId}/subscriptions

{
"status": 400,
"code": "bad.request",
"message": "The request could not be understood by the server due to malformed syntax.",
"contextId": "02367cee-f228-418e-acfd-20e945a8d45d",
"details": [],
"errors": []
}

Can you please tell me what is happening.

I am adding the subscription via channel in the widget. I am able to fetch channel information. But I am not able to subscribe it. I am using Code Authorization in the widget. And want to subscribe for logged user conversation.

image

Thanks
Alok

The logs indicate that the message body is not valid JSON. What is the value of ${topic}?

v2.users.6995445d-9920-4725-87df-57b6215c155d.conversations.calls

This will be the body of topic.

Regards

Issue is solved. I missed the quotation of the variable.

"${topic}"

Regards
Alok

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