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

# List Audit Logs

> List audit events for the current workspace.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/audit-logs/
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/audit-logs/:
    get:
      tags:
        - v1
        - protected
        - audit
      summary: List Audit Logs
      description: List audit events for the current workspace.
      operationId: list_audit_logs_v1_audit_logs__get
      parameters:
        - description: Filter by action (e.g. agent.create)
          in: query
          name: action
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by action (e.g. agent.create)
            title: Action
        - description: Filter by actor ID
          in: query
          name: actor_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by actor ID
            title: Actor Id
        - description: Filter by resource type
          in: query
          name: resource_type
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by resource type
            title: Resource Type
        - description: Filter by resource ID
          in: query
          name: resource_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by resource ID
            title: Resource Id
        - description: Events after this time (ISO 8601)
          in: query
          name: since
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            description: Events after this time (ISO 8601)
            title: Since
        - description: Events before this time (ISO 8601)
          in: query
          name: until
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            description: Events before this time (ISO 8601)
            title: Until
        - description: Cursor for pagination
          in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - format: uuid
                type: string
              - type: 'null'
            description: Cursor for pagination
            title: Cursor
        - description: Max events to return
          in: query
          name: limit
          required: false
          schema:
            default: 50
            description: Max events to return
            maximum: 100
            minimum: 1
            title: Limit
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditLogListResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    AuditLogListResponse:
      description: Paginated audit log response.
      properties:
        events:
          items:
            $ref: '#/components/schemas/AuditEventResponse'
          title: Events
          type: array
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      required:
        - events
        - next_cursor
      title: AuditLogListResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    AuditEventResponse:
      description: Audit event response schema.
      properties:
        action:
          title: Action
          type: string
        actor_id:
          title: Actor Id
          type: string
        actor_type:
          title: Actor Type
          type: string
        changes:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Changes
        created_at:
          title: Created At
          type: string
        event_metadata:
          additionalProperties: true
          title: Event Metadata
          type: object
        id:
          format: uuid
          title: Id
          type: string
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
        resource_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Resource Id
        resource_type:
          title: Resource Type
          type: string
        source_ip:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Ip
        user_agent:
          anyOf:
            - type: string
            - type: 'null'
          title: User Agent
        workspace_id:
          title: Workspace Id
          type: string
      required:
        - id
        - created_at
        - actor_id
        - actor_type
        - workspace_id
        - source_ip
        - user_agent
        - request_id
        - action
        - resource_type
        - resource_id
        - changes
        - event_metadata
      title: AuditEventResponse
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````