API docs

Public REST API

Read your workspace data and create projects and tasks over HTTPS. Authenticate with an API key and build your own reports, dashboards and integrations. Included in the Business and Enterprise plans.

Projects & Tasks API guide →

Authentication

Bearer key

An Owner or Admin creates API keys in the workspace settings. A key with the read scope reads; creating projects and tasks needs the write scope. Send the key in the Authorization header of every request. Keep keys secret and revoke any key you no longer use.

Authorization: Bearer tpk_xxxxxxxx…

Responses are JSON and never cached. Each key may make 600 requests a minute; the X-RateLimit-Remaining and X-RateLimit-Reset headers show what is left.

Base URL

Workspace endpoint

Use your workspace address or the main domain. Every endpoint returns only the workspace that owns the key.

https://yourworkspace.timeprogress.com/api/v1

Lists return data plus the filters used; paged lists also return page, per and, where available, total.

Endpoints

What you can read

GET /api/v1/whoami

The workspace, scopes and key that made the request. Use it to test a key.

curl -H "Authorization: Bearer tpk_xxxx" \
     "https://www.timeprogress.com/api/v1/whoami"

GET /api/v1/users

People in the workspace (id, name, email, role, status, created_at).

  • page: Page number, default 1
  • per: Rows per page, 1-200, default 50
  • include_merged: 1 to include merged accounts, with merged_into_user_id

GET /api/v1/users/{id}

One person, including employee_id, timezone and standard shift hours.

GET /api/v1/devices

Enrolled desktop agents: OS, hostname, agent version and last seen.

  • page: Page number
  • per: Rows per page, 1-200

GET /api/v1/activity

Raw activity rows: app, window title, website, category, start, end and duration. Timestamps are UTC.

  • from, to: Workspace-local days, YYYY-MM-DD (default: last 7 days)
  • user_id: Optional person
  • page, per: Pagination, max 200 per page

GET /api/v1/daily-aggregates

Daily totals per person: total, productive, unproductive, neutral and idle seconds, first and last activity.

  • from, to: Days, YYYY-MM-DD

GET /api/v1/attendance

Attendance per person per day: status (present, late, partial, absent), active, idle and expected hours.

  • from, to: Days, YYYY-MM-DD
  • user_id: Optional person

GET /api/v1/attendance/summary

Attendance totals per person for the range: days by status and hours.

  • from, to: Days, YYYY-MM-DD
  • user_id: Optional person

GET /api/v1/shifts

Scheduled shifts expanded to each day of the range.

  • from, to: Days, YYYY-MM-DD
  • user_id: Optional person

GET /api/v1/timeline

When each person started and finished each day, with active and idle seconds. Times are workspace-local.

  • from, to: Days, YYYY-MM-DD
  • user_id: Optional person
  • accuracy: merged: the same merged totals as the dashboard (default raw)
  • include_intervals: 1 to add active and away intervals (at most 62 days per request)
Projects & Tasks

Create projects and tasks

Send JSON (Content-Type: application/json) or a form. Creates are limited to 120 a minute and 2,000 a day per key, and 5,000 a day per workspace; each one is recorded in the workspace audit log with the key's name. Text fields must be plain text: lists are refused and control or invisible characters are removed.

GET /api/v1/task-management/projects (read)

Projects of the workspace: id, name, status, is_default, starts_on, due_on, priority, owner_id, member_ids, created_at.

  • status: active (default), archived or all
  • page, per: Pagination, max 200 per page

POST /api/v1/task-management/projects (write)

Create a project. Returns 201 with the project. A second active project with the same name is refused with 409 project_exists and the existing project_id, so a retry never makes a copy.

  • name: Required, at most 255 characters
  • members: Optional list of user ids or e-mail addresses (active people of the workspace)
  • starts_on, due_on: Optional dates, YYYY-MM-DD
  • priority: Optional: Urgent, Important, Medium or Low
  • owner: Optional user id or e-mail
curl -X POST -H "Authorization: Bearer tpk_xxxx" \
     -H "Content-Type: application/json" \
     -d '{"name": "Website relaunch", "members": ["anees@company.com", 52], "due_on": "2026-12-31", "priority": "Important"}' \
     "https://www.timeprogress.com/api/v1/task-management/projects"

GET /api/v1/task-management/projects/{id}/tasks (read)

Open and completed tasks of a project (cancelled ones are left out): id, task_key, name, description, status, start, due, priority, assignees (id, name, email), created_at. Dates are workspace-local.

  • page, per: Pagination, max 200 per page

POST /api/v1/task-management/projects/{id}/tasks (write)

Create a task in an active project. Returns 201 with the task. Each assignee gets it in My Tasks and in the desktop app at once, exactly like a task added on the Projects page.

  • name: Required, at most 500 characters
  • description: Optional, at most 4000 characters
  • start, due: Optional workspace-local dates, YYYY-MM-DD
  • priority: Urgent, Important, Medium (default) or Low; 1, 3, 5 or 9 also work
  • assignees: Optional list of user ids or e-mail addresses (active people of the workspace)
curl -X POST -H "Authorization: Bearer tpk_xxxx" \
     -H "Content-Type: application/json" \
     -d '{"name": "Write the launch e-mail", "description": "Two versions for A/B testing", "due": "2026-12-15", "priority": "Urgent", "assignees": ["mehr@company.com"]}' \
     "https://www.timeprogress.com/api/v1/task-management/projects/12/tasks"
ErrorMeaning
401 unauthorizedThe key is missing, wrong or revoked.
403 forbiddenThe key lacks the scope the endpoint needs (read, or write to create).
403 plan_requiredProjects and tasks need the Business or Enterprise plan.
404 not_foundThe person or the project does not exist in this workspace.
409 project_existsAn active project with that name exists; the response gives its project_id.
422 unknown_peopleA member, owner or assignee is not an active person of this workspace; the response lists them in unknown.
422 invalid_name / invalid_date / invalid_range / invalid_priority / project_archivedCheck the field named in the message.
403 plan_required / workspace_unavailableThe plan does not include the API, or the workspace is suspended.
422 invalid_date / invalid_range / range_too_largeDates must be YYYY-MM-DD, from before to, at most 370 days apart.
429 rate_limitedToo many requests (600 a minute per key; creates: 120 a minute and 2,000 a day per key, 5,000 a day per workspace). Wait for the number of seconds in Retry-After.
503 busyAnother project is being created for the same workspace at that moment. Try again.
Start today

Track time. Not timesheets.

Every new workspace gets a 14-day free trial. Install the agent, invite your team and see real work time today.