Append team memory entry
Append an entry. Memory is never edited in place: writing to a key that has a current entry supersedes it and must name it as expectedCurrentEntryId (409 current_entry_changed otherwise, and nothing is written). The entry is embedded for semantic search (billed as a team memory embedding); if embedding fails it is still saved, searchable by key and keyword.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.
Body
What the memory records: company_fact (true about the business), user_preference (how one person likes things done), observation (something noticed, e.g. by an agent) or rule (a standing instruction).
company_fact, user_preference, observation, rule Short one-line label for the memory, 1-200 characters, no control characters.
1 - 200^[^\u0000-\u001F\u007F-\u009F]*$The memory itself in plain text or markdown, 1-4000 characters.
1 - 4000Omit to derive one from the kind and title (rule/no-emojis). Writing to a key with a current entry supersedes it and requires expectedCurrentEntryId.
200^[a-z0-9][a-z0-9_-]*(\/[a-z0-9][a-z0-9_-]*){0,7}$Optional one-line summary, up to 500 characters.
500Pin the entry so only a person can displace it.
Omit for the default: team, or the caller for user_preference. Only admins may write another member's preference.
1 - 64How sure the writer is that the memory is true, from 0 to 1.
0 <= x <= 1The current entry for the key this append supersedes; null or omitted when the key has none. A stale value returns 409 and writes nothing.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Up to 10 relations from the new entry to existing ones.
10Response
Success
The entry this append superseded; null when the key was new.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$pending when the vector could not be created yet; the entry is still found by keyword search and can be embedded later by the backfill endpoint.
ready, pending