API reference · schema
MemVaultWriteApiRequest
11 fields · used by 0 operations
Last reviewed 2026-11-06
Fields
| Field | Type | Meaning |
|---|---|---|
agent_id required | string | |
target_store | string | default "memvault" |
memory_key required | string | |
content required | string | |
metadata | object | |
trajectory_id | string or null | |
vector | array of number or null | |
source_type | string | default "agent" |
source_id | string | default "" |
trust | string or null | |
namespace | string or null |
Smallest valid example
{
"agent_id": "agent-id",
"target_store": "memvault",
"memory_key": "memory-key",
"content": "content",
"source_type": "agent",
"source_id": ""
}JSON Schema
Show the raw definition
{
"properties": {
"agent_id": {
"type": "string",
"title": "Agent Id"
},
"target_store": {
"type": "string",
"title": "Target Store",
"default": "memvault"
},
"memory_key": {
"type": "string",
"title": "Memory Key"
},
"content": {
"type": "string",
"title": "Content"
},
"metadata": {
"additionalProperties": true,
"type": "object",
"title": "Metadata"
},
"trajectory_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Trajectory Id"
},
"vector": {
"anyOf": [
{
"items": {
"type": "number"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Vector"
},
"source_type": {
"type": "string",
"title": "Source Type",
"default": "agent"
},
"source_id": {
"type": "string",
"title": "Source Id",
"default": ""
},
"trust": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Trust"
},
"namespace": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Namespace"
}
},
"type": "object",
"required": [
"agent_id",
"memory_key",
"content"
],
"title": "MemVaultWriteApiRequest"
}Try CAIN-42 on your own agents
Create a free account and every new account starts with a 30-day trial of the full platform. Or try the sandbox first, with no account at all.
Create a free account → · Try the sandbox · See the whole ecosystem