Skip to Content
Assistant memory

Read the caller's saved Assistant preferences

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.

GET
/api/assistant/memories

Authorization

headerAuthorizationBearer <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.

Query Parameters

project?string
Match^[A-Za-z0-9_-]+$
Length1 <= length <= 100

Response Body

Response for status 200

application/json
  1. response
memories*array<>
guidelines?array<>
active*boolean
Example Request
curl -X GET 'https://postdot.example/api/assistant/memories'
Example Response
{
  "memories": [
    {
      "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
    }
  ],
  "guidelines": [
    {
      "id": "string",
      "projectId": "string",
      "topic": "language",
      "statement": "string",
      "channelIds": [
        "string"
      ],
      "source": "studio",
      "createdBy": "string",
      "updatedBy": "string",
      "updatedByName": "string",
      "revision": 1,
      "createdAt": 0,
      "updatedAt": 0
    }
  ],
  "active": true
}

Was this page helpful?