Create heartbeat (current user)
documentedCreate a heartbeat for the current user.
POST /api/v1/users/current/heartbeatsUsersno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.wakatime.com/api/v1/users/current/heartbeats" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-d '{"entity": "{{$entity}}", "type": "{{$type}}", "category": "{{$category}}", "time": {{$time}}, "project": "{{$project}}", "project_root_count": {{$project_root_count}}, "branch": "{{$branch}}", "language": "{{$language}}", "dependencies": "{{$dependencies}}", "lines": {{$lines}}, "ai_line_changes": {{$ai_line_changes}}, "human_line_changes": {{$human_line_changes}}, "lineno": {{$lineno}}, "cursorpos": {{$cursorpos}}, "is_write": {{$is_write}}}'