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

# List Workspace Memberships



## OpenAPI

````yaml get /api/v1/workspace-memberships
openapi: 3.1.0
info:
  title: AskUI Workspaces API
  version: 0.2.15
servers: []
security: []
paths:
  /api/v1/workspace-memberships:
    get:
      tags:
        - workspace-memberships
      summary: List Workspace Memberships
      operationId: list_workspace_memberships_api_v1_workspace_memberships_get
      parameters:
        - name: user_id
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: User Id
        - name: workspace_id
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
                  format: uuid4
              - type: 'null'
            title: Workspace Id
        - name: expand
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  enum:
                    - user
                    - workspace
                  type: string
              - type: 'null'
            title: Expand
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceMembershipsListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - Bearer: []
        - Basic: []
components:
  schemas:
    WorkspaceMembershipsListResponse:
      properties:
        data:
          items:
            $ref: >-
              #/components/schemas/workspaces__use_cases__workspace_memberships__list_workspace_memberships__WorkspaceMembershipDto
          type: array
          title: Data
      type: object
      required:
        - data
      title: WorkspaceMembershipsListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    workspaces__use_cases__workspace_memberships__list_workspace_memberships__WorkspaceMembershipDto:
      properties:
        id:
          type: string
          format: uuid4
          title: Id
        createdAt:
          type: string
          format: date-time
          title: Createdat
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
        privileges:
          items:
            $ref: '#/components/schemas/WorkspacePrivilege'
          type: array
          title: Privileges
        user:
          anyOf:
            - $ref: '#/components/schemas/UserDto'
            - type: 'null'
        userId:
          type: string
          title: Userid
        workspace:
          anyOf:
            - $ref: '#/components/schemas/WorkspaceDto'
            - type: 'null'
        workspaceId:
          type: string
          format: uuid4
          title: Workspaceid
      type: object
      required:
        - privileges
        - userId
        - workspaceId
      title: WorkspaceMembershipDto
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    WorkspacePrivilege:
      type: string
      enum:
        - ROLE_WORKSPACE_OWNER
        - ROLE_WORKSPACE_ADMIN
        - ROLE_WORKSPACE_MEMBER
      title: WorkspacePrivilege
    UserDto:
      properties:
        id:
          type: string
          title: Id
        email:
          type: string
          format: email
          title: Email
        name:
          type: string
          title: Name
        picture:
          type: string
          minLength: 1
          format: uri
          title: Picture
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
        createdAt:
          type: string
          format: date-time
          title: Createdat
        emailVerified:
          type: boolean
          title: Emailverified
      type: object
      required:
        - id
        - email
        - name
        - picture
        - updatedAt
        - createdAt
        - emailVerified
      title: UserDto
    WorkspaceDto:
      properties:
        id:
          type: string
          format: uuid4
          title: Id
        createdAt:
          type: string
          format: date-time
          title: Createdat
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
        name:
          type: string
          title: Name
      type: object
      required:
        - name
      title: WorkspaceDto
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
    Basic:
      type: apiKey
      in: header
      name: Authorization

````