Skip to main content
A wiki page is a Markdown or CSV document in your workspace. Its id is wik_ plus 16 letters and digits, and each revision has a wrev_… id. A learning, lrn_…, is a proposal for the wiki that waits for a person’s decision. For why they work this way, see Wiki and learnings.

States

Wiki page

A page has no status field. Its state comes from archivedAt and from whether it was deleted. Agents and people can create and update pages. Archive, unarchive, slug changes, delete, restore, supersede and ingest need a person. A page with currentRevisionId null has never been published.

Learning

Only a proposed learning can be edited.

Fields

Wiki page

string
required
Page id, wik_….
string
required
Always wiki_page.
string
required
Unique among live pages. Made from the title: lowercase, spaces become -, other characters dropped.
string
required
Title of the current revision.
string
required
markdown or csv.
string
Archive time. Null when live.
string
Path of the ingested file. Null for a page made in Pinework.
string
Current revision, wrev_…. Null when never published.
integer
Approximate tokens the body costs in an agent’s context. Null when not counted yet.
string
Current body, raw. Present on a single get. Null when never published.
object[]
Live pages this page replaces, each with id, slug and title. Single get only.
object[]
Live pages that replace this one. Single get only.
string
required
Creation time.
string
required
Last change time.
A revision (wiki_revision) has id, pageId, title, baseRevisionId, sourceRef, author, taskId, runId, tokenCount and createdAt. A single get adds body.

Learning

string
required
Learning id, lrn_….
string
required
Always learning.
string
required
The one subject of the block.
string
required
proposed, accepted or rejected.
object[]
required
The block, in order.
object[]
required
Tags, each with type and a lowercase name.
string
Conversation it was learned in, cnv_…. Null when none.
string
Filing agent, agt_…. Null when a person filed it.
string
Filing person. Currently always null.
string
Run that filed it, run_…. Null when filed outside a run.
string
Task that run was on, tsk_…. Null when none.
string
The learning_review approval, apr_…. Null when none.
string
Your note, or rejected by reviewer. Null unless rejected.
string
required
Filing time.
string
required
Last change time.

CLI

API

A page {id} takes a wik_ id or an exact slug.

Errors

For shared codes, see API errors.

Limits

  • A page body holds 262,144 bytes (256 KiB) of UTF-8.
  • An update under 60% of the current body length is refused without allowShrink.
  • An ingest request holds 8 MiB (8,388,608 bytes).
  • A list returns 25 items by default and 100 at most. q holds 1 to 100 characters.
  • A learning topic holds 200 bytes.
  • A learning has 1 to 5 bullets. A bullet holds 25 words and 1,024 bytes.
  • A bullet has 1 to 10 sources. A source holds 2,048 bytes and is a pinework://<object>/<id> link or an https:// URL.
  • A learning has up to 6 tags. A tag name holds 128 bytes.

Wiki and learnings

Why learnings wait for a person.

Review learnings

Accept, edit or reject what agents propose.

Approval

The gate that decides each learning.

File

Bytes you attach, rather than pages you edit.