Sign in

Bulk create heartbeats

documented

Create multiple heartbeats in a single request for a user.

POST /api/v1/users/{user}/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/{{$user}}/heartbeats.bulk" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: 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}}, "lineno": {{$lineno}}, "cursorpos": {{$cursorpos}}, "ai_line_changes": {{$ai_line_changes}}, "human_line_changes": {{$human_line_changes}}, "is_write": {{$is_write}}}]'
Bulk create heartbeats · WakaTime · OpenIntegrations