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

# Get one audit log entry



## OpenAPI

````yaml https://api.timbrix.mx/api/openapi.json get /audit-logs/{id}
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/{id}:
    get:
      tags:
        - audit-logs
      summary: Get one audit log entry
      operationId: AuditLogsController_get
      parameters:
        - name: id
          required: true
          in: path
          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: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditLogItemDto'
        '404':
          description: Not found in this organization
      security:
        - apiKey: []
        - bearer: []
components:
  schemas:
    AuditLogItemDto:
      type: object
      properties:
        id:
          type: string
        organizationId:
          type: string
        seq:
          type: number
          description: Consecutivo de la entrada en la organización
        occurredAt:
          type: string
          example: '2026-10-26T05:30:00.000Z'
        action:
          type: string
          enum:
            - cfdi.stamped
            - cfdi.stamp_failed
            - cfdi.xml_downloaded
            - cfdi.pdf_downloaded
            - cfdi.emailed
            - cancellation.requested
            - cancellation.accepted
            - cancellation.rejected
            - cancellation.pending
            - certificate.uploaded
            - certificate.rotated
            - certificate.deleted
            - customer.created
            - customer.updated
            - customer.deleted
            - product.created
            - product.updated
            - product.deleted
            - product.imported
            - organization.updated
            - organization.legal_data_updated
            - organization.branding_updated
            - organization.closed
            - organization.reopened
            - organization.deleted
            - organization.plan_changed
            - member.invited
            - member.invite_cancelled
            - member.joined
            - member.invite_declined
            - member.role_changed
            - member.removed
            - api_key.created
            - api_key.activated
            - api_key.deactivated
            - api_key.deleted
            - webhook.created
            - webhook.updated
            - webhook.deleted
            - oauth_app.created
            - oauth_app.updated
            - oauth_app.deleted
            - report.exported
            - audit_log.exported
        result:
          type: string
          enum:
            - success
            - failure
        actorType:
          type: string
          enum:
            - user
            - api_key
            - system
        actorUserId:
          type: object
          nullable: true
        actorApiKeyId:
          type: object
          nullable: true
        actorLabel:
          type: object
          nullable: true
          description: Email de la persona, o nombre y preview de la llave
        resourceType:
          type: string
          enum:
            - cfdi
            - customer
            - product
            - certificate
            - member
            - api_key
            - webhook
            - oauth_app
            - organization
            - report
            - audit_log
        resourceId:
          type: object
          nullable: true
        channel:
          type: object
          nullable: true
          example: api
        environment:
          type: string
          nullable: true
          enum:
            - production
            - sandbox
        ip:
          type: object
          nullable: true
          description: IP observada por la API
        clientIp:
          type: object
          nullable: true
          description: IP reportada por el navegador (informativa, no verificada)
        userAgent:
          type: object
          nullable: true
        requestId:
          type: object
          nullable: true
        changedFields:
          nullable: true
          type: array
          items:
            type: string
        metadata:
          type: object
          additionalProperties: true
      required:
        - id
        - organizationId
        - seq
        - occurredAt
        - action
        - result
        - actorType
        - resourceType
        - metadata
  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.