Skip to content
GitmoapAPIBeta
Knowledgewiki
GET/groups/{group_id}/wiki/pages/{path}

Read one wiki page

get_group_wiki_page
  • wiki:read
    A token needs the wiki:read scope: Read wiki pages, their history and their backlinksGranted by mcp_agent, mcp_agent_write, read_api, write_api.Every operation this scope unlocks

Answers the page's content, its table of contents and the wiki's head commit, which you send back as expected_head_sha when you save an edit. A page that has moved is still found at its old address, and the response then names the address you asked for so you can update the link. The table of contents can be empty for a page written moments ago, until it has been indexed. 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

Responses

200The page, its content and its table of contents. When the page has moved, its old address still finds it and the response names the old address you asked forapplication/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
  • 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.
200 exampleSynthesized example
{
"content": "content-fb20",
"created_at": "2026-10-13T19:32:03Z",
"doc_id": "57125a5c-146e-41ba-9079-93f9a67f2775",
"format": "markdown",
"path": "path-0a6f",
"title": "Stream pipeline status into the run header",
"toc": [
{
"anchor": "anchor-1794",
"heading": "heading-8c8b",
"level": 24,
"ordinal": 50
},
{
"anchor": "anchor-8379",
"heading": "heading-a4d0",
"level": 21,
"ordinal": 6
}
],
"updated_at": "2026-10-11T23:57:16Z",
"wiki_id": "2a969798-6d98-4586-8e59-d1e1767606ac",
"wiki_page_id": "031821ed-e335-48f7-acf8-419cfac9826f",
"commit": {
"author_name": "Mara Okafor",
"committed_at": "2026-10-15T21:48:13Z",
"message": "Draw the region map from operation density",
"sha": "0abff11c5df5341daddd3fae689b4e499d5de864",
"author": {
"email": "mara@acme.example",
"id": "id-d2e3",
"username": "tomas",
"avatar_url": "https://gitmoap.example/acme/66db1a18"
}
},
"created_by": {
"email": "mara@acme.example",
"id": "id-17d0",
"username": "tomas",
"avatar_url": "https://gitmoap.example/acme/e479942c"
},
"head_sha": "20bf64a32104f88d56310c91ce1bec6b57b6cad1",
"redirected_from": "redirected-from-dcda"
}
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 reason or code.
    • fieldstring or nulloptionalOn a 400 that 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 on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): 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-5d8d",
"message": "Draw the region map from operation density"
}
}
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 reason or code.
    • fieldstring or nulloptionalOn a 400 that 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 on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): 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-e1ea",
"message": "Label every synthesized example"
}
}
403Forbidden — the caller's access level or token scope is insufficientapplication/json
Error codes
  • FORBIDDENYou are signed in but may not do this here; reason names the permission or the rule that refused it
  • INSUFFICIENT_SCOPEThe access token lacks the scope this operation needs; required_scope names 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 reason or code.
    • fieldstring or nulloptionalOn a 400 that 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 on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): 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-b1c6",
"message": "Stream pipeline status into the run header"
}
}
404No page at this path, and no redirect from itapplication/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 reason or code.
    • fieldstring or nulloptionalOn a 400 that 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 on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): 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-79e1",
"message": "Label every synthesized example"
}
}

CLI

gitmoap wiki get-group-wiki-page

  • --group-ididGroup ID (id or group path)
  • --pathidURL-encoded wiki page path