Skip to main content
A comment represents a user-authored response to an entity. Comments support nested replies, reactions, GIF attachments, user mentions, and moderation.

Properties

PropertyTypeDescription
idstringUnique comment identifier (UUID).
foreignIdstring | nullYour system’s ID for this comment, if applicable.
projectIdstringThe project this comment belongs to.
entityIdstringThe entity this comment belongs to.
entityEntityPopulated when include contains "entity" or "space".
userIdstringThe ID of the user who posted this comment.
userUserThe comment author. Populated when include contains "user".
parentIdstring | nullID of the parent comment if this is a reply. null for top-level comments.
parentCommentCommentThe parent comment object. Populated when include contains "parent".
contentstring | nullText content of the comment.
gifGifData | nullAttached GIF, if any.
mentionsMention[]Array of user mentions embedded in the comment.
upvotesstring[]Legacy v6 field — array of user IDs that upvoted. Use reactionCounts in v7.
downvotesstring[]Legacy v6 field — array of user IDs that downvoted. Use reactionCounts in v7.
reactionCountsReactionCountsCounts for all 8 reaction types. See Reaction.
userReactionReactionType | nullThe current user’s reaction, populated when authenticated.
repliesCountnumberNumber of direct replies to this comment.
metadataRecord<string, any>Custom key-value data (max 10 KB).
moderationStatus"approved" | "removed" | nullSpace moderation status.
moderatedAtDate | nullWhen the moderation action was taken.
moderatedByIdstring | nullID of the moderator.
moderatedByType"client" | "user" | nullWhether a client (admin) or user performed moderation.
moderationReasonstring | nullReason provided for moderation.
userDeletedAtDate | nullSet when a user soft-deletes their own comment. Content is replaced with a placeholder but the comment record remains (Reddit-style behavior).
createdAtDateWhen the comment was created.
updatedAtDateWhen the comment was last updated.
deletedAtDate | nullHard-delete timestamp. null for active comments.

Nested Types

GifData

PropertyTypeDescription
idstringGIF provider identifier.
urlstringURL to the GIF page or canonical source.
gifUrlstringDirect URL to the animated GIF file.
gifPreviewUrlstringURL to a lower-quality preview of the GIF.
altTextstring | undefinedAccessible description of the GIF.
aspectRationumberWidth-to-height ratio for rendering.

Includes

Pass an include array to populate optional fields:
Include valuePopulates
"user"user — the comment author
"entity"entity — the parent entity
"space"entity with its associated space populated
"parent"parentComment — the parent comment, for replies

See Also