context_layer
context_layer

Read a wiki page

The organization's context wiki: a git repo of Markdown pages hosted by PostHog.

get/api/organizations/{organization_id}/context_layer/pages/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/organizations/{organization_id}/context_layer/pages/
  • Auth: HTTP bearer

Path parameters

organization_idstring required

ID of the organization you're trying to access. To find the ID of the organization, make a call to /api/organizations/.

Query parameters

head_shastring

Head from the first chunk. Required for continuation. A changed head returns 409.

limitinteger

Maximum characters to read. Omit for the full page.

offsetinteger

Character offset from next_offset.

pathstring required

Repo-relative Markdown path of the page to read.

Response

pathstring required

Repo-relative path of the page, for example areas/analytics.md.

contentstring required

The page's Markdown content.

head_shastring required

Commit sha the content was read at; pass back as base_head on writes.

updated_atstring date-time required

When this page was last changed in the wiki history.

offsetinteger required

Character offset of this chunk.

total_lengthinteger required

Character length of the complete page.

next_offsetinteger nullable required

Next character offset, or null when complete.

completeboolean required

True when no further chunks remain. Do not write a page until all chunks are read.

Changes

No recorded changes to this operation across all 1 revision of this API.