Search code examples
web-servicesapitrustpilot

How to reply to a review using Trustpilot API


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.


Solution

  • For using Reply-to-Review API:

    1. Ensure you are using correct reviewID

    2. You must provide access token in request, which you are already doing

    3. 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. )

    4. 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