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

# Reply to a Threads post

> Creates a reply on a Threads post, optionally attaching media from the workspace programmatically via Posttu's Threads API and MCP server.

> [!NOTE]
>
> Looking for a unified API across all platforms? Posttu also provides a centralized [Inbox API](https://docs.posttu.com/api-reference/inbox/overview.md) (`/api/v1/inbox/*`) supporting comments, direct messages, replies, likes, and moderation in a single endpoint.


## OpenAPI

````yaml openapi.json POST /api/v1/threads/posts/comments/create
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/threads/posts/comments/create:
    post:
      tags:
        - Threads
      summary: Reply to a Threads post
      description: >-
        Creates a reply on a Threads post, optionally attaching media from the
        workspace.

        Requires API key scope: `threads:write`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThreadsCreateCommentInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThreadsCreateCommentResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ThreadsCreateCommentInput:
      type: object
      properties:
        channelId:
          type: string
          description: Threads channel ID
          example: ch_th123
        externalCommentId:
          type: string
          description: Threads reply ID to reply to
        externalPostId:
          type: string
          description: Threads post ID to comment on
        messageData:
          allOf:
            - $ref: '#/components/schemas/CreateComment'
            - description: Comment body, including text and media
              example:
                message: Great post!
      required:
        - channelId
        - messageData
    ThreadsCreateCommentResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          $ref: '#/components/schemas/ThreadsPublishResponse'
      required:
        - success
        - data
    CreateComment:
      type: object
      properties:
        media:
          type: array
          items:
            type: object
            properties:
              item:
                type: object
                properties:
                  id:
                    type: string
                    description: Media ID from the source
                  source:
                    type: string
                    enum:
                      - ONLYFANS
                      - FANSLY
                      - FANVUE
                      - POSTTU
                    default: POSTTU
                    description: Source of the media.
                  previewId:
                    type:
                      - string
                      - 'null'
                    description: Preview ID
                  coverId:
                    type:
                      - string
                      - 'null'
                    description: Cover ID
                  sourceChannelId:
                    type: string
                    description: >-
                      Source channel ID required when source is not posttu
                      upload or id
                  isPreview:
                    type:
                      - boolean
                      - 'null'
                    description: Is preview image
                  isCover:
                    type:
                      - boolean
                      - 'null'
                    description: Is cover image
                required:
                  - id
              order:
                type: number
                description: Order of the media in the message
                example: 1
            required:
              - item
          description: >-
            Array of media that will be used in this request including preview
            and cover images if any. If the platform is fansly, you must also
            pass media in the fansly.media field if you want to add custom
            permissions or bundle media together, otherwise the default
            permissions will be applied to the media items and will treat this
            as a single bundle of media.
        message:
          type: string
          description: Comment text
          example: Great post!
        fansly:
          type: object
          properties:
            lockedText:
              type: array
              items:
                type: object
                properties:
                  text:
                    type: string
                  permissions:
                    anyOf:
                      - type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            flags:
                              type: number
                            verificationFlags:
                              type:
                                - number
                                - 'null'
                            metadata:
                              type:
                                - string
                                - 'null'
                            validAfter:
                              type:
                                - number
                                - 'null'
                            validBefore:
                              type:
                                - number
                                - 'null'
                            price:
                              type: number
                              default: 0
                            type:
                              type: number
                              default: 0
                          required:
                            - flags
                      - type: array
                        items:
                          anyOf:
                            - type: object
                              properties:
                                price:
                                  type: number
                                  minimum: 5
                                  default: 5
                                  description: >-
                                    The price to purchase the locked text.
                                    Default value is 5.
                                tipped:
                                  type: number
                                  minimum: 0.5
                                  default: 0.5
                                  description: >-
                                    Limit to users who tipped at least this
                                    amount. Default value is 0.5.
                                following:
                                  type: boolean
                                  description: >-
                                    Grant access to users who are following the
                                    account.
                                subscribed:
                                  type: boolean
                                  description: >-
                                    Grant access to users who are subscribed to
                                    the account. cannot be used with
                                    subscription
                            - type: object
                              additionalProperties:
                                type: object
                                properties:
                                  price:
                                    type: number
                                    minimum: 5
                                    default: 5
                                    description: >-
                                      The price to purchase the locked text.
                                      Default value is 5.
                                  tipped:
                                    type: number
                                    minimum: 0.5
                                    default: 0.5
                                    description: >-
                                      Limit to users who tipped at least this
                                      amount. Default value is 0.5.
                                  following:
                                    type: boolean
                                    description: >-
                                      Grant access to users who are following
                                      the account.
                                  subscribed:
                                    type: boolean
                                    description: >-
                                      Grant access to users who are subscribed
                                      to the account. cannot be used with
                                      subscription
                required:
                  - text
              description: Fansly locked texts
            media:
              type: array
              items:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        source:
                          type: string
                          enum:
                            - POSTTU
                            - FANSLY
                            - ONLYFANS
                            - FANVUE
                        previewId:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Preview id of the media, leave blank if not
                            applicable
                        coverId:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Cover id of the media for videos, leave blank if not
                            applicable
                        sourceChannelId:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Source channel id of the media, leave blank if
                            source is posttu
                        isPreview:
                          type:
                            - boolean
                            - 'null'
                          description: Is preview image
                        isCover:
                          type:
                            - boolean
                            - 'null'
                          description: Is cover image
                      required:
                        - id
                        - source
                      description: Array of media
                  order:
                    type: number
                    description: >-
                      Order of the media bundle in the message. The API requires
                      a value; it is filled from the array index when omitted.
                    example: 1
                  permissions:
                    anyOf:
                      - type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            flags:
                              type: number
                            verificationFlags:
                              type:
                                - number
                                - 'null'
                            metadata:
                              type:
                                - string
                                - 'null'
                            validAfter:
                              type:
                                - number
                                - 'null'
                            validBefore:
                              type:
                                - number
                                - 'null'
                            price:
                              type: number
                              default: 0
                            type:
                              type: number
                              default: 0
                          required:
                            - flags
                      - type: array
                        items:
                          anyOf:
                            - type: object
                              properties:
                                price:
                                  type: number
                                  minimum: 5
                                  default: 5
                                  description: >-
                                    The price to purchase the locked text.
                                    Default value is 5.
                                validAfter:
                                  type:
                                    - number
                                    - 'null'
                                  default: null
                                  description: >-
                                    Avaliable after this date (unix timestamp in
                                    seconds). Default value is null.
                                validBefore:
                                  type:
                                    - number
                                    - 'null'
                                  default: null
                                  description: >-
                                    Avaliable until this date (unix timestamp in
                                    seconds). Default value is null.
                                list:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      description: The id of the list.
                                    label:
                                      type: string
                                      description: The name of the list.
                                  required:
                                    - id
                                    - label
                                subscription:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      default: ''
                                      description: >-
                                        The id of the subscription level. leave
                                        blank if you want to match any
                                        subscription level defaults to empty
                                        string
                                    name:
                                      type: string
                                      default: ''
                                      description: >-
                                        The name of the subscription level.
                                        leave blank if you want to match any
                                        subscription name defaults to empty
                                        string
                                    before:
                                      type: number
                                      default: 0
                                      description: >-
                                        Limit to users who had an active
                                        subscription before this date. e.g.
                                        1672531200 (unix timestamp in seconds)
                                    after:
                                      type: number
                                      default: 0
                                      description: >-
                                        Limit to users who had an active
                                        subscription after this date. e.g.
                                        1672531200 (unix timestamp in seconds)
                                following:
                                  type: boolean
                                  description: >-
                                    Grant access to users who are following the
                                    account.
                                subscribed:
                                  type: boolean
                                  description: >-
                                    Grant access to users who are subscribed to
                                    the account. cannot be used with
                                    subscription
                              description: >-
                                Used to build media permission for fansly. Can't
                                have both 'subscribed' and 'subscription' in the
                                same object.
                            - type: object
                              additionalProperties:
                                type: object
                                properties:
                                  price:
                                    type: number
                                    minimum: 5
                                    default: 5
                                    description: >-
                                      The price to purchase the locked text.
                                      Default value is 5.
                                  validAfter:
                                    type:
                                      - number
                                      - 'null'
                                    default: null
                                    description: >-
                                      Avaliable after this date (unix timestamp
                                      in seconds). Default value is null.
                                  validBefore:
                                    type:
                                      - number
                                      - 'null'
                                    default: null
                                    description: >-
                                      Avaliable until this date (unix timestamp
                                      in seconds). Default value is null.
                                  list:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        description: The id of the list.
                                      label:
                                        type: string
                                        description: The name of the list.
                                    required:
                                      - id
                                      - label
                                  subscription:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        default: ''
                                        description: >-
                                          The id of the subscription level. leave
                                          blank if you want to match any
                                          subscription level defaults to empty
                                          string
                                      name:
                                        type: string
                                        default: ''
                                        description: >-
                                          The name of the subscription level.
                                          leave blank if you want to match any
                                          subscription name defaults to empty
                                          string
                                      before:
                                        type: number
                                        default: 0
                                        description: >-
                                          Limit to users who had an active
                                          subscription before this date. e.g.
                                          1672531200 (unix timestamp in seconds)
                                      after:
                                        type: number
                                        default: 0
                                        description: >-
                                          Limit to users who had an active
                                          subscription after this date. e.g.
                                          1672531200 (unix timestamp in seconds)
                                  following:
                                    type: boolean
                                    description: >-
                                      Grant access to users who are following
                                      the account.
                                  subscribed:
                                    type: boolean
                                    description: >-
                                      Grant access to users who are subscribed
                                      to the account. cannot be used with
                                      subscription
                                description: >-
                                  Used to build media permission for fansly.
                                  Can't have both 'subscribed' and
                                  'subscription' in the same object.
                required:
                  - items
              description: >-
                Array of media for fansly. Media placed in items will be bundled
                together.
        onlyfans:
          type: object
          properties:
            price:
              type: number
              description: Message price
              example: 5
            lockedText:
              type: boolean
              default: false
        mastodon:
          type: object
          properties:
            sensitive:
              type: boolean
            spoiler_text:
              type: string
            visibility:
              type: string
              enum:
                - public
                - unlisted
                - private
                - direct
      description: Message payload
      example:
        text: Hello!
    ThreadsPublishResponse:
      type:
        - object
        - 'null'
      properties:
        id:
          type: string
      required:
        - id
      description: The ThreadsPublishResponse.
  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.