Time Clock API

Read-only access to the Merk time clock: workers, sites, timesheets, schedules, and — with the rates scope — bill rates, overhead, task costs and budgets. Version 1.

Getting started

Base URL: https://app.proworkthreads.com/api/v1

curl -H "Authorization: Bearer tck_YOUR_KEY" \
  "https://app.proworkthreads.com/api/v1/shifts?start=2026-10-01&end=2026-10-07"
import requests
r = requests.get("https://app.proworkthreads.com/api/v1/shifts",
                 params={"start": "2026-10-01", "end": "2026-10-07"},
                 headers={"Authorization": "Bearer tck_YOUR_KEY"}, timeout=60)
r.raise_for_status()
for shift in r.json()["shifts"]:
    print(shift["worker"]["name"], shift["clock_in"], shift["paid_hours"])

API keys

Every request needs a key in the Authorization header: Authorization: Bearer tck_…. Keys are created in the office view, API tab, by an admin. The key is shown once, when it is created — store it like a password. It can be revoked there at any time, and stops working immediately.

ScopeReads
dataWorkers, sites, timesheets (shifts, breaks, task notes, approval, QuickBooks status), schedules. No money.
ratesBill rates, overhead, task costs, budgets, and the bill rate and billable amount on each shift. Only an office user with the See rates permission can create a key with this scope.

A key can have both. Every endpoint below says which scope it needs. The API is read-only: nothing it does changes the time clock.

Conventions

Data endpoints data

GET/api/v1

Checks a key. Returns its name and scopes.

{"version": "1", "key": "Payroll export", "scopes": ["data", "rates"], "docs": "/api/docs",
 "time_zone": "Pacific/Honolulu (UTC-10:00, no daylight saving)"}
GET/api/v1/workers
ParameterMeaning
include_removed=1Also list workers who have been removed.
{"workers": [{"id": 13, "name": "DENIS KLIMOV", "title": "Millwork/Journeyman",
              "active": true, "removed_at": null}]}
GET/api/v1/sites
ParameterMeaning
include_removed=1Also list sites that have been removed.
{"sites": [{"id": 6, "name": "1829 Bertram St., Honolulu", "on_picker": true,
            "latitude": 21.29, "longitude": -157.80, "radius_m": 150, "active": true,
            "quickbooks_customer": "Mike & Piia Curtis"}]}

on_picker: workers can clock in there. radius_m: the geofence radius.

GET/api/v1/shifts

Timesheets: one per clock-in…clock-out. A worker who uses Switch has one shift per site or schedule task they switched through; switched_from links them.

ParameterMeaning
start, endClock-in date range, inclusive. Default: the last 14 days. At most 366 days per request.
worker_idOne worker.
site_idOne site.
approved=1 / approved=0Only approved / only not-yet-approved shifts.
limitMost shifts returned (default 1000, max 5000). If truncated is true, ask for a shorter date range.
{"start": "2026-10-01", "end": "2026-10-07", "count": 1, "truncated": false,
 "shifts": [{
   "id": 822,
   "worker": {"id": 6, "name": "ANDREI CHAKHOUSKI"},
   "site": {"id": 6, "name": "1829 Bertram St., Honolulu"},
   "schedule_task": {"id": 51, "name": "Thresholds installation"},
   "clock_in": "2026-10-04T07:33:56-10:00",
   "clock_out": "2026-10-04T16:02:10-10:00",
   "on_the_clock": false,
   "paid_hours": 7.9706,
   "break_minutes": 30,
   "breaks": [{"start": "2026-10-04T12:00:00-10:00", "end": "2026-10-04T12:30:00-10:00", "minutes": 30}],
   "tasks": [{"id": 3101, "location": "Shop", "task": "Cut thresholds to length",
              "description": "", "logged_at": "2026-10-04T10:15:02-10:00", "language": "English",
              "as_typed": null}],
   "shift_note": null,
   "approved": true, "approved_at": "2026-10-05T08:00:12-10:00", "approved_by": "Igor",
   "edited": false, "closed_by": "worker", "switched_from": null,
   "quickbooks": {"state": "sent", "time_activity_id": "1234"},
   "bill_rate": 125.0, "rate_from": "site", "billable": 996.33
 }]}
FieldMeaning
paid_hoursClock time minus breaks. For a shift still on the clock, up to now.
schedule_taskThe Schedule task the worker clocked in to, or null.
tasksThe work notes the worker logged, in English. as_typed is what they actually wrote when it was in another language or was corrected; language is the language they wrote in.
approvedSigned off by the office — frozen until the office reopens it.
editedThe office changed something on it (the change history is kept).
closed_byworker, switch (ended by switching site or task), or the office.
quickbooks.statesent, waiting, error, stale (reopened after it was sent), or null.
bill_rate, rate_from, billablerates only. The worker's bill rate on that site (site rate, or their default), and paid hours × rate. Null when no rate is set.
GET/api/v1/sites/{site_id}/schedule

The site's schedule (the Gantt chart), tasks in display order.

{"site": {"id": 6, "name": "1829 Bertram St., Honolulu"},
 "baseline": {"id": 3, "label": "Signed contract", "saved_at": "2026-09-25T09:25:00-10:00"},
 "tasks": [{"id": 50, "parent_id": null, "is_group": true, "depth": 0, "name": "Framing",
            "description": null, "start": "2026-10-01", "end": "2026-10-09", "progress": 40,
            "depends_on": [], "workers": [], "managers": [], "hours_worked": 52.5,
            "baseline_start": "2026-10-01", "baseline_end": "2026-10-07"}]}
FieldMeaning
is_groupA group's dates, progress and hours are the span / sum of what is inside it (parent_id points at the group).
start, endDates, both inclusive.
progressPercent complete.
depends_onIds of tasks this one waits for (finish-to-start).
workers, managersWorker ids assigned to the task.
hours_workedPaid hours clocked in to the task so far.
baseline_start/endThe task's dates in the latest saved baseline, or null.

Rates endpoints rates

GET/api/v1/rates

Every bill rate (what the client is charged per hour for a worker) and every overhead percentage. site: null is the worker's default — it applies on every site without its own rate.

{"currency": "USD",
 "rates": [{"worker": {"id": 7, "name": "ANTON POTREBICH"}, "site": {"id": 1, "name": "Blackpoint"},
            "rate_per_hour": 65.0},
           {"worker": {"id": 7, "name": "ANTON POTREBICH"}, "site": null, "rate_per_hour": 70.0}],
 "overhead": [{"site": {"id": 1, "name": "Blackpoint"}, "percent": 20.0}]}

To find a worker's rate on a site: the site's own rate if listed, else their default, else there is none.

GET/api/v1/task-costs

What each Schedule task has cost so far: per worker, paid hours on site on the task × their bill rate. Closed shifts only; today's rates. Hours with no task are under a task with task_id: null. Someone assigned to several of the site's tasks that day has their time on site split evenly between them (shared_hours: how much of a line was split). Supply runs, time between sites and office work are not in any task: each site lists them under away (kind: supply_run, other_site, office_work), in the site's total.

ParameterMeaning
site_idOne site (default: all).
start, endClock-in date range (default: all time).
approved=1Approved shifts only.
{"total": {"hours": 21.5, "amount": 1275.0, "unrated_hours": 5.0},
 "sites": [{"site_id": 6, "job_name": "1829 Bertram St., Honolulu", "hours": 21.5, "amount": 1275.0,
            "unrated_hours": 5.0,
            "tasks": [{"task_id": 51, "name": "Frame walls", "group": "Framing", "deleted": false,
                       "start": "2026-10-01", "end": "2026-10-03", "progress": 40,
                       "hours": 11.5, "amount": 915.0, "unrated_hours": 0.0,
                       "workers": [{"worker_id": 6, "name": "ANDREI CHAKHOUSKI", "hours": 7.5,
                                    "rate": 90.0, "rate_source": "site", "amount": 675.0,
                                    "shifts": 1, "approved_shifts": 1, "shared_hours": 0.0}]}],
            "away": [{"kind": "supply_run", "name": "Supply runs", "hours": 1.0, "amount": 90.0,
                      "unrated_hours": 0.0,
                      "workers": [{"worker_id": 6, "name": "ANDREI CHAKHOUSKI", "hours": 1.0,
                                   "rate": 90.0, "rate_source": "site", "amount": 90.0,
                                   "shifts": 1, "approved_shifts": 1}]}]}],
 "workers": [{"worker_id": 6, "name": "ANDREI CHAKHOUSKI", "hours": 9.5, "amount": 855.0,
              "unrated_hours": 0.0}]}

unrated_hours: hours by someone with no rate for that site — counted, never priced at $0; their amount is null.

GET/api/v1/sites/{site_id}/budget

Budget against actual for one site (the Budget tab).

{"site": {"site_id": 6, "job_name": "1829 Bertram St., Honolulu"},
 "project_budget": 12000.0, "allocated": 9000.0, "unallocated": 3000.0,
 "actual": 4180.0, "hours": 44.0, "unrated_hours": 0.0,
 "no_task": {"hours": 4.0, "actual": 380.0, "unrated_hours": 0.0},
 "away": [{"kind": "office_work", "name": "Office work", "hours": 2.0, "actual": 180.0,
           "unrated_hours": 0.0}],
 "tasks": [{"id": 50, "name": "Framing", "is_group": true, "depth": 0, "start": "2026-10-01",
            "end": "2026-10-09", "progress": 40, "budget": 6000.0, "actual": 3800.0,
            "hours": 40.0, "unrated_hours": 0.0}]}

project_budget: the whole job. allocated: the task budgets added up. actual: hours × bill rate so far. A group's budget is the sum of its tasks.

Errors

Errors are JSON: {"error": "invalid_key", "message": "…"}.

StatuserrorWhen
400bad_requestA parameter is malformed (a bad date, a range over 366 days).
401invalid_keyNo key, a wrong key, or a revoked key.
403scope_missingThe key does not have the scope that endpoint needs.
404not_foundNo site with that id.

Questions: the office, igor@merkallstars.com.