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

# Who the caller is

> Returns the authenticated caller: Depict staff or a Shopify store user, with the emails analytics and the support widget use. No merchant needed. Read-only.



## OpenAPI

````yaml /api-reference/openapi/lite.json get /users/me
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:
  /users/me:
    get:
      summary: Who the caller is
      description: >-
        Returns the authenticated caller: Depict staff or a Shopify store user,
        with the emails analytics and the support widget use. No merchant
        needed. Read-only.
      operationId: getCurrentUser
      responses:
        '200':
          description: The caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LiteUser'
        '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:
    LiteUser:
      type: object
      properties:
        email:
          type:
            - string
            - 'null'
          description: >-
            Access email for staff; for a Shopify user, the staff email
            /tracking/launch recorded (null before the first launch).
        segment_user_id:
          type: string
          description: >-
            Analytics identity: the email for staff, the Shopify user id
            otherwise.
        is_superuser:
          type: boolean
          description: Depict staff (Cloudflare Access).
        shopify_domain:
          type:
            - string
            - 'null'
          description: The session's `*.myshopify.com` domain; null for staff.
        staff_email:
          type:
            - string
            - 'null'
        staff_first_name:
          type:
            - string
            - 'null'
          description: Always null.
        staff_last_name:
          type:
            - string
            - 'null'
          description: Always null.
        contact_email:
          type:
            - string
            - 'null'
          description: Always null.
        pylon_email_hash:
          type:
            - string
            - 'null'
          description: >-
            HMAC of the email for the Pylon support widget; null without an
            email.
      required:
        - email
        - segment_user_id
        - is_superuser
        - shopify_domain
        - staff_email
        - staff_first_name
        - staff_last_name
        - contact_email
        - pylon_email_hash
    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.

````