Knowledgewiki
GET/groups/{group_id}/wiki/pages/{path}/revisions/{sha}
Read a wiki page as it was at a commit
get_group_wiki_page_revision
wiki:read
A token needs thewiki:readscope: Read wiki pages, their history and their backlinksGranted bymcp_agent,mcp_agent_write,read_api,write_api.Every operation this scope unlocksMetered egress · in band body
x-gitmoap-egress: {"kind":"metered","arg":"in_band_body"}
Cacheable · immutable SHA
x-gitmoap-cache: {"kind":"immutable_sha"}
Answers the page's content at that commit, addressed by the page's current path. The response can be cached indefinitely, because a commit never changes; it carries no table of contents. Anyone who can see the group may read its wiki; on a public group that includes callers who are not signed in.
Parameters
Path
- group_idGroupId (string · uuid)Group ID
- pathWikiPagePath (string)URL-encoded wiki page path
- shastringThe commit to read the page at
Responses
200The page as it was at that commitapplication/json
- 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
- The WikiRevision schema
- author_namestring
- committed_atstring
- messagestring
- shastring
authorActorSummary or nulloptional
- The ActorSummary schema
- emailstring
- idstring
- usernamestring
- avatar_urlstring or nulloptional
created_byActorSummary or nulloptional
- The ActorSummary schema
- emailstring
- idstring
- usernamestring
- avatar_urlstring or nulloptional
- head_shaCommitHash (string) or nulloptionalThe commit the content was read at — the
ETagvalidator. 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.
200 exampleSynthesized example
{
"content": "content-c92f",
"created_at": "2026-10-13T01:47:15Z",
"doc_id": "9844648c-adc3-4ec0-a1a7-9c65b7852b5a",
"format": "markdown",
"path": "path-02b2",
"title": "Inline scalar newtypes but keep their brand",
"toc": [
{
"anchor": "anchor-7576",
"heading": "heading-4d24",
"level": 32,
"ordinal": 12
},
{
"anchor": "anchor-441d",
"heading": "heading-7d3f",
"level": 85,
"ordinal": 7
}
],
"updated_at": "2026-10-11T23:22:34Z",
"wiki_id": "2a4a5e78-0681-472e-b0ae-3250a45a78b7",
"wiki_page_id": "df264b23-f35e-47e9-ac2d-04e56131a1d5",
"commit": {
"author_name": "Mara Okafor",
"committed_at": "2026-10-14T04:54:42Z",
"message": "Draw the region map from operation density",
"sha": "4ed4d34c2a3b2101f08436fd84227a7ad7c5e423",
"author": {
"email": "lin@acme.example",
"id": "id-4461",
"username": "tomas",
"avatar_url": "https://gitmoap.example/acme/01f8d0be"
}
},
"created_by": {
"email": "lin@acme.example",
"id": "id-f7a3",
"username": "tomas",
"avatar_url": "https://gitmoap.example/acme/f8fedd04"
},
"head_sha": "43fd1b7e63bbd87707417cb7bb78caa333f8b7aa",
"redirected_from": "redirected-from-9bae"
}
400Bad request — a path parameter is not a well-formed value of its typeapplication/json
Error codes
- BAD_REQUESTThe request is malformed: a parameter or a body field is not a well-formed value of its type
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
400 exampleSynthesized example
{
"error": {
"code": "code-87cf",
"message": "Label every synthesized example"
}
}
401Unauthenticated — no credential, or an invalid oneapplication/json
Error codes
- UNAUTHORIZEDNo credential was sent, or the one sent is invalid, expired or revoked
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
401 exampleSynthesized example
{
"error": {
"code": "code-6a71",
"message": "Pin a page's payload to the build that rendered it"
}
}
403Forbidden — the caller's access level or token scope is insufficientapplication/json
Error codes
- FORBIDDENYou are signed in but may not do this here;
reasonnames the permission or the rule that refused it - INSUFFICIENT_SCOPEThe access token lacks the scope this operation needs;
required_scopenames it - PERMISSION_REQUIREDYou need a permission you do not hold here; the message names it
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
403 exampleSynthesized example
{
"error": {
"code": "code-1c56",
"message": "Label every synthesized example"
}
}
404No page at this path, or no such commitapplication/json
Error codes
- NOT_FOUNDThe resource does not exist — or exists and you cannot see it: a private resource you have no access to answers exactly as an absent one does
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
404 exampleSynthesized example
{
"error": {
"code": "code-a457",
"message": "Pin a page's payload to the build that rendered it"
}
}
CLI
gitmoap wiki get-group-wiki-page-revision
- --group-ididGroup ID (id or group path)
- --pathidURL-encoded wiki page path
- --shastringThe commit to read the page at