Admin Utils
Get admin user projects
Get projects for a user (Admin view).
get/api/admin/v1/user/projects
Query parameters
user_idstring
User ID. Either user_id or id may be supplied.
idstring
Alias for user_id. If both id and user_id are supplied, id takes precedence.
start_datestring
Start date (YYYY-MM-DD or epoch seconds). When start_date or end_date is present, heartbeats are filtered to that range. Defaults to 10 years ago.
end_datestring
End date (YYYY-MM-DD or epoch seconds). Defaults to end of the current day.
Response
successful
Example response
{
"user_id": 42,
"username": "orpheus",
"total_projects": 12,
"projects": [
{
"name": "hackatime",
"total_heartbeats": 4821,
"total_duration": 86400,
"first_heartbeat": 1704067200,
"last_heartbeat": 1710946200,
"languages": [
"Ruby"
],
"repo": "https://github.com/hackclub/hackatime",
"repo_mapping_id": 314
}
]
}