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

# Get a single audit event



## OpenAPI

````yaml /openapi/audit.v1.yaml get /v1/events/{id}
openapi: 3.1.0
info:
  title: Fact0 Audit API
  version: 1.0.0
  description: >
    Compliance-grade universal fact layer with tamper-evident audit log API.
    Events form a per-tenant SHA-256 hash chain.


    **Authentication:** `Authorization: Bearer f0_live_*` or `alk_live_*` API
    keys (write or read scope).


    **Async ingest (default):** POST ingest endpoints return `202 Accepted` with
    a `receipt_id`.

    Poll `GET /v1/receipts/{id}` until `status` is `committed` or `failed`.

    Force synchronous ingest with header `X-Fact0-Sync: true`  or query
    `?sync=true`.
servers:
  - url: https://api.fact0.io
    description: Fact0 Cloud
security:
  - apiKey: []
tags:
  - name: Ingest
  - name: Query
  - name: Verify
  - name: Export
  - name: Chain
  - name: Stream
  - name: Share
paths:
  /v1/events/{id}:
    get:
      tags:
        - Query
      summary: Get a single audit event
      operationId: getEvent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Event detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditEvent'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    AuditEvent:
      allOf:
        - $ref: '#/components/schemas/AuditEventInput'
        - type: object
          properties:
            tenant_id:
              type: string
            prev_hash:
              type: string
            hash:
              type: string
            sequence_number:
              type: integer
              format: int64
            created_at:
              type: string
              format: date-time
    AuditEventInput:
      type: object
      required:
        - actor
        - action
        - resource
        - outcome
      properties:
        id:
          type: string
        timestamp:
          type: string
          format: date-time
        actor:
          $ref: '#/components/schemas/Actor'
        action:
          type: string
          description: Dot-notation action name (e.g. document.delete)
        resource:
          $ref: '#/components/schemas/Resource'
        outcome:
          type: string
          enum:
            - success
            - failure
            - error
        metadata:
          type: object
          additionalProperties: true
    ErrorResponse:
      type: object
      properties:
        error:
          oneOf:
            - type: string
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
    Actor:
      type: object
      required:
        - id
        - type
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - human
            - agent
            - system
        email:
          type: string
    Resource:
      type: object
      required:
        - id
        - type
      properties:
        id:
          type: string
        type:
          type: string
        name:
          type: string
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: API key prefixed with `alk_live_`. Write scope required for ingest.

````