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

# Get Report By Id

> Get a report by ID

<Note>User has to be an `ADMIN` to be able to use this API.</Note>


## OpenAPI

````yaml GET /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:
    get:
      description: Get a report by ID
      operationId: getReportById
      parameters:
        - name: reportId
          in: query
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Report retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Report'
        '400':
          description: Missing reportId query parameter
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '404':
          description: Report not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '500':
          description: Failed to retrieve report
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      security:
        - bearerAuth: []
components:
  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

````