Docs
Get File Activity
GET /drives/{eventId}/file/{fileId}/activity
GET
/drives/{eventId}/file/{fileId}/activityRequired Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually. |
Returns the activity log for a specific file — a chronological record of all actions taken on the file (uploads, edits, comments, reviews, sharing, etc.).
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| driveId | Guid | Required | The event ID. |
| fileId | Guid | Required | The file ID. |
Response Fields
| Field | Type | Description |
|---|---|---|
| id | Guid | Activity log record ID. |
| logString | string | Human-readable description of the action (e.g., `"Jane Smith uploaded Version 2"`). |
| preview | string | Short preview of the content (e.g., comment text). |
| timeStamp | DateTime | When the action occurred (UTC). |
| target | object | The file, version, or format the action was performed on. |
| target.fileId | Guid | Target file ID. |
| target.versionId | Guid | Target version ID (`Guid.Empty` if not version-specific). |
| target.formatId | Guid | Target format ID (`Guid.Empty` if not format-specific). |
| target.name | string | Display name of the target at time of action. |
| principle | object | The user who performed the action. |
| principle.userId | Guid | User ID. |
| principle.userName | string | User display name. |
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Missing or invalid token, or insufficient permissions on this file. |
NOT_FOUND | 404 | File not found in this drive. |