openapi: 3.2.0 info: title: EQ Scoring Platform — Human-Likeness & AI Text Benchmark… description: Human-likeness scoring and AI text benchmark API. version: 1.0.0 tags: - name: Ledger paths: /api/ledger/export: get: summary: Export Ledger Csv description: 'Download the full transaction ledger as a CSV spreadsheet (operator only). Streams directly from eq_transactions (single source of truth) — same query/columns as the CLI export (export_ledger.py). Optional passed_only=true filters to settled (passed) transactions. Requires the X-Admin-Token header.' operationId: export_ledger_csv_api_ledger_export_get parameters: - name: passed_only in: query required: false schema: type: boolean default: false title: Passed Only responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Ledger /api/ledger: get: summary: Get Ledger operationId: get_ledger_api_ledger_get parameters: - name: limit in: query required: false schema: type: integer maximum: 200 minimum: 1 default: 50 title: Limit - name: offset in: query required: false schema: type: integer minimum: 0 default: 0 title: Offset - name: bot_id in: query required: false schema: anyOf: - type: string - type: 'null' title: Bot Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Ledger components: schemas: 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