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

# Verdict History

> Paginated verdict history for the last 24 hours

<Note>
  To use the playground, enter your API key in the **X-API-Key** field above.
  Requires BASIC tier key (\$49/mo). Contact [info@aioka.io](mailto:info@aioka.io) to upgrade.
</Note>

**Tier:** Basic (\$49/mo) 🔒
**Cache TTL:** 120 seconds

<RequestExample>
  ```bash curl theme={null}
  curl "https://api.aioka.io/v1/verdict/history?page=1&per_page=24" \
    -H "X-API-Key: aik_basic_your_key_here"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "verdicts": [
      {
        "ruling": "ACCUMULATE",
        "confidence": 0.782,
        "score": 0.438,
        "btc_price": 67124.0,
        "timestamp": "2026-04-03T10:22:00Z"
      }
    ],
    "total": 48,
    "page": 1,
    "per_page": 24,
    "from_time": "2026-04-03T09:00:00Z",
    "to_time": "2026-04-03T10:22:00Z",
    "cached": false,
    "cache_ttl_seconds": 120
  }
  ```

  ```json 403 theme={null}
  {
    "detail": {
      "error": "tier_required",
      "message": "This endpoint requires Basic tier or higher.",
      "current_tier": "free",
      "required_tier": "basic",
      "upgrade_url": "https://aioka.io/pricing"
    }
  }
  ```
</ResponseExample>


## OpenAPI

````yaml GET /v1/verdict/history
openapi: 3.1.0
info:
  title: AIOKA Intelligence API
  description: |

    ## AI-powered crypto market intelligence

    AIOKA Intelligence API provides real-time access to our AI Council verdicts,
    market signals, regime detection, and Ghost Trader entry signals.

    ### Tiers
    - **Free**: 100 calls/day — Verdict + Regime
    - **Basic** ($49/mo): 1,000 calls/day — + Signals
    - **Pro** ($199/mo): 10,000 calls/day — + Council + Ghost

    ### Authentication
    Pass your API key in the `X-API-Key` header:

    ```
    X-API-Key: aik_free_xxxxxxxxxxxx
    ```

    ### Get your API key
    `POST /v1/keys/generate` (free tier, no credit card)
  contact:
    name: AIOKA Support
    url: https://docs.aioka.io/
    email: api@aioka.io
  license:
    name: Commercial
    url: https://aioka.io/terms
  version: 1.0.0
servers:
  - url: https://api.aioka.io
    description: Production — AIOKA Intelligence API
security: []
paths:
  /v1/verdict/history:
    get:
      tags:
        - Verdict
      summary: Verdict History (last 24h)
      description: |-
        Returns paginated verdict history for the last 24 hours.

        **Tier:** Basic ($49/mo) 🔒
        **Cache TTL:** 120 seconds
        **Rate limit:** 1,000 calls/day, 30/minute
      operationId: get_verdict_history_v1_verdict_history_get
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
            title: Page
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
            default: 24
            title: Per Page
      responses:
        '200':
          description: Verdict history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerdictHistoryResponse'
        '401':
          description: Invalid or missing API key
        '403':
          description: Basic tier required
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Rate limit exceeded
      security:
        - APIKeyHeader: []
components:
  schemas:
    VerdictHistoryResponse:
      properties:
        verdicts:
          items:
            $ref: '#/components/schemas/VerdictItem'
          type: array
          title: Verdicts
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        per_page:
          type: integer
          title: Per Page
        from_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: From Time
        to_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: To Time
        cached:
          type: boolean
          title: Cached
        cache_ttl_seconds:
          type: integer
          title: Cache Ttl Seconds
      type: object
      required:
        - verdicts
        - total
        - page
        - per_page
        - from_time
        - to_time
        - cached
        - cache_ttl_seconds
      title: VerdictHistoryResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    VerdictItem:
      properties:
        ruling:
          type: string
          title: Ruling
        confidence:
          type: number
          title: Confidence
        score:
          type: number
          title: Score
        btc_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Btc Price
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - ruling
        - confidence
        - score
        - btc_price
        - timestamp
      title: VerdictItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      description: 'Your AIOKA Intelligence API key (format: aik_{tier}_{random})'
      in: header
      name: X-API-Key

````