> ## 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.

# Search subreddits by name

> Search subreddits by name via Posttu's Reddit REST API (POST /api/v1/reddit/subreddits/search-by-name) and MCP server.



## OpenAPI

````yaml openapi.json POST /api/v1/reddit/subreddits/search-by-name
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/search-by-name:
    post:
      tags:
        - Reddit
      summary: Search subreddits by name
      description: |-
        Search subreddits by name
        Requires API key scope: `reddit:read`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedditSubredditSearchByNameInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedditUserSubredditsSearchByNameResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    RedditSubredditSearchByNameInput:
      type: object
      properties:
        query:
          type: string
          description: Subreddit name prefix
        include_nsfw:
          type: boolean
          default: true
        exact:
          type: boolean
          default: false
        channelId:
          type: string
      required:
        - query
    RedditUserSubredditsSearchByNameResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          $ref: '#/components/schemas/RedditSubredditSearchByNameResponse'
      required:
        - success
        - data
    RedditSubredditSearchByNameResponse:
      type:
        - object
        - 'null'
      properties:
        subreddits:
          type: array
          items:
            $ref: '#/components/schemas/RedditSubredditItem'
        names:
          type: array
          items:
            type: string
        count:
          type: number
      required:
        - subreddits
        - names
        - count
      description: The RedditSubredditSearchByNameResponse.
    RedditSubredditItem:
      type: object
      properties:
        name:
          type: string
        display_name:
          type: string
        prefixed_name:
          type: string
        url:
          type: string
      required:
        - name
        - display_name
        - prefixed_name
        - 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.