# List all workspace members

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/workspaces/members:
    get:
      summary: List all workspace members
      deprecated: false
      description: ' List all workspace members with their roles and details'
      tags:
        - workspaces
      parameters:
        - name: limit
          in: query
          description: ''
          required: true
          example: '10'
          schema:
            type: string
        - name: page
          in: query
          description: ''
          required: true
          example: '1'
          schema:
            type: string
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: YOUR_API_KEY
          schema:
            type: string
        - name: x-workspace-key
          in: header
          description: ''
          required: true
          example: workspace_id
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      totalSearchedCount:
                        type: integer
                      currentPage:
                        type: integer
                      nextPage:
                        type: integer
                      totalPages:
                        type: integer
                      members:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            role:
                              type: string
                            user:
                              type: object
                              properties:
                                id:
                                  type: string
                                email:
                                  type: string
                                firstName:
                                  type: string
                                lastName:
                                  type: string
                              required:
                                - id
                                - email
                                - firstName
                                - lastName
                              x-apidog-orders:
                                - id
                                - email
                                - firstName
                                - lastName
                            createdAt:
                              type: string
                            workspace:
                              type: string
                          x-apidog-orders:
                            - id
                            - role
                            - user
                            - createdAt
                            - workspace
                    required:
                      - totalSearchedCount
                      - currentPage
                      - nextPage
                      - totalPages
                      - members
                    x-apidog-orders:
                      - totalSearchedCount
                      - currentPage
                      - nextPage
                      - totalPages
                      - members
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
              example:
                status: 200
                message: Members fetched successfully
                data:
                  totalSearchedCount: 4
                  currentPage: 1
                  nextPage: 2
                  totalPages: 1
                  members:
                    - id: b34506b1-1a10-4b9a-9647-31ce7472f873
                      role: ADMIN
                      user:
                        id: 871eb822-cd48-4bf6-a85c-b1f5865da6a8
                        email: adrishmitra710@gmail.com
                        firstName: Adrish
                        lastName: Mitra
                      createdAt: '2025-06-11T19:49:05.756Z'
                      workspace: test
          headers: {}
          x-apidog-name: Success
        '403':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
                x-apidog-orders:
                  - message
              example:
                message: >-
                  You are not permitted to perform this action, please contact
                  support
          headers: {}
          x-apidog-name: Forbidden
      security: []
      x-apidog-folder: workspaces
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-26769014-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
