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

# Export audit log entries as CSV

> Same filters as the list. Dates in Mexico City time. Up to 50000 rows; narrow the filters if you hit the limit.



## OpenAPI

````yaml https://api.timbrix.mx/api/openapi.json get /audit-logs/export.csv
openapi: 3.0.0
info:
  title: Timbrix API
  description: >-
    API de facturación electrónica CFDI 4.0 para México, con servidor OAuth2
    para gestionar organizaciones, miembros y webhooks. Compatible con agentes
    de IA — ver la extensión `x-ai-agent-friendly` en la raíz de esta spec.


    REST API with OAuth2 server for managing organizations, members, and
    webhooks.
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: organizations
    description: Organization management endpoints
  - name: oauth
    description: OAuth2 authentication and authorization
  - name: webhooks
    description: Webhook configuration and delivery
  - name: users
    description: User information endpoints
  - name: api-keys
    description: API Keys management and validation
  - name: request-logs
    description: API request log
paths:
  /audit-logs/export.csv:
    get:
      tags:
        - audit-logs
      summary: Export audit log entries as CSV
      description: >-
        Same filters as the list. Dates in Mexico City time. Up to 50000 rows;
        narrow the filters if you hit the limit.
      operationId: AuditLogsController_exportCsv
      parameters:
        - name: from
          required: false
          in: query
          description: >-
            Inicio (ISO 8601). Una fecha sola (YYYY-MM-DD) cuenta desde las
            00:00 hora de México.
          schema:
            example: '2026-10-01'
            type: string
        - name: to
          required: false
          in: query
          description: >-
            Fin (ISO 8601), inclusivo. Una fecha sola (YYYY-MM-DD) incluye todo
            ese día en hora de México.
          schema:
            example: '2026-10-31'
            type: string
        - name: action
          required: false
          in: query
          description: Lista de acciones del catálogo separadas por comas.
          schema:
            example: cfdi.stamped,cancellation.requested
            type: string
        - name: actorUserId
          required: false
          in: query
          description: Persona que hizo la acción
          schema:
            type: string
        - name: actorApiKeyId
          required: false
          in: query
          description: API key con la que se hizo la acción
          schema:
            type: string
        - name: resourceType
          required: false
          in: query
          schema:
            type: string
            enum:
              - cfdi
              - customer
              - product
              - certificate
              - member
              - api_key
              - webhook
              - oauth_app
              - organization
              - report
              - audit_log
        - name: resourceId
          required: false
          in: query
          description: UUID fiscal, id interno o RFC, según el recurso
          schema:
            type: string
        - name: X-Organization-Id
          in: header
          description: >-
            Required for Supabase session auth (owner or admin). Ignored with an
            API key.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: CSV de la bitácora
        '422':
          description: 'AUDIT_EXPORT_TOO_LARGE: más de 50000 registros'
      security:
        - apiKey: []
        - bearer: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API Key for authentication (format: sk_...)'
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

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