Log a suggested span
Turns one continuous run of the same app into a time entry on a project the caller can read. The spans must belong to the caller, must not already be logged, and must not contain a hole longer than 2 minutes. The entry is never billable; the caller can mark it billable afterwards. The spans are then linked to the entry so they leave the suggestion timeline. 409 when the spans were already logged, or the time falls in a submitted or approved week.
View as MarkdownAuthorization
bearer In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/activity/suggestions" \ -H "Content-Type: application/json" \ -d '{ "eventIds": [ "string" ], "projectId": "string" }'{ "entry": { "id": "string", "projectId": "string", "projectName": "string", "projectColor": "string", "clientName": "string", "taskId": "string", "taskName": "string", "description": "string", "startedAt": "2019-08-24T14:15:22Z", "endedAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "durationSeconds": 0, "isRunning": true, "isBillable": true, "billingStatus": "unbilled", "source": "timer", "tags": [ { "id": "string", "name": "string", "color": "string", "created": "2019-08-24T14:15:22Z" } ] }}Record activity events
Batch insert (max 500 per call) from the desktop app. A span with an entryId requires activityEnabled. A span without one is an auto-tracker suggestion and requires autoTrackEnabled. entryId, when given, must belong to the caller. appName is truncated to 200 chars, windowTitle to 500.
List mouse-click counts
Counts ordered ended_at descending, hard limit 2000. from/to filter on ended_at.