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

# Verify the audit log hash chain

> Recomputes the organization's hash chain. `valid: false` and `firstBrokenSeq` point at the first altered, removed or inserted entry.



## OpenAPI

````yaml https://api.timbrix.mx/api/openapi.json get /audit-logs/verify
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/verify:
    get:
      tags:
        - audit-logs
      summary: Verify the audit log hash chain
      description: >-
        Recomputes the organization's hash chain. `valid: false` and
        `firstBrokenSeq` point at the first altered, removed or inserted entry.
      operationId: AuditLogsController_verify
      parameters:
        - 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/AuditChainVerificationDto'
      security:
        - apiKey: []
        - bearer: []
components:
  schemas:
    AuditChainVerificationDto:
      type: object
      properties:
        valid:
          type: boolean
          description: true si ninguna entrada fue alterada ni borrada
        checkedEntries:
          type: number
          example: 120
        firstBrokenSeq:
          type: object
          nullable: true
          description: seq de la primera entrada que rompe la cadena
      required:
        - valid
        - checkedEntries
  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.