Sign in

Bulk create heartbeats (current user)

documented

Create multiple heartbeats in a single request for the current user.

POST /api/v1/users/current/heartbeats.bulkUsersno implementation yet0 runs
No 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.bulk" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"heartbeats": [{"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}}}]}'