Skip to main content
A Conversation represents a messaging thread between two or more participants. Replyke supports three conversation types: direct (1:1 DMs), group (multi-member chat), and space (a single shared chat channel attached to a Space).

Properties

PropertyTypeDescription
idstringUnique conversation identifier (UUID).
projectIdstringThe project this conversation belongs to.
type"direct" | "group" | "space"Conversation type.
namestring | nullDisplay name. Always null for direct conversations.
descriptionstring | nullOptional description. Used for group and space conversations.
spaceIdstring | nullThe Space this conversation belongs to. Set only when type is "space".
createdByIdstring | nullID of the user who created the conversation. null for auto-created space conversations.
avatarFileIdstring | nullID of the uploaded avatar file for this conversation.
avatarFileFile | undefinedPopulated avatar file object, if avatarFileId is set.
lastMessageAtDate | nullTimestamp of the most recent message. Used for conversation list sorting. null if no messages have been sent.
postingPermission"members" | "admins" | nullWho can post in the conversation. Only set for space conversations. null for direct and group conversations.
metadataRecord<string, any>Custom key-value data. Limited to 1 MB.
memberCountnumberTotal number of active members.
currentMemberConversationMember | undefinedThe requesting user’s own membership row. Included in API responses when applicable.
createdAtDateTimestamp when the conversation was created.
updatedAtDateTimestamp of the last update.

ConversationPreview

When listing conversations (e.g. in an inbox), the API returns ConversationPreview objects, which extend Conversation with two additional fields:
PropertyTypeDescription
unreadCountnumberNumber of messages sent after the current user’s lastReadAt.
lastMessageChatMessage | nullThe most recent message in the conversation, truncated to 100 characters. null if no messages have been sent.

Conversation Types

TypeDescription
directA private 1:1 DM between two users. Only one direct conversation can exist per user pair per project.
groupA multi-member chat created by a user. Members can have admin or member roles.
spaceThe shared chat channel for a Space. Exactly one space conversation exists per Space. Created automatically when the Space is created.
  • ConversationMember — member rows linked to this conversation
  • ChatMessage — messages that belong to this conversation
  • Space — the parent Space for type: "space" conversations