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

# Verify audit chain

> **Auth:** organization API key (`read` scope or higher) or a signed-in organization admin.

Recomputes every retained link of the organization's audit chain and reports whether it is `intact`.



## OpenAPI

````yaml https://cp.xenovia.io/openapi.json get /api/v1/orgs/{org_id}/audit-logs/verify
openapi: 3.1.0
info:
  title: Xenovia Control Plane API
  version: 1.0.0
  description: >-
    Management API for agents, providers, policies, telemetry, alerts and
    organization settings.
servers:
  - url: https://cp.xenovia.io
    description: Production
security:
  - BearerAuth: []
paths:
  /api/v1/orgs/{org_id}/audit-logs/verify:
    get:
      tags:
        - audit-logs
      summary: Verify audit chain
      description: >-
        **Auth:** organization API key (`read` scope or higher) or a signed-in
        organization admin.


        Recomputes every retained link of the organization's audit chain and
        reports whether it is `intact`.
      operationId: verify_org_audit_chain_api_v1_orgs__org_id__audit_logs_verify_get
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            title: Org Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditChainVerification'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AuditChainVerification:
      properties:
        intact:
          type: boolean
          title: Intact
        checked:
          type: integer
          title: Checked
        first_seq:
          anyOf:
            - type: integer
            - type: 'null'
          title: First Seq
        last_seq:
          anyOf:
            - type: integer
            - type: 'null'
          title: Last Seq
        head_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Head Hash
        anchor_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Anchor Hash
        unsealed:
          type: integer
          title: Unsealed
        breaks:
          items:
            $ref: '#/components/schemas/AuditChainBreak'
          type: array
          title: Breaks
      type: object
      required:
        - intact
        - checked
        - first_seq
        - last_seq
        - head_hash
        - anchor_hash
        - unsealed
        - breaks
      title: AuditChainVerification
      description: The result of recomputing an organisation's retained chain.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AuditChainBreak:
      properties:
        chain_seq:
          type: integer
          title: Chain Seq
        kind:
          type: string
          enum:
            - missing
            - relinked
            - altered
          title: Kind
        detail:
          type: string
          title: Detail
      type: object
      required:
        - chain_seq
        - kind
        - detail
      title: AuditChainBreak
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token: an organization API key (`ak_…`) created under Settings →
        API Keys, or a dashboard user session token. Agent keys (`xe_…`) are not
        accepted here. Endpoints marked as user-only in their description reject
        organization keys with `403`.

````

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