Skip to content

Hours Account

List of valid attributes:

AttributeDescriptionSpecifics
dateDate that the entry refers to - calculations are done in the account’s business timezone (Europe/Berlin by default)ISO-8601 formatted date (string), always set
target_secondsThe time the user is supposed to work on the given date based on the user’s working time model(s)duration in seconds (integer), always set
actual_secondsThe time the user has worked on the given date based on the user’s confirmed time trackingsduration in seconds (integer), always set
absent_secondsNot supported yet, always reports 0duration in seconds (integer), always set
balance_secondsThe change to the user’s total time balance on the given dateduration in seconds (integer), always set

List

Example response:

{
"data": [
{
"id": "2026-01-01",
"type": "hours_account",
"attributes": {
"date": "2026-01-01",
"target_seconds": 28800,
"actual_seconds": 28080,
"absent_seconds": 0,
"balance_seconds": -720
}
},
...
{
"id": "2026-01-31",
"type": "hours_account",
"attributes": {
"date": "2026-01-31",
"target_seconds": 28800,
"actual_seconds": 28860,
"absent_seconds": 0,
"balance_seconds": 60
}
}
]
}

This endpoint returns the hours account entries for a user in a given time frame.

HTTP Request

GET /api/v1/users/:user_id/hours_account_entries

ParameterDescription
user_idID of the user for whom to list hours account entries.

The following query parameters are mandatory:

ParameterDescription
start_dateThe start date of the date range for which to list hours account entries.
end_dateThe end date (inclusive) of the date range for which to list hours account entries.

Example: GET /api/v1/users/user-1/hours_account_entries?start_date=2026-01-01&end_date=2026-01-31