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

# Every theme-onboarding run for a merchant, newest first

> The full history behind the admin Theme Onboardings page: per run, the theme, when it ran, and each resource Depict generated (with the patched file and whether it changed against the next-older run). Unpaginated and potentially tens of MB for long-lived stores; bodies past 8 MB stream, so a late failure truncates the body instead of answering 500. Read-only; for support/debugging, not for routine polling.



## OpenAPI

````yaml /api-reference/openapi/lite.json get /onboarding/{merchant_id}/onboardings
openapi: 3.1.0
info:
  title: Search & Merchandising API
  version: 1.0.0
  description: >-
    REST API behind Depict: Search & Merchandising, the native Shopify app:
    onboarding, collections, boost & bury, dashboards, A/B testing and
    multi-store management. Endpoints are served under the /api/lite prefix and
    are authenticated with the Shopify session token that App Bridge issues to
    the embedded app.
servers:
  - url: /api/lite
security:
  - ShopifySessionToken: []
paths:
  /onboarding/{merchant_id}/onboardings:
    get:
      summary: Every theme-onboarding run for a merchant, newest first
      description: >-
        The full history behind the admin Theme Onboardings page: per run, the
        theme, when it ran, and each resource Depict generated (with the patched
        file and whether it changed against the next-older run). Unpaginated and
        potentially tens of MB for long-lived stores; bodies past 8 MB stream,
        so a late failure truncates the body instead of answering 500.
        Read-only; for support/debugging, not for routine polling.
      operationId: onboardingBundles
      parameters:
        - schema:
            type: string
            description: Lite merchant id, e.g. `shopify-<shop id>`.
          required: true
          description: Lite merchant id, e.g. `shopify-<shop id>`.
          name: merchant_id
          in: path
      responses:
        '200':
          description: The runs, newest first.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ThemeOnboardingResult'
        '401':
          description: Not authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '403':
          description: Authenticated, but this identity may not call the API.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '404':
          description: Merchant not found for this caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '500':
          description: Internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
components:
  schemas:
    ThemeOnboardingResult:
      type: object
      properties:
        theme_id:
          type: integer
        timestamp:
          type: string
          description: 'When the onboarding ran (ISO 8601, no zone: UTC).'
        has_changes:
          type: boolean
          description: Any resource changed against the next-older run.
        resources:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
                description: Theme asset key.
              content:
                type: string
              type:
                type: string
                enum:
                  - collection_template
                  - product_grid
                  - product_card
                  - settings
                  - empty_template
                  - empty_grid
                  - generated
              patched_resource:
                type:
                  - object
                  - 'null'
                properties:
                  path:
                    type: string
                    description: Theme asset key.
                  content:
                    type: string
                required:
                  - path
                  - content
                description: The file as Depict patched it, when the onboarding wrote one.
              changed:
                type: boolean
                description: >-
                  Differs from the same path in the next-older run (across
                  themes).
              error:
                type:
                  - string
                  - 'null'
            required:
              - path
              - content
              - type
              - patched_resource
              - changed
              - error
      required:
        - theme_id
        - timestamp
        - has_changes
        - resources
    Detail:
      type: object
      properties:
        detail:
          type: string
      required:
        - detail
      description: 'Every 4xx/5xx body: `{detail}`.'
  securitySchemes:
    ShopifySessionToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Shopify App Bridge session token of the embedded Depict: Search &
        Merchandising app. The shop in the token determines the merchant;
        merchant_id parameters must belong to that shop.

````