Create heartbeat
documentedCreate a heartbeat for a user.
POST /api/v1/users/{user}/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/{{$user}}/heartbeats" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "User-Agent: {{$user_agent}}" \
-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}} }'