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

# List project members

> Retrieve a paginated list of all members in a project with their assigned roles and permissions.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/project/{project_id}/member
openapi: 3.1.0
info:
  title: Diga API
  version: 0.1.0
servers:
  - url: https://api.diga.io
    description: Production
security: []
paths:
  /v1/project/{project_id}/member:
    get:
      tags:
        - Project Members
      summary: List project members
      description: >-
        Retrieve a paginated list of all members in a project with their
        assigned roles and permissions.
      operationId: list_project_members_v1_project__project_id__member_get
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
        - name: after
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: After
        - name: before
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Before
        - name: page
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 1
              - type: 'null'
            title: Page
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Limit
        - name: order
          in: query
          required: false
          schema:
            enum:
              - asc
              - desc
            type: string
            default: desc
            title: Order
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_MemberResponseSchema_'
        '400':
          description: Bad request - Invalid pagination
          content:
            application/json:
              example:
                status: error
                error_code: INTERNAL_SERVER_ERROR
                message: Invalid pagination parameters
              schema:
                $ref: '#/components/schemas/ErrorResponseSchema'
        '404':
          description: Project Not Found
          content:
            application/json:
              example:
                status: error
                error_code: PROJECT_NOT_FOUND
                message: Project 550e8400-e29b-41d4-a716-446655440000 not found
              schema:
                $ref: '#/components/schemas/ErrorResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              example:
                status: error
                error_code: INTERNAL_SERVER_ERROR
                message: 'Error: Internal Server Error'
              schema:
                $ref: '#/components/schemas/ErrorResponseSchema'
      security:
        - CustomHTTPBearer: []
components:
  schemas:
    PaginatedResponse_MemberResponseSchema_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/MemberResponseSchema'
          type: array
          title: Data
        first_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: First Id
        last_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Last Id
        has_more:
          type: boolean
          title: Has More
        current_page:
          anyOf:
            - type: integer
            - type: 'null'
          title: Current Page
        total_pages:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Pages
      type: object
      required:
        - data
        - has_more
      title: PaginatedResponse[MemberResponseSchema]
    ErrorResponseSchema:
      properties:
        status:
          type: string
          title: Status
          description: Status of the response, always 'error' for error responses
          default: error
        error_code:
          type: string
          title: Error Code
          description: Machine-readable error code in SCREAMING_SNAKE_CASE format
          examples:
            - PROJECT_NOT_FOUND
            - INVALID_EMAIL
            - UNAUTHORIZED_ROLE
        message:
          type: string
          title: Message
          description: Human-readable error message with details
          examples:
            - Project with id 550e8400-e29b-41d4-a716-446655440000 not found
            - The email invalid@email is not valid
            - Insufficient permissions to perform this action
      type: object
      required:
        - error_code
        - message
      title: ErrorResponseSchema
      description: Standard error response format for all API errors.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MemberResponseSchema:
      properties:
        id:
          type: string
          format: uuid
          title: Profile ID
          description: Unique identifier for the profile
        email:
          type: string
          title: Email
          description: Member's email address
        first_name:
          anyOf:
            - type: string
            - type: 'null'
          title: First Name
          description: Member's first name
        last_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Name
          description: Member's last name
        role:
          $ref: '#/components/schemas/RoleResponseSchema'
          title: Role
          description: Member's role in the project with permissions
        added_at:
          type: string
          format: date-time
          title: Added At
          description: Timestamp when the member was added
      type: object
      required:
        - id
        - email
        - role
        - added_at
      title: MemberResponseSchema
      description: Schema for member information including their role in the project.
    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
    RoleResponseSchema:
      properties:
        id:
          type: string
          format: uuid
          title: Role ID
          description: Unique identifier for the role
        name:
          type: string
          title: Role Name
          description: Name of the role (e.g., 'admin', 'member')
        permissions:
          items:
            type: string
          type: array
          title: Permissions
          description: List of permission strings associated with this role
      type: object
      required:
        - id
        - name
        - permissions
      title: RoleResponseSchema
      description: Schema for role information including associated permissions.
  securitySchemes:
    CustomHTTPBearer:
      type: http
      scheme: bearer

````