> ## 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.

# Check My Membership

> Get the current user's membership status and permissions in a space

Returns the authenticated user's membership status and resolved permissions in a space. Returns membership info even for `pending` or `banned` states. Without any membership row, a space the user can't see (a `private` space, or one under it) answers `404`, exactly like a nonexistent space. A service key asks about the user it names in `userId`.

## Path Parameters

**spaceId** `string` *required*

UUID of the space.

## Response

**isMember** `boolean`

Whether the user has an active membership.

**role** `string | null`

`"admin"`, `"moderator"`, `"member"`, or `null` if not a member.

**status** `string | null`

`"pending"`, `"active"`, `"banned"`, `"rejected"`, or `null` if no membership record exists.

**joinedAt** `Date | null`

When the membership was created. `null` if not a member.

**permissions** `object`

**properties**

**canPost** `boolean`

Whether the user may post entities, given the space's `postingPermission`. For your app to enforce: the v7 API doesn't refuse entities because of it (see [Content inside a space](https://docs.sublay.io/v7/data-models/space.md#content-inside-a-space) and the [v8 rules](https://docs.sublay.io/v8/data-models/space.md#who-can-post-and-take-part)).

**canModerate** `boolean`

Whether the user can moderate.

**canRead** `boolean`

Whether the user may read content, given the space's `readingPermission`. For your app to enforce: the v7 API doesn't hide content because of it (see [Content inside a space](https://docs.sublay.io/v7/data-models/space.md#content-inside-a-space) and the [v8 rules](https://docs.sublay.io/v8/data-models/space.md#who-can-read-content)).

**isAdmin** `boolean`

Whether the user is an admin.

**isModerator** `boolean`

Whether the user is a moderator.

See also: [useCheckMyMembership](https://docs.sublay.io/v7/hooks/spaces/use-check-my-membership.md)


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