Get organization reviews

This method allows you to retrieve all the reviews that you have received on your organization. The response includes the reviewer with the photo along with review id, title, description, status, creation time, updated time and rating. Paginating the results is possible with results per page option.

HTTP method: GET
Authentication: Public_key::Private_key
URL: https://api.trustytribe.com/organization/{organizationId}/review

Curl Request :


curl -X GET --header 'Accept: application/json' --header 'Authorization: Public_key::Private_key' 'https://api.trustytribe.com/organization/{organizationId}/review'
            
<> Parameters
organizationId | Required Integer

The id of the organization whose reviews are to be fetched.

Example: https://api.trustytribe.com/organization/666/review


page | Optional Integer

The page to retrieve. If the page number requested is higher than the available number of pages an empty array will be returned.

Example: ?page=2


perPage | Optional Integer

The number of results to be retrieved per page.

DefaultValue: 10

Example: ?perPage=3


Response
{
  "meta": {
    "count": 1,
    "pageCount": 5,
    "totalCount": 5,
    "next": "https://api.trustytribe.com/organization/666/review?perPage=1&page=2",
    "previous": null,
    "self": "https://api.trustytribe.com/organization/666/review?perPage=1&page=1",
    "first": "https://api.trustytribe.com/organization/666/review?perPage=1&page=1",
    "last": "https://api.trustytribe.com/organization/666/review?perPage=1&page=5"
  },
  "results": [
    {
      "review": {
        "updated_at": 1510809556874,
        "rating": 5,
        "description": "This is sample review.",
        "created_at": 1510809556874,
        "title": "Sample review",
        "status": "APPROVED",
        "id": 1094
      },
      "name": "Tester",
      "photo_url": ""
    }
  ]
}