Time Entries
Time entries let your team log hours against projects. Track billable vs. non-billable time, see per-project summaries, and know where your team’s effort is going.
The Time Entry Object
Section titled “The Time Entry Object”| Field | Type | Description |
|---|---|---|
id | uuid | |
project_id | uuid | |
account_id | uuid | |
user_id | uuid | |
date | string | |
duration_minutes | int | |
description | string | |
billable | bool | |
created_at | datetime | |
updated_at | datetime | |
user_name | string |
Log a time entry
Section titled “Log a time entry”Endpoint: time-entries-create
| Field | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | |
date | string | No | |
duration_minutes | int | Yes | |
description | string | No | |
billable | bool? | No |
curl -X POST https://api.driftwoodapp.com/api/time-entries-create \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"project_id": "...", "duration_minutes": 0}'Delete a time entry
Section titled “Delete a time entry”Endpoint: time-entries-delete
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes |
curl -X POST https://api.driftwoodapp.com/api/time-entries-delete \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"id": "..."}'List time entries for a project
Section titled “List time entries for a project”Endpoint: time-entries-list
| Field | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes |
curl -X POST https://api.driftwoodapp.com/api/time-entries-list \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"project_id": "..."}'Get time entry summary for a project
Section titled “Get time entry summary for a project”Endpoint: time-entries-summary
| Field | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes |
curl -X POST https://api.driftwoodapp.com/api/time-entries-summary \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"project_id": "..."}'Update a time entry
Section titled “Update a time entry”Endpoint: time-entries-update
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
date | string | No | |
duration_minutes | int? | No | |
description | string? | No | |
billable | bool? | No |
curl -X POST https://api.driftwoodapp.com/api/time-entries-update \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"id": "..."}'