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

# Export audit chain

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

A signed run of sealed audit records, at most 10,000 per call; page with `from_seq` and `to_seq`. `404` when no sealed records are in range.



## OpenAPI

````yaml https://cp.xenovia.io/openapi.json get /api/v1/orgs/{org_id}/audit-logs/export
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/export:
    get:
      tags:
        - audit-logs
      summary: Export audit chain
      description: >-
        **Auth:** organization API key (`read` scope or higher) or a signed-in
        organization admin.


        A signed run of sealed audit records, at most 10,000 per call; page with
        `from_seq` and `to_seq`. `404` when no sealed records are in range.
      operationId: export_org_audit_chain_api_v1_orgs__org_id__audit_logs_export_get
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            title: Org Id
        - name: from_seq
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 1
              - type: 'null'
            title: From Seq
        - name: to_seq
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 1
              - type: 'null'
            title: To Seq
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignedAuditExport'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SignedAuditExport:
      properties:
        payload:
          type: string
          title: Payload
        signature:
          type: string
          title: Signature
        key_id:
          type: string
          title: Key Id
        alg:
          type: string
          const: ed25519
          title: Alg
      type: object
      required:
        - payload
        - signature
        - key_id
        - alg
      title: SignedAuditExport
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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.