Memory
Get memory tree nodes for an agent
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Query Parameters
Optional user ID to scope memory
Optional instance ID for scoping
If set, return children of this node
Set to 'true' to include fact contents per node
Optional scope filter (e.g. 'wisdom')
Max nodes to return (default 50, max 200)
Optional filter: only return nodes with this memory_type (e.g. 'factual', 'episodic', 'semantic', 'procedural', 'identity', 'temporal', 'relational'). When user_id is also set, routes to the indexed memory_tree_nodes_by_type table (O(1)); otherwise falls back to post-fetch filter.
Response Body
application/json
application/problem+json
curl -X GET "https://loading/api/v1/agents/string/memory"{
"$schema": "/api/v1/schemas/MemoryResponse.json",
"contents": {
"property1": [
{
"$schema": "/api/v1/schemas/AtomicFact.json",
"agent_framing": "string",
"agent_id": "string",
"atomic_text": "string",
"character_salience": 0.1,
"chunk_id": "string",
"cluster_id": "string",
"confidence": 0.1,
"created_at": "2019-08-24T14:15:22Z",
"emotional_intensity": 0.1,
"entities": [
"string"
],
"episode_id": "string",
"event_time": "2019-08-24T14:15:22Z",
"evidence_message_ids": [
"string"
],
"fact_id": "string",
"fact_type": "string",
"hit_count": 0,
"importance": 0.1,
"inferred_entities": [
"string"
],
"last_confirmed": "2019-08-24T14:15:22Z",
"last_retrieved_at": "2019-08-24T14:15:22Z",
"mention_count": 0,
"metadata": {
"property1": null,
"property2": null
},
"miss_count": 0,
"node_id": "string",
"polarity_group_id": "string",
"relationship_relevance": 0.1,
"retention_strength": 0.1,
"sentiment": "string",
"session_id": "string",
"source_id": "string",
"source_type": "string",
"supersedes_id": "string",
"temporal_relevance": "string",
"time_sensitive_at": "2019-08-24T14:15:22Z",
"topic_tags": [
"string"
],
"updated_at": "2019-08-24T14:15:22Z",
"user_id": "string"
}
],
"property2": [
{
"$schema": "/api/v1/schemas/AtomicFact.json",
"agent_framing": "string",
"agent_id": "string",
"atomic_text": "string",
"character_salience": 0.1,
"chunk_id": "string",
"cluster_id": "string",
"confidence": 0.1,
"created_at": "2019-08-24T14:15:22Z",
"emotional_intensity": 0.1,
"entities": [
"string"
],
"episode_id": "string",
"event_time": "2019-08-24T14:15:22Z",
"evidence_message_ids": [
"string"
],
"fact_id": "string",
"fact_type": "string",
"hit_count": 0,
"importance": 0.1,
"inferred_entities": [
"string"
],
"last_confirmed": "2019-08-24T14:15:22Z",
"last_retrieved_at": "2019-08-24T14:15:22Z",
"mention_count": 0,
"metadata": {
"property1": null,
"property2": null
},
"miss_count": 0,
"node_id": "string",
"polarity_group_id": "string",
"relationship_relevance": 0.1,
"retention_strength": 0.1,
"sentiment": "string",
"session_id": "string",
"source_id": "string",
"source_type": "string",
"supersedes_id": "string",
"temporal_relevance": "string",
"time_sensitive_at": "2019-08-24T14:15:22Z",
"topic_tags": [
"string"
],
"updated_at": "2019-08-24T14:15:22Z",
"user_id": "string"
}
]
},
"nodes": [
{
"access_count": 0,
"agent_id": "string",
"child_count": 0,
"content_count": 0,
"content_refs": [
"string"
],
"created_at": "2019-08-24T14:15:22Z",
"cross_refs": [
"string"
],
"depth": 0,
"description": "string",
"importance": 0.1,
"is_deleted": true,
"is_prunable": true,
"last_accessed_at": "2019-08-24T14:15:22Z",
"memory_type": "string",
"metadata": {
"property1": null,
"property2": null
},
"name": "string",
"node_id": "string",
"parent_id": "string",
"path": "string",
"recency": 0.1,
"updated_at": "2019-08-24T14:15:22Z",
"user_id": "string"
}
]
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Reset memory for an agent-user pair
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Query Parameters
User ID whose memory to reset
Optional instance ID for scoping
Response Body
application/json
application/problem+json
curl -X DELETE "https://loading/api/v1/agents/string/memory?user_id=string"{
"$schema": "/api/v1/schemas/ResetMemoryResponse.json",
"facts_deleted": 0,
"facts_failed": 0,
"failed_fact_ids": [
"string"
],
"failed_node_ids": [
"string"
],
"nodes_deleted": 0,
"nodes_failed": 0,
"status": "string",
"success": true
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Trigger memory consolidation
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X POST "https://loading/api/v1/agents/string/memory/consolidate" \ -H "Content-Type: application/json" \ -d '{ "period": "daily", "user_id": "string" }'{
"$schema": "/api/v1/schemas/TriggerConsolidationOutputBody.json",
"success": true
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Get fact supersedes history
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Fact identifier
Response Body
application/json
application/problem+json
curl -X GET "https://loading/api/v1/agents/string/memory/fact/string/history"{
"$schema": "/api/v1/schemas/FactHistoryResponse.json",
"current": {
"$schema": "/api/v1/schemas/AtomicFact.json",
"agent_framing": "string",
"agent_id": "string",
"atomic_text": "string",
"character_salience": 0.1,
"chunk_id": "string",
"cluster_id": "string",
"confidence": 0.1,
"created_at": "2019-08-24T14:15:22Z",
"emotional_intensity": 0.1,
"entities": [
"string"
],
"episode_id": "string",
"event_time": "2019-08-24T14:15:22Z",
"evidence_message_ids": [
"string"
],
"fact_id": "string",
"fact_type": "string",
"hit_count": 0,
"importance": 0.1,
"inferred_entities": [
"string"
],
"last_confirmed": "2019-08-24T14:15:22Z",
"last_retrieved_at": "2019-08-24T14:15:22Z",
"mention_count": 0,
"metadata": {
"property1": null,
"property2": null
},
"miss_count": 0,
"node_id": "string",
"polarity_group_id": "string",
"relationship_relevance": 0.1,
"retention_strength": 0.1,
"sentiment": "string",
"session_id": "string",
"source_id": "string",
"source_type": "string",
"supersedes_id": "string",
"temporal_relevance": "string",
"time_sensitive_at": "2019-08-24T14:15:22Z",
"topic_tags": [
"string"
],
"updated_at": "2019-08-24T14:15:22Z",
"user_id": "string"
},
"previous_versions": [
{
"$schema": "/api/v1/schemas/AtomicFact.json",
"agent_framing": "string",
"agent_id": "string",
"atomic_text": "string",
"character_salience": 0.1,
"chunk_id": "string",
"cluster_id": "string",
"confidence": 0.1,
"created_at": "2019-08-24T14:15:22Z",
"emotional_intensity": 0.1,
"entities": [
"string"
],
"episode_id": "string",
"event_time": "2019-08-24T14:15:22Z",
"evidence_message_ids": [
"string"
],
"fact_id": "string",
"fact_type": "string",
"hit_count": 0,
"importance": 0.1,
"inferred_entities": [
"string"
],
"last_confirmed": "2019-08-24T14:15:22Z",
"last_retrieved_at": "2019-08-24T14:15:22Z",
"mention_count": 0,
"metadata": {
"property1": null,
"property2": null
},
"miss_count": 0,
"node_id": "string",
"polarity_group_id": "string",
"relationship_relevance": 0.1,
"retention_strength": 0.1,
"sentiment": "string",
"session_id": "string",
"source_id": "string",
"source_type": "string",
"supersedes_id": "string",
"temporal_relevance": "string",
"time_sensitive_at": "2019-08-24T14:15:22Z",
"topic_tags": [
"string"
],
"updated_at": "2019-08-24T14:15:22Z",
"user_id": "string"
}
]
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}List facts for an agent
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Query Parameters
Optional user ID to scope facts
Optional instance ID for scoping
Optional fact type filter
Max facts per page (default 50, max 500)
50int641 <= value <= 500Opaque cursor from a prior response's next_page_token. Empty = first page.
Response Body
application/json
application/problem+json
curl -X GET "https://loading/api/v1/agents/string/memory/facts"{
"$schema": "/api/v1/schemas/ListFactsResponse.json",
"facts": [
{
"confidence": 0.1,
"content": "string",
"created_at": "string",
"entity": "string",
"fact_id": "string",
"fact_type": "string",
"importance": 0.1,
"mention_count": 0,
"metadata": {
"property1": null,
"property2": null
},
"session_id": "string",
"source_id": "string",
"source_type": "string",
"updated_at": "string"
}
],
"next_page_token": "string",
"total_count": 0
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Create a new fact for an agent
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Query Parameters
Optional instance ID for scoping
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X POST "https://loading/api/v1/agents/string/memory/facts" \ -H "Content-Type: application/json" \ -d '{ "content": "string" }'{
"$schema": "/api/v1/schemas/AtomicFact.json",
"agent_framing": "string",
"agent_id": "string",
"atomic_text": "string",
"character_salience": 0.1,
"chunk_id": "string",
"cluster_id": "string",
"confidence": 0.1,
"created_at": "2019-08-24T14:15:22Z",
"emotional_intensity": 0.1,
"entities": [
"string"
],
"episode_id": "string",
"event_time": "2019-08-24T14:15:22Z",
"evidence_message_ids": [
"string"
],
"fact_id": "string",
"fact_type": "string",
"hit_count": 0,
"importance": 0.1,
"inferred_entities": [
"string"
],
"last_confirmed": "2019-08-24T14:15:22Z",
"last_retrieved_at": "2019-08-24T14:15:22Z",
"mention_count": 0,
"metadata": {
"property1": null,
"property2": null
},
"miss_count": 0,
"node_id": "string",
"polarity_group_id": "string",
"relationship_relevance": 0.1,
"retention_strength": 0.1,
"sentiment": "string",
"session_id": "string",
"source_id": "string",
"source_type": "string",
"supersedes_id": "string",
"temporal_relevance": "string",
"time_sensitive_at": "2019-08-24T14:15:22Z",
"topic_tags": [
"string"
],
"updated_at": "2019-08-24T14:15:22Z",
"user_id": "string"
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Bulk create facts for an agent
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Query Parameters
Optional instance ID for scoping
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X POST "https://loading/api/v1/agents/string/memory/facts/bulk" \ -H "Content-Type: application/json" \ -d '{ "facts": [ { "content": "string" } ] }'{
"$schema": "/api/v1/schemas/BulkCreateFactsOutputBody.json",
"facts": [
{
"$schema": "/api/v1/schemas/AtomicFact.json",
"agent_framing": "string",
"agent_id": "string",
"atomic_text": "string",
"character_salience": 0.1,
"chunk_id": "string",
"cluster_id": "string",
"confidence": 0.1,
"created_at": "2019-08-24T14:15:22Z",
"emotional_intensity": 0.1,
"entities": [
"string"
],
"episode_id": "string",
"event_time": "2019-08-24T14:15:22Z",
"evidence_message_ids": [
"string"
],
"fact_id": "string",
"fact_type": "string",
"hit_count": 0,
"importance": 0.1,
"inferred_entities": [
"string"
],
"last_confirmed": "2019-08-24T14:15:22Z",
"last_retrieved_at": "2019-08-24T14:15:22Z",
"mention_count": 0,
"metadata": {
"property1": null,
"property2": null
},
"miss_count": 0,
"node_id": "string",
"polarity_group_id": "string",
"relationship_relevance": 0.1,
"retention_strength": 0.1,
"sentiment": "string",
"session_id": "string",
"source_id": "string",
"source_type": "string",
"supersedes_id": "string",
"temporal_relevance": "string",
"time_sensitive_at": "2019-08-24T14:15:22Z",
"topic_tags": [
"string"
],
"updated_at": "2019-08-24T14:15:22Z",
"user_id": "string"
}
],
"facts_created": 0
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Delete a fact
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Fact identifier
Response Body
application/problem+json
curl -X DELETE "https://loading/api/v1/agents/string/memory/facts/string"{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Update an existing fact
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Fact identifier
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X PUT "https://loading/api/v1/agents/string/memory/facts/string" \ -H "Content-Type: application/json" \ -d '{}'{
"$schema": "/api/v1/schemas/AtomicFact.json",
"agent_framing": "string",
"agent_id": "string",
"atomic_text": "string",
"character_salience": 0.1,
"chunk_id": "string",
"cluster_id": "string",
"confidence": 0.1,
"created_at": "2019-08-24T14:15:22Z",
"emotional_intensity": 0.1,
"entities": [
"string"
],
"episode_id": "string",
"event_time": "2019-08-24T14:15:22Z",
"evidence_message_ids": [
"string"
],
"fact_id": "string",
"fact_type": "string",
"hit_count": 0,
"importance": 0.1,
"inferred_entities": [
"string"
],
"last_confirmed": "2019-08-24T14:15:22Z",
"last_retrieved_at": "2019-08-24T14:15:22Z",
"mention_count": 0,
"metadata": {
"property1": null,
"property2": null
},
"miss_count": 0,
"node_id": "string",
"polarity_group_id": "string",
"relationship_relevance": 0.1,
"retention_strength": 0.1,
"sentiment": "string",
"session_id": "string",
"source_id": "string",
"source_type": "string",
"supersedes_id": "string",
"temporal_relevance": "string",
"time_sensitive_at": "2019-08-24T14:15:22Z",
"topic_tags": [
"string"
],
"updated_at": "2019-08-24T14:15:22Z",
"user_id": "string"
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Search agent memories (semantic or BM25)
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Query Parameters
Search query text
Optional user ID. When set and a vector index is available, search uses cosine similarity over fact embeddings; otherwise falls back to BM25.
Optional instance ID for scoping
Retrieval mode: 'semantic' (requires user_id), 'bm25', or 'auto' (default). 'auto' picks semantic when user_id is set and a vector index is wired.
Max results to return (default 20, max 100)
Default 'true'. Set to 'false' to skip the SP4 per-turn verbatim KNN merge and return compressed fact hits only.
Response Body
application/json
application/problem+json
curl -X GET "https://loading/api/v1/agents/string/memory/search?q=string"{
"$schema": "/api/v1/schemas/SearchResponse.json",
"results": [
{
"content": "string",
"fact_id": "string",
"fact_type": "string",
"score": 0.1,
"session_id": "string"
}
]
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}List memory consolidation summaries
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Query Parameters
Filter by consolidation stage: 'daily' or 'weekly'
"daily" | "weekly" | ""Max summaries to return (1-100)
20int64Response Body
application/json
application/problem+json
curl -X GET "https://loading/api/v1/agents/string/memory/summaries"{
"$schema": "/api/v1/schemas/SummariesResponse.json",
"summaries": [
{
"agent_id": "string",
"created_at": "2019-08-24T14:15:22Z",
"period_end": "2019-08-24T14:15:22Z",
"period_start": "2019-08-24T14:15:22Z",
"session_id": "string",
"stage": "string",
"summary": "string",
"summary_id": "string",
"topics": [
"string"
],
"user_id": "string"
}
]
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Get memory timeline grouped by session
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Query Parameters
Optional user ID to scope timeline
Optional instance ID for scoping
Start date in YYYY-MM-DD format (default: 30 days ago)
End date in YYYY-MM-DD format (default: today)
Response Body
application/json
application/problem+json
curl -X GET "https://loading/api/v1/agents/string/memory/timeline"{
"$schema": "/api/v1/schemas/TimelineResponse.json",
"sessions": [
{
"fact_count": 0,
"facts": [
{
"$schema": "/api/v1/schemas/AtomicFact.json",
"agent_framing": "string",
"agent_id": "string",
"atomic_text": "string",
"character_salience": 0.1,
"chunk_id": "string",
"cluster_id": "string",
"confidence": 0.1,
"created_at": "2019-08-24T14:15:22Z",
"emotional_intensity": 0.1,
"entities": [
"string"
],
"episode_id": "string",
"event_time": "2019-08-24T14:15:22Z",
"evidence_message_ids": [
"string"
],
"fact_id": "string",
"fact_type": "string",
"hit_count": 0,
"importance": 0.1,
"inferred_entities": [
"string"
],
"last_confirmed": "2019-08-24T14:15:22Z",
"last_retrieved_at": "2019-08-24T14:15:22Z",
"mention_count": 0,
"metadata": {
"property1": null,
"property2": null
},
"miss_count": 0,
"node_id": "string",
"polarity_group_id": "string",
"relationship_relevance": 0.1,
"retention_strength": 0.1,
"sentiment": "string",
"session_id": "string",
"source_id": "string",
"source_type": "string",
"supersedes_id": "string",
"temporal_relevance": "string",
"time_sensitive_at": "2019-08-24T14:15:22Z",
"topic_tags": [
"string"
],
"updated_at": "2019-08-24T14:15:22Z",
"user_id": "string"
}
],
"first_fact_at": "string",
"last_fact_at": "string",
"session_id": "string"
}
],
"total_facts": 0
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Get wisdom fact audit trail
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Wisdom fact identifier
Response Body
application/json
application/problem+json
curl -X GET "https://loading/api/v1/agents/string/memory/wisdom/audit/string"{
"$schema": "/api/v1/schemas/WisdomAuditResponse.json",
"content": "string",
"derived_from_hashes": [
"string"
],
"fact_id": "string",
"promoted_at": "string",
"promotion_confidence": 0.1,
"source_user_count": 0,
"target_path": "string"
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Delete a wisdom fact
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
Wisdom fact identifier
Response Body
application/json
application/problem+json
curl -X DELETE "https://loading/api/v1/agents/string/memory/wisdom/string"{
"$schema": "/api/v1/schemas/DeleteWisdomResponse.json",
"fact_id": "string",
"success": true
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}List all active facts for a specific user
API key issued to a Sonzai project. Format: Bearer sk_....
In: header
Path Parameters
Agent UUID or URL-encoded agent name
User identifier
Query Parameters
Optional instance ID for scoping
Max facts to return (default 1000, max 5000)
Set to 'true' to only return facts with metadata
Filter by metadata.item_type value
Response Body
application/json
application/problem+json
curl -X GET "https://loading/api/v1/agents/string/users/string/facts"{
"$schema": "/api/v1/schemas/ListAllFactsResponse.json",
"facts": [
{
"confidence": 0.1,
"content": "string",
"created_at": "string",
"entity": "string",
"fact_id": "string",
"fact_type": "string",
"importance": 0.1,
"mention_count": 0,
"metadata": {
"property1": null,
"property2": null
},
"session_id": "string",
"source_id": "string",
"source_type": "string",
"updated_at": "string"
}
],
"total": 0
}{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}