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

# Request a comment draft for one Reddit thread

> Creates a draft for a thread from the last 7 days that fits your product, in a community that allows a comment. The draft waits for approval. This route never publishes and never spends a credit. The key needs the write scope.



## OpenAPI

````yaml /openapi/leadfast-api-v1.json post /comments/request
openapi: 3.1.0
info:
  title: LeadFast API
  version: 2.0.0
  description: >-
    Read your LeadFast account, the Reddit account that comments for your
    product, your managed comments and your product profile. One action, request
    a comment, creates a draft that waits for approval. No route publishes a
    comment or spends a credit. MCP reads the same data.
servers:
  - url: https://leadfast.vip/api/v1
security:
  - bearerAuth: []
paths:
  /comments/request:
    post:
      summary: Request a comment draft for one Reddit thread
      description: >-
        Creates a draft for a thread from the last 7 days that fits your
        product, in a community that allows a comment. The draft waits for
        approval. This route never publishes and never spends a credit. The key
        needs the write scope.
      operationId: requestComment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - postUrl
              properties:
                postUrl:
                  type: string
                  format: uri
                  maxLength: 2048
                  description: >-
                    The URL of a Reddit thread, for example
                    https://www.reddit.com/r/SaaS/comments/abc123/.
      responses:
        '201':
          description: The draft
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Comment'
        '400':
          description: >-
            postUrl is missing or is not a Reddit thread URL. The error code is
            invalid_post_url or invalid_request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: >-
            LeadFast has not read this thread. The error code is
            thread_not_found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            The request conflicts with the account. The error code is duplicate
            (the thread already has a comment, see comment_id), no_product,
            no_account or trial_full.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: The body is not JSON. The error code is invalid_request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: >-
            The thread does not fit, is older than 7 days, is closed, or its
            community does not allow a comment. The error code is
            thread_not_eligible or community_not_allowed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Comment:
      type: object
      required:
        - id
        - status
        - text
        - community
        - thread
        - link
        - created_at
        - posted_at
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - writing
            - draft
            - scheduled
            - posted
          description: >-
            writing: LeadFast writes the text. draft: the text waits for
            approval. scheduled: approved, waiting for its time. posted: public
            on Reddit.
        text:
          type:
            - string
            - 'null'
        community:
          type: string
          description: The subreddit name, without r/.
        thread:
          type: object
          required:
            - title
            - url
          properties:
            title:
              type: string
            url:
              type: string
        link:
          type:
            - string
            - 'null'
          description: The link to the comment on Reddit, when it is posted.
        created_at:
          type: string
          format: date-time
        posted_at:
          type:
            - string
            - 'null'
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            comment_id:
              type: string
              description: The existing comment of the thread, for the duplicate code.
  responses:
    Unauthorized:
      description: Missing, revoked or invalid API key. The error code is unauthorized.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        The account email is not verified (email_unverified), or the key does
        not have the scope that the route needs (insufficient_scope).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: >-
        More than 60 requests per minute for this key. The error code is
        rate_limited.
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: lf_...
      description: >-
        An API key from LeadFast. Every key has the read scope. A key with the
        write scope can also request a comment draft.

````

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