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

# Export AuditRecords for SIEM ingestion

> Returns a resumable export document of AuditRecords in ledger order, accepting the same filters as `audit.listAudit` in the request body. Resume by passing the previous response's `next_after` as `after`; a null `next_after` means the filtered range is exhausted. Despite the POST method this writes nothing — the body carries the query because the filter set exceeds a practical query string.

Checkfu support posture: alpha; hosted. Required evidence journey: governance-registry. Deployment-specific readiness and the latest proven release are available from GET /v1/support/capabilities.



## OpenAPI

````yaml /openapi.json post /v1/audit/export
openapi: 3.1.0
info:
  title: Checkfu API
  version: '2026-08-27'
  description: >-
    Authentication is declared per operation: API-key, runtime, or connector
    bearer; Automation signature; or credential-free pairing redemption. Every
    general Checkfu REST request requires the dated `Checkfu-Version` header
    (one of: 2026-08-27); the three MCP JSON-RPC transports use
    `MCP-Protocol-Version`, A2A uses `A2A-Version`, and the provider OAuth
    callback carries neither Checkfu header. API keys resolve one Workspace
    without a request selector; authenticated responses identify it with
    `Checkfu-Workspace-Id`.
servers:
  - url: https://api.checkfu.com
security:
  - bearerAuth: []
tags:
  - name: organizations
  - name: sourceRepositories
  - name: tenants
  - name: workspaces
  - name: principals
  - name: principalGroups
  - name: principalAccessCredentials
  - name: apiKeys
  - name: agents
  - name: harnesses
  - name: harnessRuntime
  - name: sandboxProfiles
  - name: computerProfiles
  - name: permissionAssignments
  - name: actionPolicies
  - name: files
  - name: memoryStores
  - name: dreams
  - name: modelCredentials
  - name: modelRoutingProfiles
  - name: blueprintInstallations
  - name: toolSources
  - name: skills
  - name: skillSources
  - name: agentSources
  - name: skillProposals
  - name: instructionProposals
  - name: catalog
  - name: concepts
  - name: support
  - name: connections
  - name: connectionVaults
  - name: connectionAssignments
  - name: connectedRuntimes
  - name: projects
  - name: collaboration
  - name: automationGraphs
  - name: automations
  - name: actionApprovals
  - name: standingApprovals
  - name: usage
  - name: models
  - name: outcomes
  - name: budgets
  - name: billing
  - name: sessions
  - name: audit
  - name: sessionExports
  - name: runs
  - name: runnerPools
  - name: transcripts
  - name: sessionWatches
  - name: webhookEndpoints
  - name: integrationGateway
  - name: agentDeployments
  - name: workEnvironments
  - name: computers
  - name: computerScreens
  - name: computerBrowserObservations
  - name: computerBrowserActions
  - name: environments
  - name: vaults
  - name: apiMcp
  - name: a2a
paths:
  /v1/audit/export:
    post:
      tags:
        - audit
      summary: Export AuditRecords for SIEM ingestion
      description: >-
        Returns a resumable export document of AuditRecords in ledger order,
        accepting the same filters as `audit.listAudit` in the request body.
        Resume by passing the previous response's `next_after` as `after`; a
        null `next_after` means the filtered range is exhausted. Despite the
        POST method this writes nothing — the body carries the query because the
        filter set exceeds a practical query string.


        Checkfu support posture: alpha; hosted. Required evidence journey:
        governance-registry. Deployment-specific readiness and the latest proven
        release are available from GET /v1/support/capabilities.
      operationId: audit.exportAudit
      parameters:
        - name: checkfu-version
          in: header
          schema:
            type: string
            enum:
              - '2026-08-27'
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                after:
                  type: integer
                  allOf:
                    - minimum: 0
                limit:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                action:
                  type: string
                  allOf:
                    - minLength: 1
                principal_id:
                  $ref: '#/components/schemas/PrincipalId'
                resource_kind:
                  type: string
                  allOf:
                    - minLength: 1
                resource_id:
                  type: string
                  allOf:
                    - minLength: 1
                surface_scope_id:
                  $ref: '#/components/schemas/SurfaceScopeId'
                agent_id:
                  $ref: '#/components/schemas/AgentId'
                connection_id:
                  $ref: '#/components/schemas/ConnectionId'
                since:
                  $ref: '#/components/schemas/AuditListTimestamp'
                until:
                  $ref: '#/components/schemas/AuditListTimestamp'
              additionalProperties: false
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  format:
                    type: string
                    enum:
                      - checkfu.audit-export
                  schema_version:
                    type: number
                    enum:
                      - 1
                  workspace_id:
                    $ref: '#/components/schemas/WorkspaceId'
                  exported_at:
                    type: string
                  records:
                    type: array
                    items:
                      $ref: '#/components/schemas/Objects_425'
                  next_after:
                    anyOf:
                      - type: integer
                        allOf:
                          - minimum: 0
                      - type: 'null'
                required:
                  - format
                  - schema_version
                  - workspace_id
                  - exported_at
                  - records
                  - next_after
                additionalProperties: false
          headers:
            checkfu-workspace-id:
              description: The Workspace resolved from the authenticated bearer credential.
              required: true
              schema:
                $ref: '#/components/schemas/WorkspaceId'
        '400':
          description: Typed Checkfu wire error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationMalformedError'
        '401':
          description: Typed Checkfu wire error
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - message
                      - more
                    properties:
                      type:
                        type: string
                        enum:
                          - auth.invalid_key
                      message:
                        type: string
                      more:
                        type: string
                        enum:
                          - >-
                            https://docs.checkfu.com/reference/errors#auth-invalid-key
                        description: >-
                          Stable public documentation and remedy for this error
                          type.
                    additionalProperties: false
                additionalProperties: false
        '403':
          description: >-
            The organization, tenant, or workspace backing this key is
            administratively disabled. | Deployment governance or retention
            policy denied the request.
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    required:
                      - error
                    properties:
                      error:
                        type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - auth.disabled_tenancy
                          message:
                            type: string
                          more:
                            type: string
                            enum:
                              - >-
                                https://docs.checkfu.com/reference/errors#auth-disabled-tenancy
                            description: >-
                              Stable public documentation and remedy for this
                              error type.
                        required:
                          - type
                          - message
                          - more
                        additionalProperties: false
                    additionalProperties: false
                  - $ref: '#/components/schemas/PolicyDeniedError'
        '429':
          description: Typed Checkfu wire error
          headers:
            retry-after:
              description: >-
                Delay in seconds for rate limits or deployment quotas with a
                known release or UTC reset boundary
              required: false
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - message
                      - more
                    properties:
                      type:
                        type: string
                        enum:
                          - budget.exceeded
                      message:
                        type: string
                      more:
                        type: string
                        enum:
                          - >-
                            https://docs.checkfu.com/reference/errors#budget-exceeded
                        description: >-
                          Stable public documentation and remedy for this error
                          type.
                    additionalProperties: false
                additionalProperties: false
        '500':
          description: >-
            An unexpected internal failure occurred; the message contains an
            opaque incident reference.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuntimeInternalError'
      security:
        - bearerAuth: []
components:
  schemas:
    PrincipalId:
      type: string
      allOf:
        - pattern: ^prin_[0-9a-f]{32}$
    SurfaceScopeId:
      type: string
      allOf:
        - pattern: ^surf_[0-9a-f]{32}$
    AgentId:
      type: string
      allOf:
        - pattern: ^agent_[0-9a-f]{32}$
    ConnectionId:
      type: string
      allOf:
        - pattern: ^conn_[0-9a-f]{32}$
    AuditListTimestamp:
      type: string
      allOf:
        - maxLength: 24
        - pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
          description: >-
            A canonical UTC ISO-8601 audit-list bound with millisecond
            precision.
    WorkspaceId:
      type: string
      allOf:
        - pattern: ^wrkspc_[0-9a-f]{32}$
    Objects_425:
      type: object
      properties:
        sequence:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        id:
          $ref: '#/components/schemas/AuditRecordId'
        workspace_id:
          $ref: '#/components/schemas/WorkspaceId'
        actor:
          $ref: '#/components/schemas/Union_90'
        action:
          type: string
        resource_kind:
          type: string
          allOf:
            - minLength: 1
        resource_id:
          type: string
          allOf:
            - minLength: 1
        outcome:
          type: string
          enum:
            - succeeded
            - denied
            - failed
        detail_json:
          type: string
        anonymous_subject_ref:
          anyOf:
            - type: string
              allOf:
                - minLength: 1
            - type: 'null'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
        agent_id:
          $ref: '#/components/schemas/AgentId'
        connection_id:
          $ref: '#/components/schemas/ConnectionId'
        created_at:
          type: string
        prev_hash:
          anyOf:
            - type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            - type: 'null'
        content_hash:
          anyOf:
            - type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            - type: 'null'
        chain_version:
          anyOf:
            - type: string
              enum:
                - checkfu.audit.v1
                - checkfu.audit.v2
            - type: 'null'
        chain_subject_id:
          anyOf:
            - type: string
              allOf:
                - minLength: 1
            - type: 'null'
      required:
        - sequence
        - id
        - workspace_id
        - actor
        - action
        - resource_kind
        - resource_id
        - outcome
        - detail_json
        - anonymous_subject_ref
        - created_at
        - prev_hash
        - content_hash
        - chain_version
        - chain_subject_id
      additionalProperties: false
    ValidationMalformedError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.malformed
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-malformed
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        The request could not be decoded or violated a declared input
        constraint.
    PolicyDeniedError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - policy.denied
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#policy-denied
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: Deployment governance or retention policy denied the request.
    RuntimeInternalError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.internal
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#runtime-internal
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        An unexpected internal failure occurred; the message contains an opaque
        incident reference.
    AuditRecordId:
      type: string
      allOf:
        - pattern: ^aud_[0-9a-f]{32}$
    Union_90:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - system
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - api_key
            id:
              $ref: '#/components/schemas/ApiKeyId'
          required:
            - kind
            - id
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - principal
            id:
              $ref: '#/components/schemas/PrincipalId'
            authenticated_by:
              $ref: '#/components/schemas/ApiKeyId'
          required:
            - kind
            - id
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - console_user
            id:
              type: string
              allOf:
                - minLength: 1
            authenticated_by:
              $ref: '#/components/schemas/ApiKeyId'
          required:
            - kind
            - id
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - operator
            id:
              type: string
              allOf:
                - minLength: 1
          required:
            - kind
            - id
          additionalProperties: false
    ApiKeyId:
      type: string
      allOf:
        - pattern: ^akey_[0-9a-f]{32}$
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````