Casa Intelligence Learning API

The Learning API from Casa Intelligence — 8 operation(s) for learning.

Operations 8

POST /api/v1/learning/correction Record Correction #
POST /api/v1/learning/preference Record Preference #
GET /api/v1/learning/stats Get Stats #
GET /api/v1/learning/corrections List Corrections #
POST /api/v1/learning/event Capture Learning Event #
POST /api/v1/learning/correction/{correction_id}/confirm Confirm Correction #
GET /api/v1/learning/graph/corrections Get Graph Corrections #
POST /api/v1/learning/graph/backfill Trigger Backfill #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/casaintelligence-com-au:casaintelligence-com-au-learning-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

casaintelligence-com-au-learning-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Casa Intelligence Engine Learning API
  description: Proprietary data ingestion, analysis, and prediction engine for Queensland property development intelligence.
  version: 2.0.0
tags:
- name: Learning
paths:
  /api/v1/learning/correction:
    post:
      tags:
      - Learning
      summary: Record Correction
      description: Record a user correction to an AI output.
      operationId: record_correction_api_v1_learning_correction_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CorrectionRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/learning/preference:
    post:
      tags:
      - Learning
      summary: Record Preference
      description: Record an explicit user preference.
      operationId: record_preference_api_v1_learning_preference_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreferenceRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/learning/stats:
    get:
      tags:
      - Learning
      summary: Get Stats
      description: Get learning metrics for the user's organisation.
      operationId: get_stats_api_v1_learning_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LearningStatsResponse'
      security:
      - HTTPBearer: []
  /api/v1/learning/corrections:
    get:
      tags:
      - Learning
      summary: List Corrections
      description: List recent corrections for the user's organisation.
      operationId: list_corrections_api_v1_learning_corrections_get
      security:
      - HTTPBearer: []
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          default: 20
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          default: 0
          title: Offset
      - name: category
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Category
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/learning/event:
    post:
      tags:
      - Learning
      summary: Capture Learning Event
      description: 'Capture a frontend-originated learning event.


        Used for tile interactions, thumbs up/down on AI responses,

        precedent usage, report edits, and other UI signals.'
      operationId: capture_learning_event_api_v1_learning_event_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LearningEventRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/learning/correction/{correction_id}/confirm:
    post:
      tags:
      - Learning
      summary: Confirm Correction
      description: 'Confirm a correction is accurate — increases its weight in the graph.


        Each confirmation bumps weight by 0.1 and increments confirmation_count.'
      operationId: confirm_correction_api_v1_learning_correction__correction_id__confirm_post
      security:
      - HTTPBearer: []
      parameters:
      - name: correction_id
        in: path
        required: true
        schema:
          type: string
          title: Correction Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/learning/graph/corrections:
    get:
      tags:
      - Learning
      summary: Get Graph Corrections
      description: 'Get corrections with their graph edges and weights.


        Returns corrections with edge counts and conflict indicators

        for the knowledge graph debug/admin view.'
      operationId: get_graph_corrections_api_v1_learning_graph_corrections_get
      security:
      - HTTPBearer: []
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          default: 20
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/learning/graph/backfill:
    post:
      tags:
      - Learning
      summary: Trigger Backfill
      description: 'Trigger embedding backfill for all unembedded corrections.


        Embeds corrections that were created before the graph system

        was enabled, enabling vector search across historical data.'
      operationId: trigger_backfill_api_v1_learning_graph_backfill_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
components:
  schemas:
    LearningStatsResponse:
      properties:
        total_interactions:
          type: integer
          title: Total Interactions
        total_corrections:
          type: integer
          title: Total Corrections
        total_preferences:
          type: integer
          title: Total Preferences
        unique_users:
          type: integer
          title: Unique Users
        correction_rate:
          type: number
          title: Correction Rate
        first_interaction:
          anyOf:
          - type: string
          - type: 'null'
          title: First Interaction
        last_interaction:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Interaction
      type: object
      required:
      - total_interactions
      - total_corrections
      - total_preferences
      - unique_users
      - correction_rate
      title: LearningStatsResponse
    CorrectionRequest:
      properties:
        parent_event_id:
          type: string
          title: Parent Event Id
        correction:
          additionalProperties: true
          type: object
          title: Correction
        correction_summary:
          type: string
          title: Correction Summary
        correction_category:
          type: string
          title: Correction Category
          default: factual
      type: object
      required:
      - parent_event_id
      - correction
      - correction_summary
      title: CorrectionRequest
    LearningEventRequest:
      properties:
        event_type:
          type: string
          title: Event Type
        parent_event_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Parent Event Id
        context:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Context
        lga:
          anyOf:
          - type: string
          - type: 'null'
          title: Lga
        zone_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Zone Code
      type: object
      required:
      - event_type
      title: LearningEventRequest
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PreferenceRequest:
      properties:
        preference_area:
          type: string
          title: Preference Area
        preference_value:
          type: string
          title: Preference Value
      type: object
      required:
      - preference_area
      - preference_value
      title: PreferenceRequest
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key