ContextDB · Schema

RecallRequest

Artificial IntelligenceMemoryCustomer DataAgent PlatformContext

Properties

Name Type Description
user_id object
query string
top_k integer
as_of string
max_context_tokens integer
entity string
min_confidence number
min_memory_version object
min_primary_wal_lsn string Minimum primary WAL position the read must include.
read_consistency string `default` routes token-bearing reads to primary and tokenless reads to the read pool. `primary` always uses primary. `replica_fallback` waits briefly on the read pool, then retries against primary.
View JSON Schema on GitHub

JSON Schema

contextdb-ai-recall-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contextdb-ai/json-schema/contextdb-ai-recall-request-schema.json",
  "title": "RecallRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contextdb-ai-openapi.yaml#/components/schemas/RecallRequest",
  "type": "object",
  "required": [
    "user_id",
    "query"
  ],
  "properties": {
    "user_id": {
      "$ref": "#/$defs/UserId"
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "top_k": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 5
    },
    "as_of": {
      "type": "string",
      "format": "date-time"
    },
    "max_context_tokens": {
      "type": "integer",
      "minimum": 64,
      "maximum": 8000,
      "default": 512
    },
    "entity": {
      "type": "string",
      "maxLength": 200
    },
    "min_confidence": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "min_memory_version": {
      "$ref": "#/$defs/MemoryVersion"
    },
    "min_primary_wal_lsn": {
      "type": "string",
      "pattern": "^[0-9A-Fa-f]+/[0-9A-Fa-f]+$",
      "description": "Minimum primary WAL position the read must include."
    },
    "read_consistency": {
      "type": "string",
      "enum": [
        "default",
        "primary",
        "replica_fallback"
      ],
      "default": "default",
      "description": "`default` routes token-bearing reads to primary and tokenless reads\nto the read pool. `primary` always uses primary.\n`replica_fallback` waits briefly on the read pool, then retries\nagainst primary.\n"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "MemoryVersion": {
      "type": "integer",
      "minimum": 0,
      "description": "Monotonic consistency version within one organization/project."
    },
    "UserId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._:@+\\-]{1,128}$",
      "description": "End-user memory partition key. Not an identity assertion."
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/contextdb-ai-recall-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.