BUILDDevelopers
Connect LikeClockwork to the rest of your stack.
A REST API and signed webhooks for Zapier, Make, n8n and your own code. Read and update rocks, KPIs, to-dos, issues and meetings, and hear about changes as they happen.
Quick start
- An owner or admin opens Settings › API and creates a key: a name, the scopes it needs and, if you like, an expiry date.
- Copy the key straight away. It is shown once; we keep only a hash.
- Call the API with it:
curl https://api.likeclockwork.app/api/v1/rocks?status=at_risk,off_track \
-H "Authorization: Bearer lck_live_abcd1234wxyz_…"
{
"data": [ { "object": "rock", "id": "…", "title": "Launch the partner programme", "status": "at_risk", … } ],
"next_cursor": null,
"limit": 50
}
Keys and scopes
- A key belongs to one company and acts only within it, with exactly the scopes chosen. It can never see another company’s data.
- Send it as
Authorization: Bearer lck_live_…over HTTPS. Production keys startlck_live_; keys made on our test environments startlck_test_and don’t work in production. - Keep keys on a server or in your automation tool’s credential store. Never put one in a web page or a mobile app: the API doesn’t allow browser calls from other sites.
- Rotate a key to get a new secret with the same settings (the old one stops at once), or revoke it. Creating, rotating and revoking keys is recorded in the company’s audit log, and Settings shows when each key was last used.
- Up to 25 active keys per company.
| Scope | Allows |
|---|---|
read:rocks | Read rocks |
write:rocks | Create and update rocks |
read:kpis | Read KPIs and their scores |
write:kpi_entries | Record KPI scores |
read:todos | Read to-dos |
write:todos | Create and update to-dos |
read:issues | Read issues |
write:issues | Create and update issues |
read:meetings | Read meetings |
read:people | Read people (ids and names, to set owners) |
Endpoints
Base URL https://api.likeclockwork.app. JSON in and out. Every response carries an X-Request-Id; quote it if you contact support.
| Method | Path | Scope | What it does |
|---|---|---|---|
GET | /api/v1/me | any key | The key and company this request is authenticated as |
GET | /api/v1/rocks | read:rocks | List rocks Filters: quarter, status, owner_id, include_archived, updated_since |
POST | /api/v1/rocks | write:rocks | Create a rock |
GET | /api/v1/rocks/{id} | read:rocks | Get a rock |
PATCH | /api/v1/rocks/{id} | write:rocks | Update a rock |
GET | /api/v1/kpis | read:kpis | List KPIs Filters: owner_id, include_inactive, updated_since |
GET | /api/v1/kpis/{id} | read:kpis | Get a KPI |
GET | /api/v1/kpi-entries | read:kpis | List KPI scores Filters: kpi_id, from, to, updated_since |
POST | /api/v1/kpi-entries | write:kpi_entries | Record a KPI score (replaces that period’s score) |
GET | /api/v1/todos | read:todos | List to-dos Filters: status, owner_id, include_archived, updated_since |
POST | /api/v1/todos | write:todos | Create a to-do |
GET | /api/v1/todos/{id} | read:todos | Get a to-do |
PATCH | /api/v1/todos/{id} | write:todos | Update a to-do |
GET | /api/v1/issues | read:issues | List issues Filters: status, owner_id, include_archived, updated_since |
POST | /api/v1/issues | write:issues | Raise an issue |
GET | /api/v1/issues/{id} | read:issues | Get an issue |
PATCH | /api/v1/issues/{id} | write:issues | Update an issue |
GET | /api/v1/meetings | read:meetings | List meetings Filters: status, series_id, from, to, updated_since |
GET | /api/v1/meetings/{id} | read:meetings | Get a meeting |
GET | /api/v1/people | read:people | List the company’s people (id, name and whether they can own items) |
curl -X POST https://api.likeclockwork.app/api/v1/todos \
-H "Authorization: Bearer lck_live_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: zap-48213-1" \
-d '{"title":"Send the Q4 board pack","owner_id":"3f6c…","due_date":"2026-12-05"}'
Owners are given as owner_id, an owner, admin or member of the company. GET /api/v1/people (scope read:people) lists everyone’s id and display name, a page at a time like every list, with assignable: true for the people who can own rocks, to-dos and issues (viewers are listed with assignable: false); the API never takes or returns email addresses. Creating a rock counts towards your plan’s open rocks per quarter, exactly as in the app.
Pagination, errors and retries
- Pagination. Lists are newest first. Pass
limit(1–200, default 50) and, for the next page,cursorset to the previous page’snext_cursor.next_cursorisnullon the last page. Useupdated_sinceto poll for changes. - Idempotency. Send an
Idempotency-Keyheader on POST. Repeating the same key with the same body within 24 hours returns the first response (withIdempotent-Replayed: true) instead of creating a duplicate; the same key with a different body is refused (422 idempotency_key_reused), and while the first request is still running a repeat gets409 idempotency_in_progress. - Rate limits. 120 requests a minute per key. Over that you get
429withRetry-After(seconds): wait that long, then retry. - Retries. Retry
429and503after theirRetry-After, and409 idempotency_in_progressafter a moment, sending the same request with the sameIdempotency-Keyso a retry can’t create a duplicate. Don’t retry other 4xx errors unchanged: fix the request first. - Read-only companies. When a subscription ends the company becomes view only: reads keep working and writes get
402 subscription_ended. - Deleting a company. When an owner asks to delete the company, every API key is revoked and every webhook endpoint switched off straight away, so calls with its keys get
401 unauthorizedlike any revoked key. If the deletion is cancelled, an admin creates new keys and switches endpoints back on. - Errors always look like
{"error": "…", "message": "…", "request_id": "…", "details": {…}}. Branch onerror, never onmessage.
| Status | error | Meaning |
|---|---|---|
| 400 | validation_failed | A query parameter or body field is wrong; details.field_errors says which. |
| 400 | invalid_json | The body isn’t valid JSON. |
| 401 | unauthorized | No key, a malformed key, a key for the other environment (live/test), or a revoked or expired one. Asking to delete a company revokes all its keys, so they get this too. |
| 402 | subscription_ended | The company’s subscription has ended, so it is read only: reads still work, writes don’t. |
| 402 | quota_exceeded | The plan’s limit is reached (for example open rocks per quarter). |
| 403 | insufficient_scope | The key doesn’t have the scope this endpoint needs (details.required_scope). |
| 404 | not_found | No such path, or no such record in this key’s company. |
| 405 | method_not_allowed | The path exists but not with this method; the Allow header lists the ones it takes. |
| 409 | conflict | The record already exists, or that KPI period couldn’t be written. Read the current state before trying again. |
| 409 | idempotency_in_progress | A request with this Idempotency-Key is still being processed. Send the same request again (same key and body) after a moment to get its result. |
| 413 | payload_too_large | The body is over 64 KB. |
| 415 | unsupported_media_type | Send the body with Content-Type: application/json. |
| 422 | owner_not_member | owner_id isn’t an owner, admin or member of the company (GET /api/v1/people marks them assignable). |
| 422 | invalid_reference | An id in the body (kpi_id, series_id, parent_rock_id) isn’t in this company. |
| 422 | idempotency_key_reused | This Idempotency-Key was already used with a different request. Use a new key for a new request. |
| 422 | validation_failed | The values are well-formed but break a rule for the record (details.reason). |
| 429 | rate_limited | More than 120 requests a minute for this key, or too many from one address. Wait the Retry-After seconds, then retry. |
| 503 | company_maintenance | LikeClockwork support has made the company read only for a short while to fix something: reads still work, writes don’t. Try again later. |
| 503 | unavailable | A temporary problem on our side. Wait the Retry-After seconds, then retry; repeat a POST with the same Idempotency-Key so the retry can’t create a duplicate. |
Webhooks
In Settings › API, add an HTTPS endpoint and choose events. When one happens we POST it to you as JSON, signed. Up to 10 endpoints per company.
| Type | Sent when |
|---|---|
rock.created | A rock is created |
rock.status_changed | A rock’s status changes |
todo.created | A to-do is created |
todo.completed | A to-do is completed |
issue.created | An issue is raised |
issue.solved | An issue is solved |
kpi_entry.created | A KPI score is recorded |
kpi_entry.updated | A recorded KPI score is changed |
meeting.concluded | A meeting is concluded |
data.object has the same shape as the API returns; previous_attributes holds the earlier values of what changed (for kpi_entry.updated: value, rag, note or the period dates; a field that was empty before is left out). Recording a score for a period that already has one replaces it and sends kpi_entry.updated, not kpi_entry.created; writing the same score again sends nothing. A ping event is sent when you press “Send test event”.
{
"id": "9b1f0c0e-6a1d-4f5e-9d38-2f8f0a6b1c11",
"object": "event",
"type": "rock.status_changed",
"api_version": "2026-11-23",
"created_at": "2026-11-23T09:14:03.120Z",
"company_id": "70000000-0000-4000-8000-000000000001",
"data": {
"object": {
"object": "rock",
"id": "18181818-0000-4000-8000-000000000001",
"title": "Launch the partner programme",
"quarter": "2026-Q4",
"status": "at_risk",
"percent_complete": 40,
"owner": {
"id": "aaaaaaaa-0000-4000-8000-000000000002",
"name": "Max Member"
},
"archived": false
},
"previous_attributes": {
"status": "on_track"
}
}
}
- Headers:
LikeClockwork-Signature,LikeClockwork-Event(the event type),LikeClockwork-Event-Id(the same on every retry and resend: use it to ignore duplicates) andLikeClockwork-Delivery-Id(one per endpoint per event, new for a resend; quote it if you contact support). - Answer within 10 seconds with any 2xx status. Do slow work afterwards.
- Retries: timeouts, network errors, 408, 429 and 5xx are retried after 1 minute, 5 minutes, 30 minutes, 2, 6, 12 and 24 hours (8 attempts in all). If you answer with a longer
Retry-After(in seconds, up to an hour) we wait that long instead. Other 4xx responses and redirects are not retried. Events can arrive more than once and out of order. - Switched off after failures: an endpoint that keeps failing for more than a day (10 or more failures in a row), or fails 50 times in a row, is switched off and the company’s owners and admins get an email. Switch it back on in Settings; use Resend in its delivery log for anything you missed.
- Where we send: HTTPS on port 443 to a public hostname only. We refuse IP addresses, private, loopback, link-local and cloud-metadata destinations (checked when you save the URL and again before every delivery), we never follow redirects, and we read at most 64 KB of your response.
Verifying signatures
Every delivery has LikeClockwork-Signature: t=<unix seconds>,v1=<hex>, where v1 is HMAC-SHA256 of t + "." + raw body keyed with the endpoint’s signing secret (whsec_…, shown once when you add the endpoint). Check it before trusting the body, and reject timestamps more than five minutes old so a captured delivery can’t be replayed. There is one v1 value, made with the current secret: after you create a new signing secret, every delivery (retries of older events included) is signed with the new one only, so update your receiver straight away.
import crypto from 'node:crypto';
// rawBody: the request body exactly as received (a string or Buffer), before JSON.parse.
export function verifyLikeClockwork(rawBody, header, secret, toleranceSeconds = 300) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
const t = Number(parts.t);
if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false; // stale: replay?
const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
const given = header.split(',').filter((p) => p.startsWith('v1=')).map((p) => p.slice(3));
return given.some((sig) => sig.length === expected.length
&& crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected)));
}
import hmac, hashlib, time
def verify_likeclockwork(raw_body: bytes, header: str, secret: str, tolerance=300) -> bool:
items = [p.split("=", 1) for p in header.split(",") if "=" in p]
t = next((int(v) for k, v in items if k == "t"), 0)
if not t or abs(time.time() - t) > tolerance:
return False
expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
return any(hmac.compare_digest(v, expected) for k, v in items if k == "v1")
What the API never shares
- Private to-dos and 1:1 action items: not listed, not readable, not changeable, never in a webhook.
- Meeting notes, agendas, summaries, 1:1s, people reviews, hiring, cash and billing: not part of the API.
- People appear only as an id and display name, never an email address.
More on how we protect data on the security page.
Build on the rhythm.
Start a 14-day trial, then create a key in Settings › API.