Agent Memory Collections
Link memory collection to agent
Links a memory collection to an agent so it is active in every chat with the agent.
POST
Linked collections are always active in every chat with the agent, for everyone who uses it. Nobody has to turn them on in the chat.
You must own the collection or have edit access to it. Your default “My Memories” collection cannot be linked. An agent can have up to 10 linked collections. Linking a collection that is already linked changes nothing.
Only agent editors can call this endpoint: the agent creator, or a member with permission to manage workspace documents. The token needs the
use_agents ability, and the workspace needs memory enabled.
Errors
403: You are not an editor of the agent, or you do not have the memory permission in the workspace.404: The agent was not found in the workspace, or memory is turned off for the workspace. The collection was not found, is your default “My Memories” collection, or you do not own it or have edit access to it.422: The body is invalid, or the agent already has 10 linked collections.

