RetainResponse
POST /memories/retain response — the full 8-step Retain pipeline outcome. `memory` is null when the ADMIT step rejects or deduplicates (nothing stored). On admission it carries the stored memory plus the per-step pipeline status, the extracted knowledge-graph slice, and timing. `contradictions` / `consolidated_from` / `flagged_conflicts` are populated since R2.63 (sub-build 4): CONSOLIDATE + RESOLVE CONFLICTS are real — contradictions rows follow the spec shape {superseded_memory_id, decision, merged_content, explanation}; flagged_conflicts rows are {memory_id, explanation}; consolidated_from lists sources merged away by step 6.
Properties
| Name | Type | Description |
|---|---|---|
| memory | object | |
| admission_decision | object | |
| pipeline_status | object | |
| entities_extracted | array | |
| relationships_extracted | array | |
| contradictions | array | |
| consolidated_from | array | |
| flagged_conflicts | array | |
| pipeline | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/raku-so/json-schema/raku-so-retain-response-schema.json",
"title": "RetainResponse",
"description": "POST /memories/retain response — the full 8-step Retain pipeline outcome.\n\n`memory` is null when the ADMIT step rejects or deduplicates (nothing\nstored). On admission it carries the stored memory plus the per-step\npipeline status, the extracted knowledge-graph slice, and timing.\n\n`contradictions` / `consolidated_from` / `flagged_conflicts` are populated\nsince R2.63 (sub-build 4): CONSOLIDATE + RESOLVE CONFLICTS are real —\ncontradictions rows follow the spec shape {superseded_memory_id, decision,\nmerged_content, explanation}; flagged_conflicts rows are {memory_id,\nexplanation}; consolidated_from lists sources merged away by step 6.",
"x-generated": "2026-11-22",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/raku-so-openapi.json#/components/schemas/RetainResponse",
"properties": {
"memory": {
"anyOf": [
{
"$ref": "#/$defs/MemoryResponse"
},
{
"type": "null"
}
]
},
"admission_decision": {
"$ref": "#/$defs/AdmissionDecision"
},
"pipeline_status": {
"$ref": "#/$defs/PipelineStatus"
},
"entities_extracted": {
"items": {
"$ref": "#/$defs/ResolvedEntity"
},
"type": "array",
"title": "Entities Extracted",
"default": []
},
"relationships_extracted": {
"items": {
"$ref": "#/$defs/ResolvedRelationship"
},
"type": "array",
"title": "Relationships Extracted",
"default": []
},
"contradictions": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Contradictions",
"default": []
},
"consolidated_from": {
"items": {
"type": "string"
},
"type": "array",
"title": "Consolidated From",
"default": []
},
"flagged_conflicts": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Flagged Conflicts",
"default": []
},
"pipeline": {
"$ref": "#/$defs/PipelineTiming"
}
},
"type": "object",
"required": [
"memory",
"admission_decision",
"pipeline_status",
"pipeline"
],
"$defs": {
"AdmissionDecision": {
"type": "string",
"enum": [
"admitted",
"rejected",
"deduplicated",
"merged"
],
"title": "AdmissionDecision",
"description": "Outcome of the ADMIT step (Retain pipeline step 1).\n\n`MERGED` is emitted since R2.63 (sub-build 4): the CONSOLIDATE step\nsynthesized the new memory with existing fragments — the response carries\nthe merged memory and `consolidated_from` lists the soft-closed sources."
},
"MemoryResponse": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"content": {
"type": "string",
"title": "Content"
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source"
},
"memory_type": {
"type": "string",
"title": "Memory Type"
},
"importance": {
"type": "number",
"title": "Importance"
},
"created_at": {
"type": "string",
"title": "Created At"
},
"updated_at": {
"type": "string",
"title": "Updated At"
},
"last_accessed": {
"type": "string",
"title": "Last Accessed"
},
"access_count": {
"type": "integer",
"title": "Access Count"
},
"tags": {
"items": {
"type": "string"
},
"type": "array",
"title": "Tags",
"default": []
},
"confidence_score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Confidence Score"
},
"source_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source Type"
},
"evidence_count": {
"type": "integer",
"title": "Evidence Count",
"default": 0
},
"contradiction_count": {
"type": "integer",
"title": "Contradiction Count",
"default": 0
},
"confidence_decay_rate": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Confidence Decay Rate"
},
"last_validated_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Last Validated At"
},
"valid_from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Valid From"
},
"valid_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Valid To"
},
"tx_from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tx From"
},
"tx_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tx To"
},
"superseded_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Superseded By"
},
"is_current": {
"type": "boolean",
"title": "Is Current",
"default": true
}
},
"type": "object",
"required": [
"id",
"content",
"memory_type",
"importance",
"created_at",
"updated_at",
"last_accessed",
"access_count"
],
"title": "MemoryResponse",
"description": "API response for a single memory.\n\nEXCLUDED always (never add these fields):\n - embedding vector (RAKU-3 — can be reverse-engineered)\n - tenant_id (OWASP-MT §3 — no cross-tenant data)\n - raw metadata (may contain sensitive data)"
},
"PipelineStatus": {
"properties": {
"embedding": {
"$ref": "#/$defs/StepStatus"
},
"importance": {
"$ref": "#/$defs/StepStatus"
},
"entities": {
"$ref": "#/$defs/StepStatus"
},
"consolidation": {
"$ref": "#/$defs/StepStatus"
},
"conflicts": {
"$ref": "#/$defs/StepStatus"
}
},
"type": "object",
"required": [
"embedding",
"importance",
"entities",
"consolidation",
"conflicts"
],
"title": "PipelineStatus",
"description": "Outcome of each write-pipeline step (RKU-65 §7.4)."
},
"PipelineTiming": {
"properties": {
"admission_ms": {
"type": "integer",
"title": "Admission Ms"
},
"embedding_ms": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Embedding Ms"
},
"importance_ms": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Importance Ms"
},
"entities_ms": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Entities Ms"
},
"consolidation_ms": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Consolidation Ms"
},
"conflicts_ms": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Conflicts Ms"
},
"store_ms": {
"type": "integer",
"title": "Store Ms"
},
"total_ms": {
"type": "integer",
"title": "Total Ms"
}
},
"type": "object",
"required": [
"admission_ms",
"embedding_ms",
"importance_ms",
"entities_ms",
"consolidation_ms",
"conflicts_ms",
"store_ms",
"total_ms"
],
"title": "PipelineTiming",
"description": "Per-step wall-clock timing in ms. `None` means the step did not run."
},
"ResolvedEntity": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"text": {
"type": "string",
"title": "Text"
},
"entity_type": {
"type": "string",
"title": "Entity Type"
},
"confidence": {
"type": "number",
"title": "Confidence"
},
"is_new": {
"type": "boolean",
"title": "Is New"
}
},
"type": "object",
"required": [
"id",
"text",
"entity_type",
"confidence",
"is_new"
],
"title": "ResolvedEntity",
"description": "Entity resolved against the entity table."
},
"ResolvedRelationship": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"source_entity_id": {
"type": "string",
"title": "Source Entity Id"
},
"target_entity_id": {
"type": "string",
"title": "Target Entity Id"
},
"relationship_type": {
"type": "string",
"title": "Relationship Type"
},
"confidence": {
"type": "number",
"title": "Confidence"
}
},
"type": "object",
"required": [
"id",
"source_entity_id",
"target_entity_id",
"relationship_type",
"confidence"
],
"title": "ResolvedRelationship",
"description": "Relationship with resolved entity IDs."
},
"StepStatus": {
"type": "string",
"enum": [
"ok",
"deferred",
"skipped_rss",
"skipped_due_to_degradation",
"unavailable"
],
"title": "StepStatus",
"description": "Per-step outcome in the write pipeline (RKU-65 §7.4)."
}
}
}
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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/raku-so-retain-response"
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.