User API
Memories
User memory store
GET
/memoriesList memories for current user
Query parameters
pageinteger
perPageinteger
limitinteger
tagsstringComma-separated tag filter
typestring
searchstring
scopestring
contactEmailstringShorthand for tags=contact:<email>
companyIdstringShorthand for tags=company:<id>
viewstring'instructions' leaves out rows the Instructions page never shows (Optimus relationship summaries, structured records) before paging, and adds per-category `counts` to page 1
principalIdstringAct on this principal's own account (the caller must be their coordinator through an active delegation). Omit for the caller's own. A miss is 404 principal_not_found.
Responses
200Paginated memory list
ok reqenum
truememories reqobject[]
id reqstring
account reqstring
user reqstring
kindenum
unstructuredstructuredresourceTypestring | null
tags reqstring[]
contentstring | null
dataobject | null
source reqenum
systemuserscopeenum
userteamvisibilityenum
author_onlycoordinatorsallaudienceenum
userinternalauthoredBystring | null
assistantstring | null
applicableAssistantIdsstring[] | null
teamstring | null
startDatestring | null
endDatestring | null
isActive reqboolean
isExpired reqboolean
pinnedboolean
metadataobject
createdAt reqstring
updatedAt reqstring
pageinteger
perPageinteger
totalinteger
countsobjectOnly with view=instructions, on page 1: every matching row bucketed by instructionCountKey (a category key, or skill:<name>)
total reqinteger
byKey reqobject
Request
curl 'https://app.openassistant.us/api/memories' \
-H "Authorization: Bearer ak_live_..."Response
{
"ok": true,
"memories": [
{
"id": "string",
"account": "string",
"user": "string",
"tags": [
"string"
],
"source": "system",
"isActive": true
}
]
}POST
/memoriesCreate a new memory
Query parameters
principalIdstringAct on this principal's own account (the caller must be their coordinator through an active delegation). Omit for the caller's own. A miss is 404 principal_not_found.
Request body
content reqstring
tagsstring[]
sourceenum
systemuserapplicableAssistantIdsstring[] | nullAssistants that may use this memory, in any category. Empty/null means all; omit on update to preserve.
scopeenum
userteamteamstring
startDatestring
endDatestring
metadataobject
Responses
201Created memory
ok reqenum
truememory reqobject
id reqstring
account reqstring
user reqstring
kindenum
unstructuredstructuredresourceTypestring | null
tags reqstring[]
contentstring | null
dataobject | null
source reqenum
systemuserscopeenum
userteamvisibilityenum
author_onlycoordinatorsallaudienceenum
userinternalauthoredBystring | null
assistantstring | null
applicableAssistantIdsstring[] | null
teamstring | null
startDatestring | null
endDatestring | null
isActive reqboolean
isExpired reqboolean
pinnedboolean
metadataobject
createdAt reqstring
updatedAt reqstring
400Bad request
status reqinteger
error_codestring
error reqstring
Request
curl 'https://app.openassistant.us/api/memories' \
-X POST \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"content": "string"
}'Response
{
"ok": true,
"memory": {
"id": "string",
"account": "string",
"user": "string",
"tags": [
"string"
],
"source": "system",
"isActive": true
}
}GET
/memories/{memoryId}Get a specific memory
Path parameters
memoryId reqstring
Query parameters
principalIdstringAct on this principal's own account (the caller must be their coordinator through an active delegation). Omit for the caller's own. A miss is 404 principal_not_found.
Responses
200Memory
ok reqenum
truememory reqobject
id reqstring
account reqstring
user reqstring
kindenum
unstructuredstructuredresourceTypestring | null
tags reqstring[]
contentstring | null
dataobject | null
source reqenum
systemuserscopeenum
userteamvisibilityenum
author_onlycoordinatorsallaudienceenum
userinternalauthoredBystring | null
assistantstring | null
applicableAssistantIdsstring[] | null
teamstring | null
startDatestring | null
endDatestring | null
isActive reqboolean
isExpired reqboolean
pinnedboolean
metadataobject
createdAt reqstring
updatedAt reqstring
404Not found
status reqinteger
error_codestring
error reqstring
Request
curl 'https://app.openassistant.us/api/memories/<memoryId>' \
-H "Authorization: Bearer ak_live_..."Response
{
"ok": true,
"memory": {
"id": "string",
"account": "string",
"user": "string",
"tags": [
"string"
],
"source": "system",
"isActive": true
}
}PUT
/memories/{memoryId}Update a memory
Path parameters
memoryId reqstring
Query parameters
principalIdstringAct on this principal's own account (the caller must be their coordinator through an active delegation). Omit for the caller's own. A miss is 404 principal_not_found.
Request body
contentstring
tagsstring[]
applicableAssistantIdsstring[] | nullAssistants that may use this memory, in any category. Empty/null means all; omit on update to preserve.
scopeenum
userteamteamstring | null
startDatestring | null
endDatestring | null
metadataobject
Responses
200Updated memory
ok reqenum
truememory reqobject
id reqstring
account reqstring
user reqstring
kindenum
unstructuredstructuredresourceTypestring | null
tags reqstring[]
contentstring | null
dataobject | null
source reqenum
systemuserscopeenum
userteamvisibilityenum
author_onlycoordinatorsallaudienceenum
userinternalauthoredBystring | null
assistantstring | null
applicableAssistantIdsstring[] | null
teamstring | null
startDatestring | null
endDatestring | null
isActive reqboolean
isExpired reqboolean
pinnedboolean
metadataobject
createdAt reqstring
updatedAt reqstring
Request
curl 'https://app.openassistant.us/api/memories/<memoryId>' \
-X PUT \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"content": "string",
"tags": [
"string"
],
"applicableAssistantIds": [
"507f1f77bcf86cd799439011"
],
"scope": "user"
}'Response
{
"ok": true,
"memory": {
"id": "string",
"account": "string",
"user": "string",
"tags": [
"string"
],
"source": "system",
"isActive": true
}
}DELETE
/memories/{memoryId}Delete a memory
Path parameters
memoryId reqstring
Query parameters
principalIdstringAct on this principal's own account (the caller must be their coordinator through an active delegation). Omit for the caller's own. A miss is 404 principal_not_found.
Responses
200Deleted
ok reqenum
truememory reqobject
id reqstring
deletedboolean
messagestring
Request
curl 'https://app.openassistant.us/api/memories/<memoryId>' \
-X DELETE \
-H "Authorization: Bearer ak_live_..."Response
{
"ok": true,
"memory": {
"id": "string"
}
}