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

# Get Repair Diff

> A repair's change for review: its files, PR and head commit, and the run's evidence.

The evidence is the agent's diagnosis and the requests verification replays,
which a floo-hosted owner could otherwise see only on GitHub or not at all. A
recommendation has no PR, so its files come from the agent's own diff.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json get /v1/apps/{app_id}/reparo/events/{event_id}/diff
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/reparo/events/{event_id}/diff:
    get:
      tags:
        - reparo
      summary: Get Repair Diff
      description: >-
        A repair's change for review: its files, PR and head commit, and the
        run's evidence.


        The evidence is the agent's diagnosis and the requests verification
        replays,

        which a floo-hosted owner could otherwise see only on GitHub or not at
        all. A

        recommendation has no PR, so its files come from the agent's own diff.
      operationId: reparo_get_repair_diff
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - name: event_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Event Id
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RepairDiffResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    RepairDiffResponse:
      properties:
        pr_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Pr Url
        head_sha:
          anyOf:
            - type: string
            - type: 'null'
          title: Head Sha
        changed_files:
          type: integer
          title: Changed Files
        files:
          items:
            $ref: '#/components/schemas/RepairDiffFile'
          type: array
          title: Files
        diagnosis:
          anyOf:
            - type: string
            - type: 'null'
          title: Diagnosis
        reproduction_service:
          anyOf:
            - type: string
            - type: 'null'
          title: Reproduction Service
        reproduction:
          items:
            $ref: '#/components/schemas/RepairReproRequest'
          type: array
          title: Reproduction
        reproduction_blocked:
          anyOf:
            - $ref: '#/components/schemas/ReplayBlock'
            - type: 'null'
      type: object
      required:
        - pr_url
        - head_sha
        - changed_files
        - files
        - diagnosis
        - reproduction_service
        - reproduction
        - reproduction_blocked
      title: RepairDiffResponse
      description: The change a repair proposes, for review where GitHub is out of reach.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    RepairDiffFile:
      properties:
        filename:
          type: string
          title: Filename
        status:
          type: string
          title: Status
        additions:
          type: integer
          title: Additions
        deletions:
          type: integer
          title: Deletions
        patch:
          anyOf:
            - type: string
            - type: 'null'
          title: Patch
        previous_filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Previous Filename
      type: object
      required:
        - filename
        - status
        - additions
        - deletions
      title: RepairDiffFile
      description: One file a repair's PR changes, as GitHub reports it.
    RepairReproRequest:
      properties:
        method:
          type: string
          title: Method
        path:
          type: string
          title: Path
        body:
          anyOf:
            - type: string
            - type: 'null'
          title: Body
      type: object
      required:
        - method
        - path
      title: RepairReproRequest
      description: >-
        One request floo replays against the fix's preview: its method, path and
        body.


        The agent's own headers, which the replay also sends, are not shown.
    ReplayBlock:
      type: string
      enum:
        - service_not_public
        - preview_protected
      title: ReplayBlock
      description: >-
        Why a replay of a run's reproduction would send nothing, so the run
        cannot verify.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.