Admin Utils
Get admin user heartbeats
Get heartbeats for a user (Admin view).
get/api/admin/v1/user/heartbeats
Query parameters
user_idstring
User ID. Either user_id or id may be supplied.
idstring
Alias for user_id. If both id and user_id are supplied, id takes precedence.
start_datestring
Start date (YYYY-MM-DD or timestamp)
end_datestring
End date (YYYY-MM-DD or timestamp)
projectstring
Project name
languagestring
Language
entitystring
Entity (file path or app name)
editorstring
Editor
machinestring
Machine
limitinteger
Limit
offsetinteger
Offset
Response
successful
Example response
{
"user_id": 42,
"heartbeats": [
{
"id": 987654,
"time": 1710946200,
"created_at": "2024-03-20T15:30:00Z",
"project": "hackatime",
"branch": "main",
"category": "coding",
"dependencies": [
"rails",
"sidekiq"
],
"editor": "VS Code",
"entity": "app/models/user.rb",
"language": "Ruby",
"machine": "Orpheus-MacBook-Pro",
"operating_system": "Mac",
"type": "file",
"user_agent": "wakatime/v1.115.2 (darwin-24.6.0) go1.23 vscode/1.96.0",
"line_additions": 8,
"line_deletions": 3,
"lineno": 42,
"lines": 350,
"cursorpos": 12,
"project_root_count": 4,
"is_write": true,
"source_type": "direct_entry",
"ip_address": "203.0.113.7",
"ja4": {
"fingerprint": "t13d1516h2_8daaf6152771_02713d6af862",
"name": "Go net/http"
}
}
],
"total_count": 15234,
"has_more": true
}