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

# Get Grievance

> Get a grievance by its ID

Retrieves a grievance by its unique identifier. This endpoint returns the complete grievance details including all fields such as title, description, category, status, timestamps, and any additional metadata related to the grievance processing.

If the grievance is not found, a 404 error is returned. The response includes a status field and the complete grievance object with all its properties.


## OpenAPI

````yaml GET /grievances/{grievance_id}
openapi: 3.1.0
info:
  title: CPGRAMS Simulation API
  description: >-
    An API that simulates the Centralized Public Grievance Redress and
    Monitoring System (CPGRAMS) in India
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://grm-api.vercel.app
security:
  - bearerAuth: []
externalDocs:
  description: API Documentation
  url: https://grm-api.vercel.app/docs
paths:
  /grievances/{grievance_id}:
    get:
      description: Get a grievance by its ID
      parameters:
        - name: grievance_id
          in: path
          description: ID of grievance to fetch
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Grievance response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: Status of the operation
                  grievance:
                    $ref: '#/components/schemas/Grievance'
        '404':
          description: Grievance not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Grievance:
      allOf:
        - $ref: '#/components/schemas/GrievanceBase'
        - type: object
          required:
            - id
            - user_id
            - status
            - created_at
          properties:
            id:
              description: Unique identifier for the grievance
              type: string
            user_id:
              description: ID of the user who submitted the grievance
              type: string
            status:
              description: Current status of the grievance
              type: string
              enum:
                - Active
                - Pending
                - Closed with resolution
                - Closed without resolution
                - Tender Issued
              default: Pending
            created_at:
              description: Timestamp when the grievance was created
              type: string
              format: date-time
            updated_at:
              description: Timestamp when the grievance was last updated
              type: string
              format: date-time
            resolution_notes:
              description: Notes on the resolution of the grievance
              type: string
            grievance_received_date:
              description: Date when the grievance was received
              type: string
              format: date-time
            grievance_closing_date:
              description: Date when the grievance was closed
              type: string
              format: date-time
            organisation_closing_date:
              description: Date when the organisation closed the grievance
              type: string
              format: date-time
            org_status_date:
              description: Date of the last status update by the organisation
              type: string
              format: date-time
            reported_as_covid19_case_date:
              description: Date when the grievance was reported as a COVID-19 case
              type: string
              format: date-time
            covid19_category:
              description: COVID-19 related category if applicable
              type: string
            reformed_flag:
              description: Flag indicating if the grievance is part of reformed process
              type: boolean
              default: false
            reformed_top_level_category:
              description: Top level category in the reformed classification
              type: string
            reformed_last_level_category:
              description: Last level category in the reformed classification
              type: string
            forwarded_to_subordinate:
              description: Flag indicating if the grievance was forwarded to a subordinate
              type: boolean
              default: false
            forwarded_to_subordinate_details:
              description: Details about forwarding to subordinate
              type: string
            rating:
              description: User rating of the grievance resolution
              type: integer
            feedback:
              description: User feedback on the grievance resolution
              type: string
            satisfaction_level:
              description: User satisfaction level with the resolution
              type: string
            final_reply:
              description: Final reply to the grievance
              type: string
            appeal_no:
              description: Appeal number if the grievance was appealed
              type: string
            appeal_date:
              description: Date when the appeal was filed
              type: string
              format: date-time
            appeal_reason:
              description: Reason for the appeal
              type: string
            appeal_closing_date:
              description: Date when the appeal was closed
              type: string
              format: date-time
            appeal_closing_remarks:
              description: Remarks on the closing of the appeal
              type: string
            organisation_grievance_receive_date:
              description: Date when the organisation received the grievance
              type: string
              format: date-time
            organisation_grievance_close_date:
              description: Date when the organisation closed the grievance
              type: string
              format: date-time
            officers_forwarding_grievance:
              description: Officers who forwarded the grievance
              type: string
            date_of_receiving:
              description: Date when the grievance was received
              type: string
              format: date-time
            officer_closed_by:
              description: Officer who closed the grievance
              type: string
            final_status:
              description: Final status of the grievance
              type: string
            classified_category:
              description: Classified category of the grievance
              type: string
            formatted_fields:
              description: Formatted fields for the grievance
              type: string
            follow_up_questions:
              description: Follow-up questions for the grievance
              type: array
              items:
                type: string
            missing_information:
              description: Flag indicating if there is missing information
              type: boolean
            is_correct_category:
              description: Flag indicating if the category is correct
              type: boolean
            category_data:
              description: Additional category data
              type: object
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
    GrievanceBase:
      required:
        - title
        - category
        - description
      type: object
      properties:
        title:
          description: Title of the grievance
          type: string
        category:
          description: Category of the grievance
          type: string
        description:
          description: Detailed description of the grievance
          type: string
        priority:
          description: 'Priority level: low, medium, high, critical'
          type: string
          default: medium
        cpgrams_category:
          description: CPGRAMS category of the grievance
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````