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

# List a run's failure-group members

> Returns one entry per failed test in the run that is attached to a failure group, with the group's content hydrated. Read from the canonical membership-event log; when several sources attached the same test, human wins over agent over machine. Dedupe on group_id for the run's distinct groups.



## OpenAPI

````yaml /api-reference/openapi.generated.json get /api/failure-groups/members
openapi: 3.1.0
info:
  title: Empirical API
  version: 1.0.0
  description: Programmatic access to Empirical test runs, snoozes, and more.
  contact:
    name: Empirical
    url: https://empirical.run
servers:
  - url: https://api.empirical.run
security:
  - Bearer: []
tags:
  - name: Test Runs
    description: Trigger, list, and inspect end-to-end test runs.
  - name: Test Cases
    description: >-
      Browse the Playwright test cases synced from a project's repository and
      manage their tags.
  - name: Environments
    description: >-
      Named deployment targets (slug + Playwright project filters) a project's
      tests run against.
  - name: Snoozes
    description: Temporarily suppress known test failures for specific Playwright tests.
  - name: Analytics
    description: Aggregated test-run, test-count and test-case analytics for a project.
  - name: Resources
    description: >-
      Project file resources — uploads stored in R2 and external link-type files
      (e.g. Google Sheets).
  - name: Failure Groups
    description: >-
      Durable, cross-run identities for failure modes, carrying the latest
      triage diagnosis.
  - name: Badges
    description: Public README status badge images (SVG) for project environments.
paths:
  /api/failure-groups/members:
    get:
      tags:
        - Failure Groups
      summary: List a run's failure-group members
      description: >-
        Returns one entry per failed test in the run that is attached to a
        failure group, with the group's content hydrated. Read from the
        canonical membership-event log; when several sources attached the same
        test, human wins over agent over machine. Dedupe on group_id for the
        run's distinct groups.
      operationId: listFailureGroupMembersByTestRun
      parameters:
        - schema:
            type: integer
            minimum: 1
            description: Return members attached during this run.
          required: true
          description: Return members attached during this run.
          name: test_run_id
          in: query
      responses:
        '200':
          description: Members attached during the run.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembersByTestRunResponse'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    MembersByTestRunResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            members:
              type: array
              items:
                $ref: '#/components/schemas/MemberByTestRun'
          required:
            - members
          description: Response payload.
      required:
        - data
    ErrorResponse:
      type: object
      properties:
        data:
          nullable: true
          description: Always null for error responses.
        error:
          type: object
          properties:
            message:
              type: string
              description: Human-readable error message.
          required:
            - message
          description: Error details.
      required:
        - data
        - error
    MemberByTestRun:
      type: object
      properties:
        test_case_id:
          type: string
          description: Test case ID (normalized 41-character Playwright test id).
        group_id:
          type: string
        label:
          type: string
          nullable: true
        type:
          type: string
          nullable: true
          enum:
            - app
            - test
        status:
          type: string
          nullable: true
          enum:
            - open
            - resolved
        diagnosis:
          type: string
          nullable: true
        recommendation:
          type: string
          nullable: true
        match_source:
          type: string
          nullable: true
          enum:
            - machine
            - agent
            - human
            - system
        match_score:
          type: number
          nullable: true
        chat_session_id:
          type: integer
          nullable: true
        matched_at:
          type: string
          nullable: true
        detached_at:
          type: string
          nullable: true
      required:
        - test_case_id
        - group_id
        - label
        - type
        - status
        - diagnosis
        - recommendation
        - match_source
        - match_score
        - chat_session_id
        - matched_at
        - detached_at
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer

````