> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List a subreddit's wiki pages

> Fetches the wiki pages of a subreddit. Revision metadata is only returned when fetching a single page programmatically via Posttu's Reddit API and MCP server.



## OpenAPI

````yaml openapi.json POST /api/v1/reddit/subreddits/wiki
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/reddit/subreddits/wiki:
    post:
      tags:
        - Reddit
      summary: List a subreddit's wiki pages
      description: >-
        Fetches the wiki pages of a subreddit. Revision metadata is only
        returned when fetching a single page.

        Requires API key scope: `reddit:read`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedditSubredditWikiPagesInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedditUserSubredditWikiPagesResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    RedditSubredditWikiPagesInput:
      type: object
      properties:
        subreddit:
          type: string
          description: Subreddit name without the r/ prefix
        channelId:
          type: string
      required:
        - subreddit
    RedditUserSubredditWikiPagesResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          $ref: '#/components/schemas/RedditSubredditWikiPagesResponse'
      required:
        - success
        - data
    RedditSubredditWikiPagesResponse:
      type:
        - object
        - 'null'
      properties:
        subreddit:
          type: string
        pages:
          type: array
          items:
            $ref: '#/components/schemas/RedditSubredditWikiPage'
        names:
          type: array
          items:
            type: string
        count:
          type: number
      required:
        - subreddit
        - pages
        - names
        - count
      description: The RedditSubredditWikiPagesResponse.
    RedditSubredditWikiPage:
      type: object
      properties:
        name:
          type: string
        content_html:
          type:
            - string
            - 'null'
        contentHtml:
          type:
            - string
            - 'null'
        content_md:
          type:
            - string
            - 'null'
        contentMd:
          type:
            - string
            - 'null'
        may_revise:
          type:
            - boolean
            - 'null'
        mayRevise:
          type:
            - boolean
            - 'null'
        revision_date:
          type:
            - number
            - 'null'
        revisionDate:
          type:
            - number
            - 'null'
        revision_by:
          type:
            - string
            - 'null'
        revisionBy:
          type:
            - string
            - 'null'
        revision_id:
          type:
            - string
            - 'null'
        revisionId:
          type:
            - string
            - 'null'
        url:
          type:
            - string
            - 'null'
      required:
        - name
        - content_html
        - contentHtml
        - content_md
        - contentMd
        - may_revise
        - mayRevise
        - revision_date
        - revisionDate
        - revision_by
        - revisionBy
        - revision_id
        - revisionId
        - url
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.