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

# Get My Agent Audit

> Paginated audit history for ONE specific agent token.

Customer view — same filter shape as `/api/agent/audit/me`
(actor_type='agent', actor_id=<token id>) plus a customer-scope
check (the token must belong to the calling customer). 404 if
the token doesn't exist for this customer.



## OpenAPI

````yaml /api-reference/openapi.json get /api/storefront/customer/me/agents/{agent_token_id}/audit
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/storefront/customer/me/agents/{agent_token_id}/audit:
    get:
      tags:
        - Storefront
        - Storefront Customer Agents
      summary: Get My Agent Audit
      description: |-
        Paginated audit history for ONE specific agent token.

        Customer view — same filter shape as `/api/agent/audit/me`
        (actor_type='agent', actor_id=<token id>) plus a customer-scope
        check (the token must belong to the calling customer). 404 if
        the token doesn't exist for this customer.
      operationId: >-
        get_my_agent_audit_api_storefront_customer_me_agents__agent_token_id__audit_get
      parameters:
        - name: agent_token_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Agent Token Id
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Limit
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: X-Site-ID
          in: header
          required: true
          schema:
            type: string
            title: X-Site-Id
        - name: X-Stella-Token
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Stella-Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentAuditMeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentAuditMeResponse:
      properties:
        events:
          items:
            $ref: '#/components/schemas/AgentAuditEvent'
          type: array
          title: Events
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        limit:
          type: integer
          title: Limit
        pages:
          type: integer
          title: Pages
      type: object
      required:
        - events
        - total
        - page
        - limit
        - pages
      title: AgentAuditMeResponse
      description: Response shape for `GET /api/agent/audit/me`.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentAuditEvent:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        action:
          type: string
          title: Action
        target_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Target Type
        target_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Target Id
        payload:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Payload
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - action
        - target_type
        - target_id
        - payload
        - created_at
      title: AgentAuditEvent
      description: |-
        Flat audit event projection — what the agent sees about its
        own action history. Excludes ip / user_agent (those are for
        incident response, not for the agent itself).
    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

````