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

# Admin List Space Access Members



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/admin/teams/{team_id}/hubs/{hub_id}/spaces/{space_id}/members
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/admin/teams/{team_id}/hubs/{hub_id}/spaces/{space_id}/members:
    get:
      tags:
        - community-spaces-admin
      summary: Admin List Space Access Members
      operationId: >-
        community_spaces_admin.get_community_spaces_admin_get_admin_teams_by_team_id_hubs_by_hub_id_spaces_by_space_id_members
      parameters:
        - in: path
          name: space_id
          required: true
          schema:
            maxLength: 36
            title: Space Id
            type: string
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: hub_id
          required: true
          schema:
            maxLength: 36
            title: Hub Id
            type: string
        - in: query
          name: filter[access_source]
          required: false
          schema:
            anyOf:
              - enum:
                  - public
                  - segment
                  - granted
                  - moderator
                type: string
              - type: 'null'
            title: Filter[Access Source]
        - description: Cursor — ID of the last item on the previous page.
          in: query
          name: page[after]
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Cursor — ID of the last item on the previous page.
            title: Page[After]
        - in: query
          name: page[size]
          required: false
          schema:
            default: 20
            maximum: 100
            minimum: 1
            title: Page[Size]
            type: integer
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/SpaceAccessMemberListResponse'
          description: Successful Response
        '404':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: >-
            `errors[0].code` is `space_not_found` when no live space has this id
            in the resolved hub. Separately, an error with no `code` (detail
            `Hub not found`) means the hub path value is not the exact id of a
            hub of this team (a slug or legacy hash is not accepted on these
            routes).
          x-error-codes:
            - space_not_found
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
        '503':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: >-
            `errors[0].code` == `access_unverified`: the space's segment
            membership could not be determined right now. Never answered with a
            partial list.
          x-error-codes:
            - access_unverified
      security:
        - HTTPBearer: []
components:
  schemas:
    SpaceAccessMemberListResponse:
      description: >-
        Keyset page (on contact id) of everyone who can view a space, with
        provenance.
      properties:
        data:
          items:
            $ref: '#/components/schemas/JsonApiResource_SpaceAccessMemberAttributes_'
          title: Data
          type: array
        included:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Included
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiPaginationLinks'
            - type: 'null'
        meta:
          anyOf:
            - $ref: '#/components/schemas/SpaceAccessMemberListMeta'
            - type: 'null'
      required:
        - data
      title: SpaceAccessMemberListResponse
      type: object
    JsonApiErrorResponse:
      description: Error JSON:API response.
      properties:
        errors:
          items:
            $ref: '#/components/schemas/JsonApiError'
          title: Errors
          type: array
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - errors
      title: JsonApiErrorResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    JsonApiResource_SpaceAccessMemberAttributes_:
      properties:
        attributes:
          $ref: '#/components/schemas/SpaceAccessMemberAttributes'
        id:
          title: Id
          type: string
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        relationships:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Relationships
        type:
          title: Type
          type: string
      required:
        - id
        - type
        - attributes
      title: JsonApiResource[SpaceAccessMemberAttributes]
      type: object
    JsonApiPaginationLinks:
      properties:
        next:
          anyOf:
            - type: string
            - type: 'null'
          title: Next
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiPaginationLinks
      type: object
    SpaceAccessMemberListMeta:
      description: >-
        ``segment_status``: ``resolved`` (the live segment was read), ``none``
        (no

        segment arm: a public space, or restricted without a segment) or
        ``unresolved``

        (``segment_id`` names no live segment of the team; nobody can view the
        space, its

        grantees and moderators included, and ``data`` is empty).
      properties:
        page:
          $ref: '#/components/schemas/SpaceAccessGrantListPageMeta'
        segment_status:
          enum:
            - resolved
            - none
            - unresolved
          title: Segment Status
          type: string
      required:
        - page
        - segment_status
      title: SpaceAccessMemberListMeta
      type: object
    JsonApiError:
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        source:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Source
        status:
          title: Status
          type: string
        title:
          title: Title
          type: string
      required:
        - status
        - title
      title: JsonApiError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    SpaceAccessMemberAttributes:
      description: >-
        Why one contact can view a space now (AC3). The resource id is
        ``<space_id>:<contact_id>``.


        ``access_source`` is the arm that admits them, in precedence order:
        ``public``

        (public space), ``segment`` (in the space's segment), ``granted`` (an
        active grant),

        ``moderator`` (a hub moderator while the space has ``allow_moderators``
        on).

        ``is_joined`` says whether they joined the space; access does not
        require it.
      properties:
        access_source:
          enum:
            - public
            - segment
            - granted
            - moderator
          title: Access Source
          type: string
        contact_id:
          title: Contact Id
          type: string
        granted_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Granted At
        has_active_grant:
          title: Has Active Grant
          type: boolean
        is_joined:
          title: Is Joined
          type: boolean
        membership_role:
          anyOf:
            - type: string
            - type: 'null'
          title: Membership Role
      required:
        - contact_id
        - access_source
        - has_active_grant
        - is_joined
      title: SpaceAccessMemberAttributes
      type: object
    JsonApiLinks:
      properties:
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiLinks
      type: object
    SpaceAccessGrantListPageMeta:
      description: Mirrors build_page_meta()'s meta["page"] block exactly.
      properties:
        has_more:
          title: Has More
          type: boolean
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        size:
          title: Size
          type: integer
      required:
        - size
        - has_more
      title: SpaceAccessGrantListPageMeta
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````

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