id | string | Unique comment identifier (UUID). |
foreignId | string | null | Your system’s ID for this comment, if applicable. |
projectId | string | The project this comment belongs to. |
entityId | string | The entity this comment belongs to. |
entity | Entity | Populated when include contains "entity" or "space". |
userId | string | The ID of the user who posted this comment. |
user | User | The comment author. Populated when include contains "user". |
parentId | string | null | ID of the parent comment if this is a reply. null for top-level comments. |
parentComment | Comment | The parent comment object. Populated when include contains "parent". |
content | string | null | Text content of the comment. |
gif | GifData | null | Attached GIF, if any. |
mentions | Mention[] | Array of user mentions embedded in the comment. |
upvotes | string[] | Legacy v6 field — array of user IDs that upvoted. Use reactionCounts in v7. |
downvotes | string[] | Legacy v6 field — array of user IDs that downvoted. Use reactionCounts in v7. |
reactionCounts | ReactionCounts | Counts for all 8 reaction types. See Reaction. |
userReaction | ReactionType | null | The current user’s reaction, populated when authenticated. |
repliesCount | number | Number of direct replies to this comment. |
metadata | Record<string, any> | Custom key-value data (max 10 KB). |
moderationStatus | "approved" | "removed" | null | Space moderation status. |
moderatedAt | Date | null | When the moderation action was taken. |
moderatedById | string | null | ID of the moderator. |
moderatedByType | "client" | "user" | null | Whether a client (admin) or user performed moderation. |
moderationReason | string | null | Reason provided for moderation. |
userDeletedAt | Date | null | Set when a user soft-deletes their own comment. Content is replaced with a placeholder but the comment record remains (Reddit-style behavior). |
createdAt | Date | When the comment was created. |
updatedAt | Date | When the comment was last updated. |
deletedAt | Date | null | Hard-delete timestamp. null for active comments. |