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

> Create a new report



## OpenAPI

````yaml POST /report
openapi: 3.0.3
info:
  title: Report API
  version: 1.0.0
  description: API for handling reports and report statuses
servers:
  - url: https://our-secret-api-url.com
security: []
paths:
  /report:
    post:
      description: Create a new report
      operationId: createReport
      parameters:
        - $ref: '#/components/parameters/X-API-KEY'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                targetUserId:
                  type: integer
                targetPostId:
                  type: integer
                  nullable: true
                reason:
                  type: string
                  enum:
                    - kandungan_tidak_sesuai
                    - isu_keselamatan
                    - penyalahgunaan
                    - spam
                    - kandungan_palsu
                    - kandungan_sensitif
                    - pelanggaran_hak_cipta
                    - maklumat_salah
                notes:
                  type: string
                  nullable: true
              required:
                - targetUserId
                - reason
      responses:
        '200':
          description: Report created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Report'
        '500':
          description: Failed to create report
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      security:
        - bearerAuth: []
components:
  parameters:
    X-API-KEY:
      name: X-API-KEY
      description: API key required for authentication
      in: header
      required: true
      schema:
        type: string
  schemas:
    Report:
      type: object
      properties:
        id:
          type: integer
        targetUserId:
          type: integer
        targetPostId:
          type: integer
          nullable: true
        reason:
          type: string
          enum:
            - kandungan_tidak_sesuai
            - isu_keselamatan
            - penyalahgunaan
            - spam
            - kandungan_palsu
            - kandungan_sensitif
            - pelanggaran_hak_cipta
            - maklumat_salah
        notes:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - reviewing
            - no_action
            - suspended
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        reporterUserId:
          type: integer
      required:
        - id
        - targetUserId
        - reason
        - status
        - createdAt
        - updatedAt
        - reporterUserId
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````