Overview
GET/gamification/subjects/{subjectType}/{subjectId}/pointsgamification

A subject’s point ledger (newest first)

Fetch a record from points by subjectType, subjectId.

Auth: bearerAuth — calls run as the authenticated user.

Parameters
  • subjectTypepathstring
  • subjectIdpathstring
  • pagequery · optionalstring
  • pageSizequery · optionalstring
Responses
200

Paginated point ledger

  • itemsGamificationPoints[]
  • totalinteger
  • pageinteger
  • pageSizeinteger
Example
{
  "items": [
    {
      "id": "string",
      "amount": 0,
      "reason": "string",
      "sourceType": "string",
      "sourceId": "string",
      "createdAt": "string"
    }
  ],
  "total": 0,
  "page": 0,
  "pageSize": 0
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X GET "https://api.agenticdeveloperhub.com/gamification/subjects/{subjectType}/{subjectId}/points" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/gamification/subjects/{subjectType}/{subjectId}/points", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN"
  },
});
const data = await res.json();