Skip to main content
What Priors stores, how tenant and agent isolation work, and the exact scope of all four delete operations.

What Priors stores

Priors does not store your own model’s prompts or replies unless you send them back with observe.

Isolation and boundaries

Every organization is strictly isolated from every other organization. Inside an organization, every agent has its own memory index and file store. Every request is scoped to your organization first; any id you cannot reach returns 404, never 403. Data is encrypted in transit and at rest.
The agent is the boundary between customers, not threads or X-SP-End-User. Give each customer their own agent. X-SP-End-User narrows which threads one caller sees inside an agent, not which memories the agent searches. Two people talking to the same agent share its learned memory.

What each delete call does

Priors provides four distinct delete calls, from narrowest (one turn) to widest (an entire agent). Pick the one that matches what you actually want removed. Agents do not expire on their own. Only DELETE/v2/agents/ removes an agent.

Forgetting everything a thread taught an agent

Because deleting a thread keeps its memories, removing what a thread taught takes two steps as the agent’s owner (works before or after deleting the thread):
  1. List the thread’s turns with GET/v2/agents//memories?thread_id=. Paginate with cursor until next_cursor is null.
  2. Call DELETE/v2/agents//memories/ for each non-file turn (URL-encoding turn_id because an id can contain / or #). For any turn where file_piece is true, delete the file instead with DELETE/v2/agents//files/.
See Memories and Files for full examples and error codes.

What you must not send

  • Secrets, API keys, or passwords. Anything sent to a learning endpoint can become a memory that appears in future answers.
  • Private information that a user has not agreed to share with everyone else who talks to the same agent.

Retention and improvement

Stored data stays until you delete it. Your agreement with SapientPriors governs post-deletion retention periods and whether records are used to improve the service.