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

# Export the audit log as CSV (admin)

> Admin-only. CSV of the entries matching the same filters as `GET /api/v1/audit-log` (no `limit`/`cursor`), newest first, capped at 50,000 rows. The export itself is recorded as an audit event. `Content-Disposition` is `attachment; filename="datris-audit-log.csv"`.



## OpenAPI

````yaml /openapi.yaml get /api/v1/audit-log/export
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.57.1
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/audit-log/export:
    get:
      tags:
        - Audit Log
      summary: Export the audit log as CSV (admin)
      description: >-
        Admin-only. CSV of the entries matching the same filters as `GET
        /api/v1/audit-log` (no `limit`/`cursor`), newest first, capped at 50,000
        rows. The export itself is recorded as an audit event.
        `Content-Disposition` is `attachment; filename="datris-audit-log.csv"`.
      parameters:
        - name: since
          in: query
          required: false
          schema:
            type: string
        - name: until
          in: query
          required: false
          schema:
            type: string
        - name: category
          in: query
          required: false
          schema:
            type: string
        - name: action
          in: query
          required: false
          schema:
            type: string
        - name: actor
          in: query
          required: false
          schema:
            type: string
        - name: actorType
          in: query
          required: false
          schema:
            type: string
        - name: outcome
          in: query
          required: false
          schema:
            type: string
        - name: resource
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: >-
            CSV with header
            `ts,actorType,actor,keyLabel,keyId,username,category,action,resourceType,resource,outcome,httpStatus,durationMs,ip,method,path,errorMessage`
          content:
            text/csv:
              schema:
                type: string
        '404':
          description: >-
            The audit log is not enabled. Body: `{"enabled": false, "error":
            ...}`
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.