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

# Get Ticket

> Retrieve a single ticket with all its comments.



## OpenAPI

````yaml get /tickets/{ticket}
openapi: 3.1.0
info:
  title: APIFiddle Sample Definition
  version: 0.0.0
  description: Example workspace
servers:
  - url: https://rdp.sh/api/v1
    description: Default production endpoint.
security: []
paths:
  /tickets/{ticket}:
    get:
      summary: Get ticket
      description: Retrieve a single ticket with all its comments.
      operationId: getTicket
      parameters:
        - $ref: '#/components/parameters/ticket'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ticketDetail'
          description: Ticket retrieved successfully.
        '403':
          content:
            application/json:
              schema:
                type: object
                title: GetTicketUnauthorized
                properties:
                  status:
                    type: boolean
                    examples:
                      - false
                  error:
                    type: string
                    examples:
                      - This action is unauthorized
          description: User does not own the ticket.
      security:
        - Authorization: []
components:
  parameters:
    ticket:
      in: path
      name: ticket
      schema:
        type: integer
      required: true
      description: Ticket ID
  schemas:
    ticketDetail:
      type: object
      properties:
        id:
          type: integer
          examples:
            - 1
        title:
          type: string
          examples:
            - Server not responding
        message:
          type: string
          examples:
            - My server has been down for 2 hours
        status:
          type: string
          examples:
            - open
            - closed
        priority:
          type: string
          examples:
            - normal
            - emergency
            - low
        server_id:
          type: integer
          nullable: true
          examples:
            - 123
        created_at:
          type: string
          examples:
            - '2024-01-28T10:00:00.000000Z'
        updated_at:
          type: string
          examples:
            - '2024-01-28T12:30:00.000000Z'
        comments:
          type: array
          items:
            $ref: '#/components/schemas/comment'
      description: Ticket detail object with comments.
    comment:
      type: object
      properties:
        id:
          type: integer
          examples:
            - 1
        comment:
          type: string
          examples:
            - Working on this issue now
        user:
          type: object
          properties:
            id:
              type: integer
            name:
              type: string
        staff:
          type: boolean
          examples:
            - false
        created_at:
          type: string
          examples:
            - '2024-01-28T10:30:00.000000Z'
      description: Ticket comment object.
  securitySchemes:
    Authorization:
      in: header
      name: Authorization
      type: apiKey

````