> ## 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.

# Whether the store's stored Shopify token still works

> Probes the stored offline Admin API token of the store in the caller's session token. Returns `needs_reinstall: true` when the store is unknown, has no usable config, or Shopify answers 401 for the token (then marks the app uninstalled); the app then re-runs the install flow. Any other Shopify answer, 403 included, is `false`. Needs a Shopify session token.



## OpenAPI

````yaml /api-reference/openapi/lite.json get /merchant-create/check-token-health/
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:
  /merchant-create/check-token-health/:
    get:
      summary: Whether the store's stored Shopify token still works
      description: >-
        Probes the stored offline Admin API token of the store in the caller's
        session token. Returns `needs_reinstall: true` when the store is
        unknown, has no usable config, or Shopify answers 401 for the token
        (then marks the app uninstalled); the app then re-runs the install flow.
        Any other Shopify answer, 403 included, is `false`. Needs a Shopify
        session token.
      operationId: checkTokenHealth
      responses:
        '200':
          description: The verdict.
          content:
            application/json:
              schema:
                type: object
                properties:
                  needs_reinstall:
                    type: boolean
                    description: true = run the install flow again to get a fresh token.
                required:
                  - needs_reinstall
        '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'
        '500':
          description: Internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
components:
  schemas:
    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.

````