Admin - Activity Log

Recent activity for a single user (convenience endpoint)

get/api/admin/activity-logs/user/{userId}

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/admin/activity-logs/user/{userId}
  • Auth
    HTTP bearer

Path parameters

userIdnumber required

Query parameters

limitnumber
Example:100
sinceHoursnumber
Example:168

Only return rows created in the last N hours

Response

unknown required

Example response

{
  "success": true,
  "userId": 42,
  "count": 1,
  "data": [
    {
      "id": 9123,
      "activity_type": "food_log.create",
      "target_type": "food_log",
      "target_id": "101",
      "success": true,
      "created_at": "2026-04-22T12:30:00.000Z"
    }
  ]
}

Changes

No recorded changes to this operation across all 34 revisions of this API.