Memory
The Memory operations of the Hub REST API (7 operations).
bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
userId?stringquery?stringq?stringlimit?stringMatching facts
application/json- response
[index: integer]?curl -X GET 'https://pod.example.com/api/hub/memory'[ { "id": "string", "userId": "string", "fact": "string", "confidence": 0, "sourceEntityId": "string", "sourceMessageId": "string", "createdAt": "string", "updatedAt": "string" }]bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
userId?stringDefaults to the authenticated agent's user when omitted.
fact*string1 <= lengthconfidence?number0 <= value <= 1embedding?array<number>Optional 1536-d embedding. Falls back to a zero vector when omitted.
sourceEntityId?stringsourceMessageId?stringSaved fact
application/json- response
id*stringuserId*stringfact*stringconfidence?number0 <= value <= 1sourceEntityId?string|nullsourceMessageId?string|nullcreatedAt?string|updatedAt?string|curl -X POST 'https://pod.example.com/api/hub/memory' \ -H 'Content-Type: application/json' \ -d '{ "fact": "string"}'{ "id": "string", "userId": "string", "fact": "string", "confidence": 0, "sourceEntityId": "string", "sourceMessageId": "string", "createdAt": "string", "updatedAt": "string"}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
userId*stringembedding*array<number>limit?integer0 < value <= 100Matching facts
application/json- response
[index: integer]?curl -X POST 'https://pod.example.com/api/hub/memory/search' \ -H 'Content-Type: application/json' \ -d '{ "userId": "string", "embedding": [ 0 ]}'[ { "id": "string", "userId": "string", "fact": "string", "confidence": 0, "sourceEntityId": "string", "sourceMessageId": "string", "createdAt": "string", "updatedAt": "string" }]bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
id*stringuserId*stringDeleted
application/json- response
success*booleancurl -X DELETE 'https://pod.example.com/api/hub/memory/string?userId=string'{ "success": true}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
userId?stringDefaults to the authenticated agent's user when omitted.
sessionId*stringSession grouping ID.
turns*array<>1 <= itemssummary?stringOptional human-readable summary.
confidence?number0 <= value <= 1embedding?array<number>Optional 1536-d embedding for the full session. Falls back to zero vector.
sourceEntityId?stringsourceMessageId?stringBatch result
application/json- response
success*booleanfacts*array<>count*integer0 <= valuecurl -X POST 'https://pod.example.com/api/hub/memory/turns' \ -H 'Content-Type: application/json' \ -d '{ "sessionId": "string", "turns": [ { "role": "user", "content": "string" } ]}'{ "success": true, "facts": [ { "id": "string", "userId": "string", "fact": "string", "confidence": 0, "sourceEntityId": "string", "sourceMessageId": "string", "createdAt": "string", "updatedAt": "string" } ], "count": 0}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
userId?stringDefaults to the authenticated agent's user when omitted.
sessionId*stringUnique session ID.
summary*stringHuman-readable session summary.
1 <= lengthturnCount?integer0 < valuetags?array<string>metadata?confidence?number0 <= value <= 1Session metadata stored
application/json- response
success*booleanfacts*array<>count*integer0 <= valuecurl -X POST 'https://pod.example.com/api/hub/memory/sessions' \ -H 'Content-Type: application/json' \ -d '{ "sessionId": "string", "summary": "string"}'{ "success": true, "facts": [ { "id": "string", "userId": "string", "fact": "string", "confidence": 0, "sourceEntityId": "string", "sourceMessageId": "string", "createdAt": "string", "updatedAt": "string" } ], "count": 0}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
userId?stringDefaults to the authenticated agent's user when omitted.
entries*array<>1 <= items <= 50confidence?number0 <= value <= 1Batch result
application/json- response
success*booleanfacts*array<>count*integer0 <= valuecurl -X POST 'https://pod.example.com/api/hub/memory/writes' \ -H 'Content-Type: application/json' \ -d '{ "entries": [ { "action": "remember", "target": "string", "content": "string" } ]}'{ "success": true, "facts": [ { "id": "string", "userId": "string", "fact": "string", "confidence": 0, "sourceEntityId": "string", "sourceMessageId": "string", "createdAt": "string", "updatedAt": "string" } ], "count": 0}