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

# Get the internal history of a ticket

> Every internal history entry for a ticket — status, assignee, team, priority,
type, tag, contact, due-date and title changes, plus workflow starts, agent handoffs and
mirrored integration status updates. Returned oldest first in a comment-compatible shape so
the conversation feed can splice them inline. Not paginated: `truncated` is true when the
ticket has more entries than `limit` (default 1000, max 5000).

Prior to August 2026 these entries were returned by `GET /messages` as `FEEDBACK_UPDATED` and
system messages; this endpoint is now their only source. The shape is unchanged — a status
change, for example, is `{ type: 'FEEDBACK_UPDATED', data: { type: 'STATUS', value: <status> } }`
with the acting user on `user`. Entries are retained for 180 days.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json get /tickets/{ticketId}/history
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /tickets/{ticketId}/history:
    get:
      tags:
        - Ticket
      summary: Get the internal history of a ticket
      description: >-
        Every internal history entry for a ticket — status, assignee, team,
        priority,

        type, tag, contact, due-date and title changes, plus workflow starts,
        agent handoffs and

        mirrored integration status updates. Returned oldest first in a
        comment-compatible shape so

        the conversation feed can splice them inline. Not paginated: `truncated`
        is true when the

        ticket has more entries than `limit` (default 1000, max 5000).


        Prior to August 2026 these entries were returned by `GET /messages` as
        `FEEDBACK_UPDATED` and

        system messages; this endpoint is now their only source. The shape is
        unchanged — a status

        change, for example, is `{ type: 'FEEDBACK_UPDATED', data: { type:
        'STATUS', value: <status> } }`

        with the acting user on `user`. Entries are retained for 180 days.
      operationId: GetTicketHistoryForTicket
      parameters:
        - in: path
          name: ticketId
          required: true
          schema:
            type: string
        - in: header
          name: project
          required: true
          schema:
            type: string
        - in: query
          name: limit
          required: false
          schema:
            type: number
            format: double
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema: {}
              examples:
                Example 1:
                  value:
                    items:
                      - id: 689b1f77bcf86cd799439031
                        ticket: 507f1f77bcf86cd799439011
                        type: FEEDBACK_UPDATED
                        data:
                          type: STATUS
                          value: INPROGRESS
                        user:
                          id: 507f1f77bcf86cd799439012
                          email: support@example.com
                          firstName: John
                          lastName: Doe
                        bot: false
                        createdAt: '2026-08-07T10:30:00.000Z'
                        ticketHistoryRow: true
                      - id: 689b1f77bcf86cd799439032
                        ticket: 507f1f77bcf86cd799439011
                        type: FEEDBACK_UPDATED
                        data:
                          type: PROCESSING_USER
                          value:
                            id: 507f1f77bcf86cd799439012
                            firstName: John
                            lastName: Doe
                        fallbackUser:
                          username: System
                        bot: false
                        createdAt: '2026-08-07T10:31:00.000Z'
                        ticketHistoryRow: true
                    truncated: false
      security:
        - jwt: []
components:
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````