> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sublay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Space Conversation

> Get or create the chat conversation for a space

Returns the chat conversation associated with a space. If no conversation exists yet, one is created automatically. Requires authentication. The caller must be a member of the space who is not banned, in the space or in a parent space; that includes a request still awaiting approval and one that was declined, except in a space the caller can't see (a `private` space they aren't an active member of, or one under it), which answers like having no membership (`403` `chat/not-a-member`).

## Path Parameters

**spaceId** `string` *required*

UUID of the space.

## Response

Returns a [Conversation](https://docs.sublay.io/v7/data-models/conversation.md) 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.

> [!NOTE]
>
> Each space has at most one associated conversation. This endpoint is idempotent — calling it multiple times returns the same conversation.

## Error Responses

> [accordion] Not a Member — 403
>
> ```json theme={null}
> { "error": "You are not a member of this space.", "code": "chat/not-a-member" }
> ```

> [accordion] Banned — 403
>
> The caller is banned in this space or in a parent space.
>
> ```json theme={null}
> { "error": "You are banned from this space.", "code": "chat/banned" }
> ```
>
> ```json theme={null}
> { "error": "You are banned from a parent of this space.", "code": "chat/banned" }
> ```

See also: [useFetchSpaceConversation hook](https://docs.sublay.io/v7/hooks/chat/conversations/use-fetch-space-conversation.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.