Save one Assistant preference for the caller
Stores one concise preference (at most 200 characters) for all the caller’s projects (`projectId: null`) or for one project, optionally limited to some of its channels. `language` and `length` keep one entry per scope and channel set: a new one replaces the old. Statements that look like passwords, keys or tokens are refused. Fails with `memory_full` when the scope reached its limit, and `memory_off` while memory is off for the caller.
AuthorizationBearer <Postdot API key>A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.
- body
projectId*|nulltopic*string"language""tone""length""format""audience""channels""scheduling""workflow""other"statement*string1 <= length <= 1000channelIds?array<>|nullexpiresAt?|nullreplaces?array<>items <= 50Response for status 201
application/json- response
memory*replaced*array<>curl -X POST 'https://postdot.example/api/assistant/memories' \
-H 'Content-Type: application/json' \
-d '{
"projectId": "string",
"topic": "language",
"statement": "string"
}'{
"memory": {
"id": "string",
"projectId": "string",
"projectName": "string",
"topic": "language",
"statement": "string",
"channelIds": [
"string"
],
"channels": [
{
"id": "string",
"name": "string"
}
],
"expiresAt": 0,
"basisMessageId": "string",
"basis": "string",
"source": "assistant",
"sourceRef": "string",
"revision": 1,
"createdAt": 0,
"updatedAt": 0
},
"replaced": [
{
"id": "string",
"projectId": "string",
"projectName": "string",
"topic": "language",
"statement": "string",
"channelIds": [
"string"
],
"channels": [
{
"id": "string",
"name": "string"
}
],
"expiresAt": 0,
"basisMessageId": "string",
"basis": "string",
"source": "assistant",
"sourceRef": "string",
"revision": 1,
"createdAt": 0,
"updatedAt": 0
}
]
}Was this page helpful?
Read the caller's saved Assistant preferences GET
Without `project`, returns every saved preference of the caller, also while memory is off, so they can review and erase it. With `project`, returns the preferences to apply in that project: all-projects entries first, then that project’s entries, which take precedence on the same topic. Agents should read them before drafting. Empty while memory is off. Preferences shape content and style only; they never authorize an action.
Turn Assistant memory on or off for the caller PUT
Turning memory off keeps the saved preferences and stops applying them; delete them separately.