Review events

Overview

This endpoint returns the list of review events that happened on a claimed quest.

The Review Event Object


id - String

ID of the review event


createdAt - String

ISO timestamp that indicates the creation date and time of the review event


type - Enum (error, success, cancel) Type of the review event.


data - Object

Object containing the comment written by the reviewer at the moment of the review and the bonus XP given, if any.


reviewer - Object

Object containing the id, name, and avatar url of the reviewer


API Specification

List review events for a review

GEThttps://api-v2.zealy.io/public/communities/{subdomain}/reviews/{id}/events
Path parameters
id*string (uuid)
subdomain*string
Header parameters
Response

200

Body
items*array of object
Request
const response = await fetch('https://api-v2.zealy.io/public/communities/{subdomain}/reviews/{id}/events', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "items": [
    {
      "id": "text",
      "createdAt": "2024-05-02T05:38:40.374Z",
      "type": "success",
      "data": {
        "message": "text",
        "bonusXP": 0
      },
      "reviewer": {
        "id": "text",
        "name": "text",
        "avatar": "https://example.com"
      }
    }
  ]
}

Last updated