Get the internal history of a ticket
curl --request GET \
--url https://api.gleap.io/v3/tickets/{ticketId}/history \
--header 'Authorization: Bearer <token>' \
--header 'project: <project>'import requests
url = "https://api.gleap.io/v3/tickets/{ticketId}/history"
headers = {
"project": "<project>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {project: '<project>', Authorization: 'Bearer <token>'}
};
fetch('https://api.gleap.io/v3/tickets/{ticketId}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gleap.io/v3/tickets/{ticketId}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"project: <project>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gleap.io/v3/tickets/{ticketId}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("project", "<project>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gleap.io/v3/tickets/{ticketId}/history")
.header("project", "<project>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gleap.io/v3/tickets/{ticketId}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["project"] = '<project>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
}Ticket
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.
GET
/
tickets
/
{ticketId}
/
history
Get the internal history of a ticket
curl --request GET \
--url https://api.gleap.io/v3/tickets/{ticketId}/history \
--header 'Authorization: Bearer <token>' \
--header 'project: <project>'import requests
url = "https://api.gleap.io/v3/tickets/{ticketId}/history"
headers = {
"project": "<project>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {project: '<project>', Authorization: 'Bearer <token>'}
};
fetch('https://api.gleap.io/v3/tickets/{ticketId}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gleap.io/v3/tickets/{ticketId}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"project: <project>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gleap.io/v3/tickets/{ticketId}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("project", "<project>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gleap.io/v3/tickets/{ticketId}/history")
.header("project", "<project>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gleap.io/v3/tickets/{ticketId}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["project"] = '<project>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
}