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

# List tenant audit log

> List recorded events for a tenant (access, policy, admin actions) within a time range. Different from tenant metadata or the tenant list.



## OpenAPI

````yaml GET /beta/tenants/{tenantId}/audit-log
openapi: 3.1.0
info:
  title: Longwave API
  version: 1.0.0
  description: >-
    Programmatic access to Longwave tenant and usage data. Use the dashboard to
    create API keys; authenticate with Bearer tokens.
  contact:
    name: Longwave Support
    email: support@longwavehq.com
servers:
  - url: https://api.longwavehq.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Tenants
    description: List and retrieve tenant metadata
  - name: Auditing
    description: Audit and activity history
paths:
  /beta/tenants/{tenantId}/audit-log:
    get:
      tags:
        - Auditing
      summary: List tenant audit log
      description: >-
        Returns a **paginated list of audit events** (who did what, when) for a
        tenant. This is not tenant profile data; use **Get tenant details** for
        that, or **Get tenant list** to list tenants.
      operationId: listTenantAuditLog
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
        - name: from
          in: query
          required: false
          description: Start of time range (ISO 8601 date-time or date).
          schema:
            type: string
            format: date-time
        - name: to
          in: query
          required: false
          description: End of time range (ISO 8601 date-time or date).
          schema:
            type: string
            format: date-time
        - name: limit
          in: query
          required: false
          description: Maximum events to return (default 100, max 500).
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 100
        - name: cursor
          in: query
          required: false
          description: Opaque cursor for pagination.
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditLogResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '404':
          description: Tenant not found or not accessible for this key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    AuditLogResponse:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/AuditLogEntry'
        nextCursor:
          type: string
          nullable: true
    ErrorBody:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
    AuditLogEntry:
      type: object
      properties:
        id:
          type: string
        occurredAt:
          type: string
          format: date-time
        action:
          type: string
        actor:
          type: string
          description: User or system principal
        resource:
          type: string
        details:
          type: object
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Send as `Authorization: Bearer <your api key>`'

````