OAuth2-specific
Get latest heartbeat
Returns the absolutely latest heartbeat processed for the user. Requires an OAuth2 access token with the read scope in the Bearer header. When the user has no non-test heartbeat, the response is { "heartbeat": null }.
get/api/v1/authenticated/heartbeats/latest
Response
successful
Example response
{
"id": 987654,
"created_at": "2024-03-20T15:30:00Z",
"time": 1710948600,
"category": "coding",
"project": "hackatime",
"language": "Ruby",
"editor": "VS Code",
"operating_system": "Mac",
"machine": "Orpheus-MacBook-Pro",
"entity": "app/models/user.rb"
}