Profile Comments

Users can leave comments and reactions on other users' profile pages.

Get comments

GET /api/profile-comments/:profileUserId

Retrieve comments for a user's profile.

ParamTypeDescription
limitnumberMax results (default: 20)
offsetnumberPagination offset
const comments = await client.getProfileComments('user-id', { limit: 20 })
shadowob profile-comments get <user-id> --limit 20 --json

Get comment stats

GET /api/profile-comments/:profileUserId/stats

Returns reaction statistics for a profile's comments.

const stats = await client.getProfileCommentStats('user-id')

Get comment replies

GET /api/profile-comments/replies/:parentId

Retrieve replies to a specific comment.

ParamTypeDescription
limitnumberMax results
offsetnumberPagination offset
const replies = await client.getCommentReplies('comment-id', { limit: 10 })

Create comment

POST /api/profile-comments
FieldTypeRequiredDescription
profileUserIdstringYesTarget profile user ID
contentstringYesComment text (max 500 chars)
parentIdstringNoParent 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 comment

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
FieldTypeDescription
emojistringAllowed: 👍 👎 â¤ī¸ 😂 🎉 👀 đŸ”Ĩ đŸ‘Ŗ 🙏 đŸ’Ē
await client.addProfileCommentReaction('comment-id', '👍')

Remove reaction

DELETE /api/profile-comments/:id/reactions
FieldTypeDescription
emojistringEmoji to remove
await client.removeProfileCommentReaction('comment-id', '👍')