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.
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"])
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.
| Scope | Reads |
|---|---|
data | Workers, sites, timesheets (shifts, breaks, task notes, approval, QuickBooks status), schedules. No money. |
rates | Bill 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.
2026-10-05T07:31:00-10:00. Hawaii has no
daylight saving, so the offset is always -10:00. Dates are
YYYY-MM-DD, also Hawaii.92.5 is $92.50). Overhead is a percentage
(15 is 15%).null when there is no value (a shift still on the clock has
clock_out: null)./api/v1Checks 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)"}
/api/v1/workers| Parameter | Meaning |
|---|---|
include_removed=1 | Also list workers who have been removed. |
{"workers": [{"id": 13, "name": "DENIS KLIMOV", "title": "Millwork/Journeyman",
"active": true, "removed_at": null}]}
/api/v1/sites| Parameter | Meaning |
|---|---|
include_removed=1 | Also 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.
/api/v1/shiftsTimesheets: 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.
| Parameter | Meaning |
|---|---|
start, end | Clock-in date range, inclusive. Default: the last 14 days. At most 366 days per request. |
worker_id | One worker. |
site_id | One site. |
approved=1 / approved=0 | Only approved / only not-yet-approved shifts. |
limit | Most 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
}]}
| Field | Meaning |
|---|---|
paid_hours | Clock time minus breaks. For a shift still on the clock, up to now. |
schedule_task | The Schedule task the worker clocked in to, or null. |
tasks | The 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. |
approved | Signed off by the office — frozen until the office reopens it. |
edited | The office changed something on it (the change history is kept). |
closed_by | worker, switch (ended by switching site or task),
or the office. |
quickbooks.state | sent, waiting, error,
stale (reopened after it was sent), or null. |
bill_rate, rate_from, billable | rates
only. The worker's bill rate on that site (site rate, or their default),
and paid hours × rate. Null when no rate is set. |
/api/v1/sites/{site_id}/scheduleThe 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"}]}
| Field | Meaning |
|---|---|
is_group | A group's dates, progress and hours are the span / sum of what is inside it
(parent_id points at the group). |
start, end | Dates, both inclusive. |
progress | Percent complete. |
depends_on | Ids of tasks this one waits for (finish-to-start). |
workers, managers | Worker ids assigned to the task. |
hours_worked | Paid hours clocked in to the task so far. |
baseline_start/end | The task's dates in the latest saved baseline, or null. |
/api/v1/ratesEvery 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.
/api/v1/task-costsWhat 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.
| Parameter | Meaning |
|---|---|
site_id | One site (default: all). |
start, end | Clock-in date range (default: all time). |
approved=1 | Approved 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.
/api/v1/sites/{site_id}/budgetBudget 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 are JSON: {"error": "invalid_key", "message": "…"}.
| Status | error | When |
|---|---|---|
| 400 | bad_request | A parameter is malformed (a bad date, a range over 366 days). |
| 401 | invalid_key | No key, a wrong key, or a revoked key. |
| 403 | scope_missing | The key does not have the scope that endpoint needs. |
| 404 | not_found | No site with that id. |
Questions: the office, igor@merkallstars.com.