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

# Poll async ingest receipt status



## OpenAPI

````yaml /openapi/audit.v1.yaml get /v1/receipts/{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/receipts/{id}:
    get:
      tags:
        - Ingest
      summary: Poll async ingest receipt status
      operationId: getReceipt
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Receipt status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncReceipt'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    AsyncReceipt:
      allOf:
        - $ref: '#/components/schemas/BatchResult'
        - type: object
          properties:
            receipt_id:
              type: string
            status:
              type: string
              enum:
                - queued
                - committed
                - failed
            error_message:
              type: string
            created_at:
              type: string
              format: date-time
            committed_at:
              type: string
              format: date-time
    BatchResult:
      type: object
      properties:
        accepted:
          type: integer
        rejected:
          type: integer
        ids:
          type: array
          items:
            type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/BatchError'
    ErrorResponse:
      type: object
      properties:
        error:
          oneOf:
            - type: string
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
    BatchError:
      type: object
      properties:
        index:
          type: integer
        code:
          type: string
        message:
          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.

````