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

# Create Reply

> Creates a new reply with the provided data.

<Note>The difference between POST `/post` and POST `/reply` is that a `reply` will be added to the Reply table.</Note>


## OpenAPI

````yaml POST /reply
openapi: 3.0.1
info:
  title: Reply API
  version: 1.0.0
  description: API for creating and deleting reply
servers:
  - url: https://our-secret-api-url.com
security: []
paths:
  /reply:
    post:
      summary: Create a new reply
      description: Creates a new reply with the provided data.
      parameters:
        - $ref: '#/components/parameters/X-API-KEY'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                content:
                  type: string
                  description: Content of the reply
                hashtags:
                  type: array
                  items:
                    type: string
                  description: List of hashtags
                type:
                  type: string
                  enum:
                    - REPLY
                  description: Type of the reply
                originalId:
                  type: integer
                  description: ID of the original post/reply
                parentId:
                  type: integer
                  description: ID of the parent post/reply
                parentUserId:
                  type: integer
                  description: ID of the parent user
                media_1:
                  description: First media file to be uploaded
                  type: string
                  format: binary
                media_2:
                  description: Second media file to be uploaded
                  type: string
                  format: binary
                media_3:
                  description: Third media file to be uploaded
                  type: string
                  format: binary
                media_4:
                  description: Fourth media file to be uploaded
                  type: string
                  format: binary
              required:
                - content
                - type
                - hashtags
                - parentId
                - parentUserId
                - originalId
      responses:
        '200':
          description: Reply created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  snowflakeId:
                    type: string
                  originalId:
                    type: integer
                    nullable: true
                  parentId:
                    type: integer
                  media:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        updatedAt:
                          type: string
                          format: date-time
                        replyId:
                          type: integer
                        mediaUrl:
                          type: string
                        mimeType:
                          type: string
                    nullable: true
        '422':
          description: Unprocessable Entity - Missing required fields
        '500':
          description: Internal Server Error - Failed to create reply
      security:
        - bearerAuth: []
components:
  parameters:
    X-API-KEY:
      name: X-API-KEY
      description: API key required for authentication
      in: header
      required: true
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````