Skip to content
GitmoapAPIBeta
Schema

WikiPageDetail

A page, its content, and everything the index knows about it — the one read that composes git and PostgreSQL.

Shape

  • contentstringThe markup, read from git at the wiki's head.
  • created_atstring
  • doc_idstringStable identity. Unchanged by a rename, which is what lets every backlink survive one.
  • formatWikiFormatmarkdownasciidocrstorgtextilemediawikiThe markup a page is written in, decided by its file extension.
  • pathWikiPagePath (string)
  • titleWikiPageTitle (string)
  • tocarray of WikiHeadingFrom spec_blocks. Empty until the projection has caught up, which is a different thing from the page having no headings and is why the page itself is never sourced from there.
    • The WikiHeading schema
    • anchorstringThe GitHub-compatible slug, which is what a link into the page uses.
    • headingstring
    • levelinteger · int32
    • ordinalinteger · int32
    • parent_ordinalinteger · int32 or nulloptionalThe enclosing heading's ordinal, so a client can rebuild the tree without a second read.
  • updated_atstring
  • wiki_idWikiId (string · uuid)
  • wiki_page_idWikiPageId (string · uuid)
  • commitWikiRevision or nulloptional
  • created_byActorSummary or nulloptional
  • head_shaCommitHash (string) or nulloptionalThe commit the content was read at — the ETag validator. The commit and not the blob, because a wiki save's precondition is the wiki's head (expected_head_sha), and the validator a reader holds is the one a later save presents. Weaker than a per-page validator (any edit anywhere in the wiki moves it) and honest, which is the trade worth making for a cache tag.
  • redirected_fromWikiPagePath (string) or nulloptionalSet when a redirect resolved this request, so the client can update its address bar and say this page moved rather than silently showing something else.

Example

Synthesized example
{
"content": "content-44cd",
"created_at": "2026-10-17T04:34:34Z",
"doc_id": "315d8ced-1bbf-4836-8e1a-21eca1eb771c",
"format": "markdown",
"path": "path-1677",
"title": "Label every synthesized example",
"toc": [
{
"anchor": "anchor-091b",
"heading": "heading-fc07",
"level": 8,
"ordinal": 6
}
],
"updated_at": "2026-10-15T15:26:16Z",
"wiki_id": "8cec243d-5eca-4379-923f-ee4bbdf37398",
"wiki_page_id": "b532210c-b8a4-4c3a-a224-9f41db3e341e",
"commit": {
"author_name": "Tomás Reyes",
"committed_at": "2026-10-14T05:53:52Z",
"message": "Label every synthesized example",
"sha": "ed30cb986a214aa07b087c986bc32f1fb0a277a7",
"author": {
"email": "tomas@acme.example",
"id": "id-f93b",
"username": "lin",
"avatar_url": "https://gitmoap.example/acme/295605e0"
}
},
"created_by": {
"email": "mara@acme.example",
"id": "id-9d2e",
"username": "tomas",
"avatar_url": "https://gitmoap.example/acme/04fb11a4"
},
"head_sha": "82db4aa1154e8e20b7cbfc33e88a945d8d335e9b",
"redirected_from": "redirected-from-b531"
}

Graph

Used inside

No schema contains this one.

Used by