Docs
Workspace

Time Logs

Read the time people log on projects, and log time from your own tools as drafts that each person submits themselves.

Preview· P9For developers

This is a published preview. Names and fields may still change before general availability; changes will be listed in the changelog.

Read the time logged on projects, and log time from your own tools, such as a timer app or a ticketing system. Time you log through the API is always a draft: the person submits it as they would their own, and approving and locking stay with people in Agoo.

OperationScope
GET/time-logstime:read
POST/time-logstime:write

Who sees what

  • An API key with time:read sees the organisation's project time.
  • An OAuth app acting for someone sees what that person may: their own time, and time on projects where they approve time or read costs.
  • Time on a person's personal list is never in the API.

Read time logs

Logs come newest work day first, a page at a time with cursor (see pagination). Filter with project_id, person_id, and from and to (dates).

GET /time-logs?project_id=proj_01m6k4d6f8h0k2m4p6r8t0v2xv&from=2026-11-01
{
  "data": [
    {
      "id": "wlog_01m6k4d6f8h0k2m4p6r8t0v2xz",
      "person_id": "person_01kjsesxm0e4zbyvkr7bcfxbfg",
      "project_id": "proj_01m6k4d6f8h0k2m4p6r8t0v2xv",
      "task_id": null,
      "legal_entity_id": "lent_01m6k4d6f8h0k2m4p6r8t0v2xy",
      "work_date": "2026-11-27",
      "minutes": 150,
      "note": "Treasury dashboard review",
      "billable": true,
      "state": "submitted",
      "source": "manual",
      "clock_source": "server",
      "version": 2,
      "created_at": "2026-11-27T16:02:11Z",
      "updated_at": "2026-11-27T17:40:03Z"
    }
  ],
  "next_cursor": null,
  "has_more": false
}

Time log states

state is always named, never a yes-or-no "approved":

stateMeaning
draftLogged, not yet submitted. Every log made through the API starts here.
submittedThe person has submitted it for approval.
approvedApproved.
lockedLocked with its period; it can't change.
returnedSent back to the person to correct.

Count time as approved only when state says approved or locked, and treat a state you don't know as not approved. clock_source is device_offline when the time was logged on a phone without a connection and synced later.

Log time

Send the project, the work date and the minutes (1 to 1,440). An API key names the person with person_id; an OAuth app logs only for the person it acts for, and can leave person_id out. The project must be one the caller may read, and open: a closed project returns invalid_state. A task_id must be a task on that project. billable is true unless you say otherwise.

curl https://api.agoohq.com/v1/time-logs \
  -H "Authorization: Bearer $AGOO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "person_id": "person_01kjsesxm0e4zbyvkr7bcfxbfg",
    "project_id": "proj_01m6k4d6f8h0k2m4p6r8t0v2xv",
    "work_date": "2026-11-28",
    "minutes": 90,
    "note": "Quarterly review prep",
    "billable": true,
    "client_id": "timer-8812"
  }'

The response (201) is the new time log, with state draft. Nothing you send submits, approves or locks time.

client_id is your own ID for the log (up to 80 characters). Send it, and a retry for the same person returns the same log instead of making a second one, even after the Idempotency-Key has expired.

On this page