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

# Get CoverBot coverage gains



## OpenAPI

````yaml get /coverbot-coverage-gains
openapi: 3.0.0
info:
  version: 1.0.0
  title: Tusk Analytics API
servers:
  - url: https://use-tusk.uc.r.appspot.com/api/v1/analytics
security: []
paths:
  /coverbot-coverage-gains:
    get:
      tags:
        - Analytics
      summary: Get CoverBot coverage gains
      parameters:
        - schema:
            type: string
            description: Start date to filter by (inclusive)
            format: date-time
          required: false
          name: startDate
          in: query
        - schema:
            type: string
            description: End date to filter by (inclusive)
            format: date-time
          required: false
          name: endDate
          in: query
        - schema:
            type: array
            description: Repo IDs to filter by
            items:
              type: number
          required: false
          name: repoIds
          in: query
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        clientId:
                          type: string
                          format: uuid
                        repoId:
                          type: number
                          nullable: true
                        repoName:
                          type: string
                        scheduledTestRunId:
                          type: string
                          format: uuid
                        prNumber:
                          type: number
                          nullable: true
                        prTitle:
                          type: string
                          nullable: true
                        prStatus:
                          type: string
                        prCreatedAt:
                          type: string
                          nullable: true
                        status:
                          type: string
                          enum:
                            - pending
                            - running
                            - completed
                            - failed
                            - internal_failure
                        runType:
                          type: string
                          enum:
                            - scheduled
                            - manual_trigger
                            - dry_run
                        strategy:
                          type: string
                          enum:
                            - files_with_low_coverage
                            - intelligent_grouping
                        createdAt:
                          type: string
                          nullable: true
                        updatedAt:
                          type: string
                          nullable: true
                        runAverageLineCoverageGain:
                          type: number
                          nullable: true
                        runAverageBranchCoverageGain:
                          type: number
                          nullable: true
                        requestedPrReviewers:
                          type: array
                          items:
                            type: string
                        filePath:
                          type: string
                          nullable: true
                        lineCoverageBefore:
                          type: number
                          nullable: true
                        lineCoverageAfter:
                          type: number
                          nullable: true
                        lineCoverageGain:
                          type: number
                          nullable: true
                        branchCoverageBefore:
                          type: number
                          nullable: true
                        branchCoverageAfter:
                          type: number
                          nullable: true
                        branchCoverageGain:
                          type: number
                          nullable: true
                        externalPullRequestUrl:
                          type: string
                          nullable: true
                      required:
                        - clientId
                        - repoId
                        - repoName
                        - scheduledTestRunId
                        - prNumber
                        - prTitle
                        - prStatus
                        - prCreatedAt
                        - status
                        - runType
                        - strategy
                        - createdAt
                        - updatedAt
                        - runAverageLineCoverageGain
                        - runAverageBranchCoverageGain
                        - requestedPrReviewers
                        - filePath
                        - lineCoverageBefore
                        - lineCoverageAfter
                        - lineCoverageGain
                        - branchCoverageBefore
                        - branchCoverageAfter
                        - branchCoverageGain
                        - externalPullRequestUrl
                  count:
                    type: number
                required:
                  - data
                  - count
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````