Skip to main content
GET
/
:projectId
/
api
/
v7
/
spaces
/
:spaceId
/
conversation
Get Space Conversation
curl --request GET \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/conversation
{
  "currentMember": {},
  "memberCount": 123
}
Returns the chat conversation associated with a space. If no conversation exists yet, one is created automatically. Requires authentication. The caller must have a space membership record that is not "banned" (pending members are allowed).

Path Parameters

spaceId
string
required
UUID of the space.

Response

Returns a Conversation object with two additional fields:
currentMember
object | null
The caller’s ConversationMember record for this conversation. Created or re-activated on first call.
memberCount
number
Number of currently active members in the conversation.
Each space has at most one associated conversation. This endpoint is idempotent — calling it multiple times returns the same conversation.

Error Responses

{ "error": "You are not a member of this space.", "code": "chat/not-a-member" }
{ "error": "You are banned from this space.", "code": "chat/banned" }
See also: useFetchSpaceConversation hook