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

# List Customer Sessions

> List every customer access token row (active + revoked + expired)
for this customer, newest first. The `is_active` flag computed
server-side combines `revoked_at IS NULL` and `expires_at > NOW`
so the dashboard can render status without re-implementing the
rule.



## OpenAPI

````yaml /api-reference/openapi.json get /api/dashboard/customers/{customer_id}/sessions
openapi: 3.1.0
info:
  title: Agentic Commerce API
  description: |2-

        Agentic Commerce API - E-commerce Backend

        ## APIs

        ### Dashboard API (`/api/dashboard`)
        Authenticated endpoints for merchant management:
        - Products, Variants, Options
        - Inventory management
        - Orders and fulfillment
        - Customers
        - Collections

        ### Storefront API (`/api/storefront`)
        Public endpoints for client websites:
        - Product catalog
        - Collections
        - Cart management
        - Checkout

        ### Sync API (`/api/sync`)
        Integration endpoints for zunkiree-search:
        - Product sync
        - Availability checks
        - Order creation from AI widget
        
  version: 1.0.0
servers: []
security: []
paths:
  /api/dashboard/customers/{customer_id}/sessions:
    get:
      tags:
        - Dashboard
        - Customers
      summary: List Customer Sessions
      description: |-
        List every customer access token row (active + revoked + expired)
        for this customer, newest first. The `is_active` flag computed
        server-side combines `revoked_at IS NULL` and `expires_at > NOW`
        so the dashboard can render status without re-implementing the
        rule.
      operationId: >-
        list_customer_sessions_api_dashboard_customers__customer_id__sessions_get
      parameters:
        - name: customer_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Customer Id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
        - name: X-Stella-Merchant-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Stella-Merchant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerSessionListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CustomerSessionListResponse:
      properties:
        sessions:
          items:
            $ref: '#/components/schemas/CustomerSessionResponse'
          type: array
          title: Sessions
      type: object
      required:
        - sessions
      title: CustomerSessionListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CustomerSessionResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        secret_prefix:
          type: string
          title: Secret Prefix
        user_agent:
          anyOf:
            - type: string
            - type: 'null'
          title: User Agent
        ip_address:
          anyOf:
            - type: string
            - type: 'null'
          title: Ip Address
        created_at:
          type: string
          format: date-time
          title: Created At
        last_used_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Used At
        expires_at:
          type: string
          format: date-time
          title: Expires At
        revoked_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Revoked At
        is_active:
          type: boolean
          title: Is Active
      type: object
      required:
        - id
        - secret_prefix
        - user_agent
        - ip_address
        - created_at
        - last_used_at
        - expires_at
        - revoked_at
        - is_active
      title: CustomerSessionResponse
      description: |-
        A `customer_access_tokens` row, projected for the merchant
        dashboard. Never returns the secret hash; `secret_prefix` is the
        8-char log-safe identifier (the same one already shown to humans
        elsewhere).
    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

````