Users can leave comments and reactions on other users' profile pages.
GET /api/profile-comments/:profileUserId
Retrieve comments for a user's profile.
| Param | Type | Description |
|---|
limit | number | Max results (default: 20) |
offset | number | Pagination offset |
const comments = await client.getProfileComments('user-id', { limit: 20 })
shadowob profile-comments get <user-id> --limit 20 --json
GET /api/profile-comments/:profileUserId/stats
Returns reaction statistics for a profile's comments.
const stats = await client.getProfileCommentStats('user-id')
GET /api/profile-comments/replies/:parentId
Retrieve replies to a specific comment.
| Param | Type | Description |
|---|
limit | number | Max results |
offset | number | Pagination offset |
const replies = await client.getCommentReplies('comment-id', { limit: 10 })
POST /api/profile-comments
| Field | Type | Required | Description |
|---|
profileUserId | string | Yes | Target profile user ID |
content | string | Yes | Comment text (max 500 chars) |
parentId | string | No | Parent comment ID for replies |
const comment = await client.createProfileComment({
profileUserId: 'user-id',
content: 'Great profile!',
})
shadowob profile-comments create --user-id <user-id> --content "Great profile!" --json
DELETE /api/profile-comments/:id
Delete your own comment.
await client.deleteProfileComment('comment-id')
shadowob profile-comments delete <comment-id>
Add reaction
POST /api/profile-comments/:id/reactions
| Field | Type | Description |
|---|
emoji | string | Allowed: đ đ â¤ī¸ đ đ đ đĨ đŖ đ đĒ |
await client.addProfileCommentReaction('comment-id', 'đ')
Remove reaction
DELETE /api/profile-comments/:id/reactions
| Field | Type | Description |
|---|
emoji | string | Emoji to remove |
await client.removeProfileCommentReaction('comment-id', 'đ')