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

# List workspace team



## OpenAPI

````yaml /openapi.yaml get /api/workspaces/{workspaceId}/team
openapi: 3.1.0
info:
  title: MemContext API
  version: 1.1.0
  description: |
    REST API for persistent, evolving AI memory. Save, search, and manage
    memories with automatic deduplication, version chains, and hybrid retrieval.
servers:
  - url: https://api.memcontext.in
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Memories
    description: Save, search, list, update, and delete memories.
  - name: History
    description: Inspect how memories evolve over time.
  - name: Feedback
    description: Rate retrieval quality to improve future results.
  - name: Profiles
    description: Pre-aggregated user context from memory.
  - name: Workspaces
    description: >-
      Company/team account boundaries for billing, members, API keys, and
      vaults.
  - name: API Keys
    description: Workspace-bound API keys for server-side integrations.
  - name: Subscription
    description: Workspace-owned billing and member-memory limits.
  - name: Context Vault
    description: Document ingestion and workspace RAG retrieval.
paths:
  /api/workspaces/{workspaceId}/team:
    get:
      tags:
        - Workspaces
      summary: List workspace team
      operationId: listWorkspaceTeam
      parameters:
        - in: path
          name: workspaceId
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Current members and pending invitations for a workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListWorkspaceTeamResponse'
      security:
        - ApiKeyAuth: []
        - CookieAuth: []
components:
  schemas:
    ListWorkspaceTeamResponse:
      type: object
      required:
        - currentUserRole
        - members
        - invitations
      properties:
        currentUserRole:
          type: string
          enum:
            - owner
            - admin
            - member
            - viewer
        members:
          type: array
          items:
            $ref: '#/components/schemas/WorkspaceMember'
        invitations:
          type: array
          items:
            $ref: '#/components/schemas/WorkspaceInvitation'
    WorkspaceMember:
      type: object
      required:
        - id
        - userId
        - role
        - createdAt
        - email
      properties:
        id:
          type: string
          format: uuid
        userId:
          type: string
        role:
          type: string
          enum:
            - owner
            - admin
            - member
            - viewer
        createdAt:
          type: string
          format: date-time
        name:
          type: string
          nullable: true
        email:
          type: string
          format: email
        image:
          type: string
          nullable: true
    WorkspaceInvitation:
      type: object
      required:
        - id
        - workspaceId
        - email
        - role
        - expiresAt
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        workspaceId:
          type: string
          format: uuid
        email:
          type: string
          format: email
        role:
          type: string
          enum:
            - admin
            - member
            - viewer
        expiresAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        API key created from the MemContext dashboard. Keys are prefixed with
        `mc_`, bound to one workspace, and API-key requests cannot override that
        workspace.
    CookieAuth:
      type: apiKey
      in: cookie
      name: better-auth.session_token
      description: Dashboard session cookie used for workspace/company endpoints.

````