Youniton Docs

Write project memory from meetings and agents

A project's memory is a set of Markdown entries in directories. Meetings, automations and agents write entries by path; people read and search them in Youniton.

#The model

  • An entry is one Markdown text (CommonMark) at a path in its project, for example meetings/2026-11-20 kickoff.md. It is a database record, not a file.
  • A directory is a record too. It can be empty. A write creates the missing parent directories.
  • Each entry keeps its source: person, meeting or agent, with a name for a meeting or an agent. Youniton shows it as a badge, for example Agent · Atlas coding agent. source is the first write's; lastSource is the last write's.
  • There is no version history: an edit replaces the body. version exists only for ETag and If-Match.

#Before you start

Create a personal token with memory:read and memory:write. The member needs the rights "Memory read" and "Memory write" on the project; by default Admins, Product managers and Developers have "Memory write".

#Write by path

  1. #PUT the entry

    PUT /projects/{projectKey}/memory/entries/by-path
    curl -X PUT "https://app.youniton.example/api/v1/projects/ORB/memory/entries/by-path?path=agents/notes/test" \
      -H "Authorization: Bearer $YOUNITON_TOKEN" -H "Content-Type: application/json" \
      -d '{"body": "# Notes\n\nWritten by the agent.", "source": {"kind": "agent", "name": "Atlas coding agent"}}'
    # 201 on the first call: data.path = "agents/notes/test.md" (".md" is added);
    # the directories agents and agents/notes are created

    PUT/projects/{projectKey}/memory/entries/by-path

  2. #Repeat it safely

    The same body again changes nothing: 200 with meta.outcome unchanged. A new body replaces the old one: 200 with updated. So a meeting automation can send its notes again after an error.

    If-Match is optional here. Send it when you must not overwrite a change by a person: a stale version answers 412.

  3. #Read it back

    GET /projects/{projectKey}/memory/entries/by-path
    curl "https://app.youniton.example/api/v1/projects/ORB/memory/entries/by-path?path=agents/notes/test.md" \
      -H "Authorization: Bearer $YOUNITON_TOKEN"

    GET/projects/{projectKey}/memory/entries/by-path

#Path rules

  • Youniton adds .md to a name without it and changes .markdown to .md. Testing by boris and Testing by boris.md are the same entry.
  • A path is unique in its project without regard to letter case.
  • A segment has 1–80 characters: letters, digits, space, . _ - ( ). It does not start or end with a space or a dot.
  • A path has at most 8 directories and 512 characters. One leading / is removed.
  • A path that breaks a rule answers 422 memory.path_invalid.

#The body

  • CommonMark text in UTF-8, with no NUL and no control character other than tab, LF and CR. An empty body is valid.
  • At most the tenant setting memory.entries.maxBytes (default 1 MiB): 422 memory.body_too_large.
  • Raw HTML stays text. Youniton never shows it as HTML.

#The source

A write with a personal token can set any source. A meeting automation sends {"kind": "meeting", "name": "…"}; an agent sends {"kind": "agent", "name": "…"}. The name is required for meeting and agent (1–120 characters) and absent for person. A write from the Youniton app is always person.

#More operations

  • Search with q (words of the path, the title or the body), filter by source or directory, and sort by path or updated.
  • PATCH and DELETE need If-Match. A delete is for good: there is no trash.
  • A directory with entries is not deleted (409 memory.directory_not_empty) unless you send ?recursive=true.
  • A project holds at most memory.entries.perProject entries (default 5,000) and memory.directories.perProject directories (default 1,000): 409 limit.reached.
  • The .md file upload is for the Youniton app only; a token uses the JSON operations.

Was this helpful?