Returns a page of the code's collection events, newest first unless order=asc, filterable by event types and severities, with the total. Attachments are listed by index only; a download link is minted per attachment by its own route. Super admin only; 404 while the collection-ops console is turned off.
GET
/admin/collection-ops/collections/{codeId}/timeline
curl \
--request GET 'http://api.example.com/admin/collection-ops/collections/{codeId}/timeline' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"rows": [
{
"id": "65a1b2c3d4e5f6a7b8c9d0e1",
"eventId": "string",
"type": "backup.failed",
"source": "api",
"severity": "info",
"message": "string",
"occurredAt": "2026-05-04T09:42:00Z",
"receivedAt": "2026-05-04T09:42:00Z",
"clockSkewMs": 42.0,
"count": 42.0,
"firstAt": "2026-05-04T09:42:00Z",
"lastAt": "2026-05-04T09:42:00Z",
"dataSource": "string",
"deviceId": "string",
"systemId": "string",
"attemptId": "string",
"errorCode": "string",
"error": {
"title": "Device unplugged",
"explanation": "string",
"category": "connection",
"severity": "info"
},
"details": {},
"attachments": [
{
"index": 42.0,
"kind": "string",
"sizeBytes": 42.0
}
],
"origin": "v2",
"actorUserId": "string"
}
],
"total": 140
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}