Create heartbeat
documentedCreate a heartbeat for a user.
POST /api/v1/users/{user}/heartbeatsUsersno implementation yet0 runsInput
user
WakaTime user identifier
e.g. wakatime_user
entity*
Heartbeat entity
path/to/file or domain
type*
Entity type
file|app|domain
category
Category
coding|building|debugging,...
time
Time (UNIX epoch, seconds, float allowed)
Unix timestamp in seconds
project
Project name (optional)
MyProject
project_root_count
Project root count (optional)
Number of folders in project root
branch
Branch (optional)
main
language
Language (optional)
Python
dependencies
Dependencies (optional)
Django,requests
lines
Lines (optional)
Total lines in entity
ai_line_changes
AI line changes (optional)
0
human_line_changes
Human line changes (optional)
0
lineno
Cursor line number (optional)
1
cursorpos
Cursor position (optional)
1
is_write
Is write heartbeat (optional)
true|false
Calls WakaTime as you (your API key is your account); keychains.dev holds the credentials.