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

# Validate Subreddit

> Validate that a subreddit exists and is accessible.



## OpenAPI

````yaml /api/openapi.json post /api/reddit/validate-subreddit
openapi: 3.1.0
info:
  title: CrowdListen Agent API
  description: >-
    Configure sources, collect and retain originals, run durable analysis, and
    read or revise cited insights. Humans and agents share authorized
    entity/project records, research jobs and evidence history.
  version: 1.0.0
servers:
  - url: https://agent.crowdlisten.com
    description: Production
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /api/reddit/validate-subreddit:
    post:
      tags:
        - source-management
      summary: Validate Subreddit
      description: Validate that a subreddit exists and is accessible.
      operationId: validate_subreddit_api_reddit_validate_subreddit_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateSubredditRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateSubredditResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidateSubredditRequest:
      properties:
        subreddit:
          type: string
          title: Subreddit
      type: object
      required:
        - subreddit
      title: ValidateSubredditRequest
    ValidateSubredditResponse:
      properties:
        valid:
          type: boolean
          title: Valid
        subreddit:
          type: string
          title: Subreddit
        display_name:
          type: string
          title: Display Name
        subscribers:
          anyOf:
            - type: integer
            - type: 'null'
          title: Subscribers
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
      type: object
      required:
        - valid
        - subreddit
        - display_name
      title: ValidateSubredditResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

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