Reputation: 87
I want to use Trustpilot API to reply to a review.
I already have an access_token
and this is my request :
POST https://api.trustpilot.com/v1/private/reviews/{reviewId}/reply?message={myMessage}&token={myAccesToken}
But this request always gets a 400 Bad Request response.
In Trustpilot's API document, there is no specification about this. https://developers.trustpilot.com/review-api#Reply to a review.
Can someone help me about how I can reply a review using TrustPilot API.
Upvotes: 1
Views: 1331
Reputation: 86
This is a very late reply to the problem. But maybe someone will hit the same problem one day.
What is missing is that the message should be posted in the payload of the request and not in the query parameter.
POST https://api.trustpilot.com/v1/private/reviews/{reviewId}/reply?token={myAccesToken}
PAYLOAD: {"message": {myMessage}}
Content-Type: application/json
The URL to the API doc has been changed to: https://developers.trustpilot.com/service-reviews-api#reply-to-a-review-
Upvotes: 4
Reputation: 78
For using Reply-to-Review API:
Ensure you are using correct reviewID
You must provide access token in request, which you are already doing
The reply message is to be provided as request parameter in JSON format ( Kindly refer: https://developers.trustpilot.com/review-api#Reply%20to%20a%20review. )
Since you are posting the reply message in JSON format please ensure that
A. In Request header "Content-Type" is set to "application/json"
B. HTTP method type is "POST"
Any further issue, please contact [email protected] and I will reply you over there
Upvotes: 1