Audit history for an object (paginated, newest first)
GET
/objects/{id}/historyAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredResponses
200
itemsObjectHistoryEntryPublicDto[]requiredShow propertiesHide properties
Array of
ObjectHistoryEntryPublicDtoactionstringrequiredAllowed:
UpdateCreateDeleteArchiveRestoreLoginLogoutchangesObjectHistoryFieldChangePublicDto[]requiredShow propertiesHide properties
Array of
ObjectHistoryFieldChangePublicDtofieldKeystringrequiredlabelstringrequirednewStatusColorobject | nullHex color when fieldKey is statusId (new value)
newTextstringrequiredoldStatusColorobject | nullHex color when fieldKey is statusId (old value)
oldTextstringrequiredcreatedAtstringrequiredISO 8601 timestamp
idstringrequireduserObjectHistoryUserPublicDtorequiredShow propertiesHide properties
avatarIdobject | nullrequiredfirstNamestringrequiredidstringrequiredlastNamestringrequiredpagenumberrequiredpageSizenumberrequiredtotalnumberrequired401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X GET "https://leadtime.app/api/public/objects/string/history" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/objects/string/history", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/objects/string/history",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"items": [
{
"action": "Update",
"changes": [
{
"fieldKey": "string",
"label": "string",
"newStatusColor": {},
"newText": "string",
"oldStatusColor": {},
"oldText": "string"
}
],
"createdAt": "string",
"id": "string",
"user": {
"avatarId": {},
"firstName": "string",
"id": "string",
"lastName": "string"
}
}
],
"page": 0,
"pageSize": 0,
"total": 0
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions