GET
Get a project time entry
Scope:
projects:projects.readhttps://api.holded.com/api/v2/projects/{projectId}/times/{timeId}Returns a single project time tracking entry by its ID.
Parameters
Path parameters
timeId
stringrequiredProject time entry ID
projectId
stringrequiredProject ID
Request
python
import requests
url = "https://api.holded.com/api/v2/projects/{projectId}/times/{timeId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
json
{
"id": "string",
"project_id": "string",
"duration": 0,
"user_name": "string",
"description": "string",
"cost_per_hour": "string",
"user_id": "string",
"task_id": "string",
"date": "string",
"approved": false,
"total_cost": "string",
"category": "string"
}Success responses
200Project time entry foundapplication/jsonobject
idstringrequired
Unique identifier
project_idstringrequired
ID of the project the entry belongs to
durationintegerrequired
Duration in seconds
user_namestringrequired
User display name
descriptionstringrequired
Description
cost_per_hourstring<decimal>required
Cost per hour as a decimal string, resolved from the project cost configuration
user_idstringrequired
User ID
task_idstring | nullrequired
Task ID
datestring | nullrequired
Date, formatted according to the account's date settings
approvedbooleanrequired
Whether the entry is approved
total_coststring<decimal>required
Total cost as a decimal string, resolved from the project cost configuration
categorystringrequired
Category
Error responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Time entry not foundapplication/json429Rate limit exceededapplication/json