Skip to main content

Personal Journals API

These browser API methods browse your directly owned Personal Journals and the history of their Source contributions. Use the app's authenticated tRPC client with your own signed-in session and an eligible paid or trial Anydayway membership. Your active Organization does not become the owner. Organization administrators, OAuth clients and named Agents cannot use this interface to read another person's Personal Journals.

Browse Journals and contributions​

  • personalDocuments.listTree accepts {} and returns your Journal hierarchy. It creates your default Personal root when one is first needed.
  • personalDocuments.read accepts { "id": "journal-id" } and returns that Journal's current body, Markdown, metadata and tags. Ownership is represented by ownerUserId, organizationId: null and memberId: null.
  • personalDocuments.listBySource accepts { "sourceId": "source-id" } and returns the Journals that Source's recorded contributions touched, newest first, with your permitted titles. Your private Sources remain eligible in your Personal space. Foreign Sources return no relationships. Concurrent changes to the Source, contributing records or visible Journal publication return CONFLICT; reload the list.
  • personalDocuments.listSources accepts { "documentId": "journal-id" } and returns Sources whose recorded Changes touched that Journal, including retained accepted legacy contributions. Each entry contains sourceId and changedAt.
  • personalDocuments.listCitations accepts the same input and returns one citation per Source from its latest Change still in effect. Entries contain sourceId, the historical numeric sourceVersion, title, kind, availability and citedAt. Reversing a newer contribution reveals the earlier effective citation; uploading a newer Source version does not rewrite the cited revision. Extracted passages retain their inherited citations.
  • personalDocuments.listChanges accepts { "documentId": "journal-id" } and returns its retained Changes.
  • personalDocuments.listLog accepts optional sourceId, actorType, actorId and limit (1–500, default 50) filters. Its response contains changes and hasMore. An actor filter applies only together with its actor type. Use a larger allowed limit to inspect older Changes.

Current and historical reads apply the Source's current restrictions. A retained Change is not permission to reveal evidence that is no longer available. Source identifiers and inherited references are withheld from public history when they no longer permit that Journal's audience. Otherwise-eligible archived or unavailable originals can remain as unavailable citations; they cannot be opened as available evidence. Metadata acquisition and current access are checked again before release. A saved identifier does not grant access to someone else's Journal. Missing or foreign Journals return NOT_FOUND; a foreign Source filter returns no matching contributions in your own space.

Create and edit​

personalDocuments.create accepts title, optional description, body and parentId. A parent must be one of your Personal Journals. update accepts id and the fields to change; omitted fields stay unchanged. You can also edit icon, color, belongs, exclusion, instructions and childTemplate. Titles are limited to 500 characters, bodies and child templates to 200,000, and descriptions and guidance fields to 5,000.

personalDocuments.reparent accepts id and a Personal parentId, or null to make a root. Moving a Journal under itself or a descendant is refused. seedCollections accepts an ids array of the app's collection identifiers; it adds missing selected collections under your default root. Selecting an existing collection again does not create another copy.

personalDocuments.listTags accepts {} and returns your active Journal tag catalog. replaceTags accepts id and tagIds; only applicable tags from your Personal space are retained. Tag assignments and their Change commit together. listLinks accepts id and returns outgoing and incoming Journals from the same Personal space, using your current permitted titles. Foreign edges do not open Organization or other people's Journals. If a linked publication becomes unavailable before return, the read returns CONFLICT; reload the links.

Tag mutation responses retain your permitted body, title and publication stamp. A conflict before persistence leaves tags unchanged. If evidence changes after the tag commit, the response withholds stale content; reload to inspect the saved tags before retrying.

personalDocuments.revise accepts id, selectedMarkdown, spanningBlocksMarkdown, the displayed policyStamp, and a preset, custom prompt, or both. Derived text requires the stamp captured with your selection; a missing or stale stamp returns CONFLICT before a model call. Presets are shorter, longer, simpler, grammar and bullets. It returns a draft markdown and leaves the saved body unchanged. Review the draft before applying it with update. A Journal change, supporting evidence becoming unavailable, or loss of access during generation withholds the draft; refresh before retrying. The prompt uses your permitted metadata and direct User identity. Completed model calls remain in usage even if their drafts are withheld; a revision adds no extra zero-token usage marker.

Reverse a contribution​

personalDocuments.reverseChange accepts { "changeId": "change-id" }. It restores that Change's earlier snapshot when the Change is still in effect and the Journal can safely be restored. Reversing a creation archives the created Journal. The response contains documentId and archived.

personalDocuments.reverseAllFromSource accepts sourceId. It attempts each still-effective Change from that Source, newest first. The response contains reversed and notReversed; each refusal identifies the affected Change, Journal and reason. Already reversed Changes are skipped.

Undo restores the earlier recorded evidence identities. Withdrawing the reversed Source therefore does not hide unrelated restored evidence. Originals and the retained history are preserved. A missing historical provenance record returns a specific CONFLICT without changing the Journal: compare the history and current originals before editing manually. Repeated automatic undo does not repair that missing attribution.

Review the result before retrying. A newer edit, a writing lock, children or an invalid earlier parent can prevent reversal. An edit made while reversal is running produces a conflict and remains intact, including metadata and coalesced edits that do not change the text version. Reversal records a new immutable Change; it does not erase the original history.

The browse and editing methods above are separate from the cumulative budget used by Personal research. Exact Source citations use personalDocuments.getSource, described in that guide. For original capture, see Personal Sources API.

read also returns the visible policyStamp. Echo it in update when changing Source-derived text. Missing or stale stamps return CONFLICT; reload the saved Journal before retrying. Appearance-only changes do not require that client stamp. Edits retain their Source restrictions, while hidden retained segments and independent human notes are preserved. The response is checked again after metadata acquisition so a withdrawn original is not returned from a cached save.

Read bounded original evidence​

personalDocuments.getJournal reads current original Journal evidence using your saved Personal research budget. Pass researchContextId when continuing existing research and either journalId or journalIds (up to eight), with optional maxBytes from 4,096 to 32,768. The default is 16,384 bytes, including the final response envelope and continuation.

Start with mode: "metadata" for title, description and parent path, or mode: "outline" for section identifiers. Use mode: "sections" with sectionIds, or mode: "full" for original text. The response is { "journals": [...], "continuation": null }, with a continuation string when more original text remains. Resume using the same request and that continuation.

Each available Journal includes direct Personal ownership, contentVersion and a citation address retaining space=personal. Section locators identify UTF-8 byte ranges in that version. For an exact passage, send mode: "passages", its contentVersion, returned policyStamp and the original passages locators. Do not recompute byte ranges from character counts. The citation address retains the policy stamp. A stale stamp returns CONFLICT: reopen the current original before continuing.

A requested version that is no longer retained returns an unavailable entry with reason: "version_not_retained". A changed Journal, parent path, visible original or saved research selection invalidates an old continuation with CONFLICT; start a fresh read. Invalid section or passage selections return BAD_REQUEST. Foreign Journals return NOT_FOUND. Losing eligible access during a read withholds the response. These methods cannot select an Organization, Task or another owner.

Discover branches and citations within a research budget​

personalDocuments.listJournalTree provides bounded metadata discovery using the same saved Personal research budget as original reads. It accepts optional researchContextId, mode, journalId, limit (1–24, default 12), maxBytes (4,096–32,768, default 8,192), and continuation. It cannot select an Organization or Task.

Choose roots or whole-tree to browse your hierarchy. children, ancestors, links, backlinks and citations require a journalId. Explicit links and parents outside your Personal space are excluded. Ancestor traversal stops at 32 levels; the response reports that traversal limit.

The response contains your direct ownership, mode, journals, citations, continuation, coverage and gaps. It has no Organization envelope. Resume with the same request and the returned continuation. Final response bytes count against your research budget, including titles, citation addresses and the cursor. Changing active Organization leaves your Personal selection intact. A changed selected Journal, parent or relationship invalidates the read with CONFLICT; restart discovery. Loss of eligible access withholds the result.

Citation cards record historical provenance, not exact original content. Their sourceVersion may differ from currentVersion; exactEvidence is legacy_content_identity_unavailable, and the reference requests metadata. Use the separate original evidence interface to verify retained content. Only currently available, owner-readable Sources appear in discovery. The unbounded listCitations history view above can retain an otherwise-eligible unavailable citation. If retained history exceeds 256 Changes, discovery returns partial coverage with citation_history_incomplete and does not claim a complete citation set. Long metadata and pages are truncated or continued to respect the byte limit.

Bounded Journal search applies current eligibility before ranking its lexical results and rechecks the selected publication after settling its byte budget. An original withdrawn during acquisition returns CONFLICT without the cached passage. Reopen current originals before continuing; retained history is not deleted by this check.

Personal discovery rechecks its bounded page after byte-budget settlement. If an original is archived or its eligible projection changes at that boundary, the response is withheld with CONFLICT. Restart discovery to acquire the current page; the retained Journal and independent notes are preserved.

A Journal's exact stamp includes the permitted parent titles in its path. A parent metadata change can invalidate an older child receipt without changing the child's numeric revision. Parent bodies are not acquired as part of that path; foreign-owner parents are not included, and cyclic ancestry is bounded.

Personal browser navigation (personalDocuments.listTree) uses your direct User ownership and current permitted Journal publications. A Source made unavailable while navigation is loading causes CONFLICT; reload the tree. Organization Members and managers cannot acquire your Personal titles through navigation.

Evidence used while the Assistant organizes Journals​

Generated children and rewritten text retain the exact eligible Source versions used in their Journal context, including titles and guidance. Later withdrawal of that evidence withholds the affected generated text while retaining unrelated human notes. Ancestor bodies omitted from the planner's context do not become new dependencies merely because they are in the same branch.

A restriction or qualification changed during the write returns CONFLICT and rolls back that write. Reload current evidence before retrying. Qualifications such as hypothetical or historical claims are retained when new notes are added; repeating the same annotation does not add it again.

The incoming Source must also retain its exact eligible revision and qualifications. If its qualifications change while the Assistant is writing, the Journal write is cancelled with CONFLICT; reopen the current Source before retrying. Ineligible Organization-private, restricted, pending, foreign or stale revisions do not start Journal planning. Personal private Sources retain their direct owner's eligibility.

Automatic Journal links and their recorded Changes commit together. A denied or failed write leaves no relationship behind, including after the original becomes eligible again. If either Journal changes during acquisition, retry with its current context. Concurrent retries of the same link create one relationship and one Change.

Source-derived relationships​

Your Personal links and backlinks retain their supporting Source revisions. If a supporting original becomes unavailable, affected relationships disappear from current reads and retained snapshots while independent notes remain. Private Personal Sources may still support your own Journals. This does not share either the Source or its relationships with an Organization.

A change during acquisition returns CONFLICT; reload the links. Older relationships with uncertain or missing evidence remain withheld. Reopen exact citations against the current Journal if their earlier publication stamp is no longer accepted.

Automatic Journal writing checks its acquired context before generation. If a supporting Source or Journal changes before that check, planning stops with CONFLICT; reload current evidence before retrying. A change during generation still prevents a stale write, and completed model calls remain in usage.

Automatic filing of transcripts and imports can use candidate titles, guidance and relationships outside the final destination branch. Their supporting Source restrictions continue to apply to the generated note. Withdrawing that evidence can therefore hide the note even when its destination has independent content. Body text omitted from the routing context does not become supporting evidence.

Source-derived Journal placement​

An automatic move retains the Source evidence behind that placement. If that evidence becomes private, unavailable or unsuitable for this audience, the Journal returns to an eligible earlier placement, or appears at the root when none is available. Independent notes remain available. Undo preserves the original evidence restrictions; editing unrelated text or saving the same visible parent does not make a hidden automatic placement independent.

Paths and child membership supplied to automatic organization or import routing also retain their supporting evidence. A linked Journal's parent does not become supporting evidence when that parent was omitted from the context. Changed context requires a fresh plan. Conflicting placements produce a usable tree, preserving independent human choices where possible. A concurrent move that would create a cycle returns CONFLICT; reload before moving it again.

Reopen exact Journal citations issued before placement-aware publication checks. A citation bound to author-only evidence cannot approve an Organization audience merely because both audiences show the same parent.

Automatic curation retries​

Personal curation uses the directly owning User's audience and keeps that purpose separate from Organization billing attribution. A changed Source revision, qualification or availability invalidates a pending plan. Restart after CONFLICT; late changes roll back the write and its history. Supporting evidence from earlier planning retains its restrictions. An active completed contribution prevents a duplicate note for the same revision; undo permits processing it again.

Personal Journal mutations return FORBIDDEN while Personal content is being deleted. Do not automatically replay creation, edits, reversals or relationship changes; wait until Personal space becomes available. An Organization uses its own content state, and renewed access does not bypass an ongoing deletion.