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

# Get the current background merge job for a branch



## OpenAPI

````yaml /openapi/customer-api.json get /project/{projectId}/branch/{id}/merge-status
openapi: 3.0.0
info:
  contact: {}
  description: >-
    Flow customer API reference. Start with the [quickstart](/api/quickstart)
    and [authentication guide](/api/authentication).
  title: Customer API
  version: 1.0.0
servers:
  - description: Flow API
    url: https://backend.branch.flowengineering.com
security: []
tags:
  - name: Automations
  - name: Branches
  - name: Comments
  - name: Convert
  - name: Data Model
  - name: Diagrams
  - name: Entities
  - name: Files
  - name: Import
  - name: Notifications
  - name: Projects
  - name: ReqIF
  - name: ReqIF Import
  - name: Shared Access Grants
  - name: User Groups
  - name: Users
paths:
  /project/{projectId}/branch/{id}/merge-status:
    get:
      tags:
        - Branches
      summary: Get the current background merge job for a branch
      operationId: BranchController_mergeStatus
      parameters:
        - in: path
          name: projectId
          required: true
          schema:
            description: >-
              Project UUID, not a slug. Resolve a slug with GET
              /project/slug/{slug} using the same workspace and credentials,
              then pass the returned id.
            type: string
        - in: path
          name: id
          required: true
          schema:
            type: string
        - description: Workspace identifier
          in: header
          name: customer
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BranchMergeJobResponseDto'
          description: ''
      security:
        - api-key: []
        - bearer: []
components:
  schemas:
    BranchMergeJobResponseDto:
      properties:
        attempts:
          type: number
        branch_id:
          type: string
        completed_at:
          type: string
        enqueued_at:
          type: string
        id:
          type: string
        last_error:
          type: string
        last_error_reference:
          type: string
        progress_percent:
          type: number
        project_id:
          type: string
        replayed_diff_count:
          type: number
        started_at:
          type: string
        status:
          enum:
            - queued
            - running
            - succeeded
            - failed
          type: string
        total_diff_count:
          type: number
        updated_at:
          type: string
      required:
        - id
        - branch_id
        - project_id
        - status
        - attempts
        - replayed_diff_count
        - total_diff_count
        - progress_percent
        - enqueued_at
        - updated_at
      type: object
  securitySchemes:
    api-key:
      in: header
      name: X-API-Key
      type: apiKey
    bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````