OAuth2-specific

Get hours

Returns the total coding hours for the authenticated user. Requires an OAuth2 access token with the read scope in the Bearer header.

get/api/v1/authenticated/hours

Query parameters

start_datestring date

Start date (YYYY-MM-DD)

end_datestring date

End date (YYYY-MM-DD)

Response

successful

start_datestring date
end_datestring date
total_secondsnumber

Example response

{
  "start_date": "2024-03-13",
  "end_date": "2024-03-20",
  "total_seconds": 153000
}

Changes