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

# Get Garmin Backfill Status Endpoint

> Get Garmin backfill status for backfill data types.

The backfill is webhook-based and auto-triggered after OAuth connection.
Returns status for each data type independently. Max 30 days of history.

**Response Fields:**
- `overall_status`: pending | in_progress | complete | cancelled | retry_in_progress | permanently_failed
- `current_window`: Current window index (0-based)
- `total_windows`: Total number of 30-day windows (12)
- `windows`: Per-window-per-type matrix with done/pending/timed_out/failed states
- `summary`: Per-type aggregated counts (done, timed_out, failed)
- `in_progress`: Whether backfill is currently running (true for in_progress or retry_in_progress)
- `retry_phase`: Whether the retry phase is currently active
- `retry_type`: Data type currently being retried (null if not retrying)
- `retry_window`: Window index being retried (null if not retrying)
- `attempt_count`: Number of GC-and-retry cycles completed
- `max_attempts`: Maximum GC-and-retry cycles before permanently failed (3)
- `permanently_failed`: Whether backfill has exhausted all retry attempts

**Window Cell States:**
- `done`: Data received via webhook or Garmin API error (treated as done)
- `pending`: Not yet processed
- `timed_out`: No webhook received within timeout (warning)
- `failed`: Permanently failed after retry attempt (error)



## OpenAPI

````yaml https://api.openwearables.io/openapi.json get /api/v1/providers/garmin/users/{user_id}/backfill/status
openapi: 3.1.0
info:
  title: Open Wearables API
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/providers/garmin/users/{user_id}/backfill/status:
    get:
      tags:
        - 'External: Data Sync'
      summary: Get Garmin Backfill Status Endpoint
      description: >-
        Get Garmin backfill status for backfill data types.


        The backfill is webhook-based and auto-triggered after OAuth connection.

        Returns status for each data type independently. Max 30 days of history.


        **Response Fields:**

        - `overall_status`: pending | in_progress | complete | cancelled |
        retry_in_progress | permanently_failed

        - `current_window`: Current window index (0-based)

        - `total_windows`: Total number of 30-day windows (12)

        - `windows`: Per-window-per-type matrix with
        done/pending/timed_out/failed states

        - `summary`: Per-type aggregated counts (done, timed_out, failed)

        - `in_progress`: Whether backfill is currently running (true for
        in_progress or retry_in_progress)

        - `retry_phase`: Whether the retry phase is currently active

        - `retry_type`: Data type currently being retried (null if not retrying)

        - `retry_window`: Window index being retried (null if not retrying)

        - `attempt_count`: Number of GC-and-retry cycles completed

        - `max_attempts`: Maximum GC-and-retry cycles before permanently failed
        (3)

        - `permanently_failed`: Whether backfill has exhausted all retry
        attempts


        **Window Cell States:**

        - `done`: Data received via webhook or Garmin API error (treated as
        done)

        - `pending`: Not yet processed

        - `timed_out`: No webhook received within timeout (warning)

        - `failed`: Permanently failed after retry attempt (error)
      operationId: >-
        get_garmin_backfill_status_endpoint_api_v1_providers_garmin_users__user_id__backfill_status_get
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: User Id
        - name: X-Open-Wearables-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Open-Wearables-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Get Garmin Backfill Status Endpoint Api V1 Providers
                  Garmin Users  User Id  Backfill Status Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /api/v1/auth/login

````