Developers
Kloqk API and AI connector
Read and change time off, timesheets, pay periods and employees from your HR system, payroll tool or your own code, and connect an AI assistant like Claude to your Kloqk account. The API and the AI connector are on the Pro and Premium plans.
Quick start
- In Kloqk, open Settings > Integrations and create an API key. Pick Read only, or Read + write to make changes. The key is shown once: copy it somewhere safe.
- Every request goes to
https://kloqk.com/api/v1with the key in theAuthorizationheader. - Approved time off for December, for example:
curl "https://kloqk.com/api/v1/time-off/requests?status=approved&from=2026-12-01&to=2026-12-31" \ -H "Authorization: Bearer $KLOQK_API_KEY"
{
"data": [
{
"id": "b81d4e07-5f2a-4c69-a0d3-7e9c2b1f6a58",
"employee_id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"employee_name": "Maria Lopez",
"employee_number": "1042",
"leave_type_id": "6a2e9d14-0b7c-4f38-95e1-c4d8a3b20f76",
"type": "Vacation",
"pay_kind": "vacation",
"from": "2026-12-21",
"to": "2026-12-23",
"hours": 24,
"paid_hours": 24,
"unpaid_hours": 0,
"status": "approved",
"note": "Family visit",
"review_note": null,
"reviewed_at": "2026-12-02T15:04:11.000Z",
"created_at": "2026-12-01T18:22:40.000Z",
"updated_at": "2026-12-02T15:04:11.000Z"
}
],
"next_cursor": null
}Dates are YYYY-MM-DD in the business's time zone. Times are ISO 8601 in UTC. The full description is also published as OpenAPI 3.1 at /api/v1/openapi.json.
Authentication
Send the key as a bearer token on every request:
Authorization: Bearer klq_live_...
- Base URL:
https://kloqk.com/api/v1 - A key belongs to one business. Read only keys can only read; Read + write keys can also add and change.
- Only owners and admins create keys. Revoking a key in Settings > Integrations stops it at once.
- Every change made with a key is recorded under the key's name, and the last 50 calls show on the key in Settings > Integrations.
- Keep keys on a server. Never put one in a web page or a mobile app.
Plans
- Free: no API or AI connector. Calls answer 403 with an
upgrade_url. - Pro: every endpoint on this page except the Premium ones.
- Premium: everything, including Premium data such as text messages.
- A free trial of Pro or Premium gets that plan's access until the trial ends. Keys are kept when a plan ends and work again after an upgrade.
{
"error": "The Kloqk API and AI connector need the Pro plan. Upgrade in Settings > Billing.",
"feature": "api",
"upgrade": "pro",
"upgrade_url": "https://kloqk.com/dashboard/billing"
}Pay data
Pay rates and dollar amounts only reach keys the owner marked Can see pay in Settings > Integrations. Other keys get hours only: the pay fields (pay_rate, rate_type, hourly_rate, gross_pay and the other *_pay fields) are left out of the answer, not sent as null, and sending them in a write answers 403.
Pagination
Every list takes limit (1 to 500, default 100 unless the endpoint says otherwise) and answers with next_cursor. Pass it back as cursor for the next page; it is null on the last page. To stay in sync, keep the time of your last pull and send it as updated_since.
curl "https://kloqk.com/api/v1/time-off/requests?updated_since=2026-12-01T00:00:00Z&limit=200&cursor=WyIyMDI2LTEy..." \ -H "Authorization: Bearer $KLOQK_API_KEY"
Rate limits
120 requests a minute per key, on Pro and Premium, the API and the AI connector together. Every answer carries X-RateLimit-Limit and X-RateLimit-Remaining. Over the limit the answer is 429 with a Retry-After header in seconds.
Errors
Errors are JSON with an error message you can show to a person.
| Status | When | Example |
|---|---|---|
| 400 | A parameter or field is missing or wrong. | {"error":"`from` and `to` must be YYYY-MM-DD."} |
| 401 | The key is missing, wrong or revoked. | {"error":"Invalid or missing API key."} |
| 403 | The business is on Free (or its trial ended): the API is on Pro. | {"error":"The Kloqk API and AI connector need the Pro plan. Upgrade in Settings > Billing.","feature":"api","upgrade":"pro","upgrade_url":"https://kloqk.com/dashboard/billing"} |
| 403 | A Premium resource on Pro. | {"error":"Two-way SMS needs the Premium plan. Upgrade in Settings > Billing.","feature":"sms","upgrade":"premium","upgrade_url":"https://kloqk.com/dashboard/billing"} |
| 403 | A write with a read-only key, or pay fields with a key that cannot see pay. | {"error":"This key is read-only."} |
| 404 | No such record in this business. | {"error":"Request not found."} |
| 409 | The change is not allowed now: the pay period is closed, time off is switched off, the request was already reviewed, or the same Idempotency-Key is still running. | {"error":"This request was already reviewed."} |
| 429 | More than 120 requests a minute with one key. Wait the seconds in the Retry-After header. | {"error":"Too many requests: this key may make 120 a minute. Try again in 23 seconds."} |
Writes: send an Idempotency-Key header on a POST. If the network fails and you send it again with the same key, you get the first answer back and nothing is added twice.
Endpoints
Time off
GET/time-off/requestsList time off requests
Requests with their dates, hours and status. Filter by status (several separated by commas), by a date range (any request touching it), by person, or by what changed since your last sync. A request removed in Kloqk is deleted and no longer listed.
Any key. Paged: limit and cursor.
| Parameter | What it does |
|---|---|
| status | pending, approved or denied, or several separated by commas. |
| from | YYYY-MM-DD: requests ending on or after this day. |
| to | YYYY-MM-DD: requests starting on or before this day. |
| employee_id | Only this person. |
| updated_since | Only rows changed after this ISO 8601 date-time. |
| limit | How many per page, 1 to 500. Default 100. |
| cursor | `next_cursor` from the last page. |
Request
curl "https://kloqk.com/api/v1/time-off/requests?status=approved&from=2026-12-01&to=2026-12-31" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"data": [
{
"id": "b81d4e07-5f2a-4c69-a0d3-7e9c2b1f6a58",
"employee_id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"employee_name": "Maria Lopez",
"employee_number": "1042",
"leave_type_id": "6a2e9d14-0b7c-4f38-95e1-c4d8a3b20f76",
"type": "Vacation",
"pay_kind": "vacation",
"from": "2026-12-21",
"to": "2026-12-23",
"hours": 24,
"paid_hours": 24,
"unpaid_hours": 0,
"status": "approved",
"note": "Family visit",
"review_note": null,
"reviewed_at": "2026-12-02T15:04:11.000Z",
"created_at": "2026-12-01T18:22:40.000Z",
"updated_at": "2026-12-02T15:04:11.000Z"
}
],
"next_cursor": null
}GET/time-off/requests/{id}Get one time off request
One request, with the hours on each date.
Any key.
| Parameter | What it does |
|---|---|
| id | The request id. |
Request
curl "https://kloqk.com/api/v1/time-off/requests/b81d4e07-5f2a-4c69-a0d3-7e9c2b1f6a58" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"id": "b81d4e07-5f2a-4c69-a0d3-7e9c2b1f6a58",
"employee_id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"employee_name": "Maria Lopez",
"employee_number": "1042",
"leave_type_id": "6a2e9d14-0b7c-4f38-95e1-c4d8a3b20f76",
"type": "Vacation",
"pay_kind": "vacation",
"from": "2026-12-21",
"to": "2026-12-23",
"hours": 24,
"paid_hours": 24,
"unpaid_hours": 0,
"status": "approved",
"note": "Family visit",
"review_note": null,
"reviewed_at": "2026-12-02T15:04:11.000Z",
"created_at": "2026-12-01T18:22:40.000Z",
"updated_at": "2026-12-02T15:04:11.000Z",
"days": [
{
"date": "2026-12-21",
"hours": 8
},
{
"date": "2026-12-22",
"hours": 8
},
{
"date": "2026-12-23",
"hours": 8
}
]
}POST/time-off/requestsAdd a time off request
For an HR system pushing leave in. The same checks as the app (closed pay periods, the 60-day limit, the person's full day). Name the person by `employee_id` or `employee_number`, the kind by `leave_type_id` or `type`. Leave out `hours` for full days, send one total in `hours`, or set single dates in `days`. Send `"status": "approved"` to approve it in the same call. Send an `Idempotency-Key` header: a retry with the same key returns the first answer and never adds a second request.
Needs a read and write key.
Request
curl -X POST "https://kloqk.com/api/v1/time-off/requests" \
-H "Authorization: Bearer $KLOQK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: hr-leave-88412" \
-d '{"employee_number":"1042","type":"vacation","from":"2026-12-21","to":"2026-12-23","note":"Family visit","status":"approved"}'Response 201
{
"id": "b81d4e07-5f2a-4c69-a0d3-7e9c2b1f6a58",
"employee_id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"employee_name": "Maria Lopez",
"employee_number": "1042",
"leave_type_id": "6a2e9d14-0b7c-4f38-95e1-c4d8a3b20f76",
"type": "Vacation",
"pay_kind": "vacation",
"from": "2026-12-21",
"to": "2026-12-23",
"hours": 24,
"paid_hours": 24,
"unpaid_hours": 0,
"status": "approved",
"note": "Family visit",
"review_note": null,
"reviewed_at": "2026-12-02T15:04:11.000Z",
"created_at": "2026-12-01T18:22:40.000Z",
"updated_at": "2026-12-02T15:04:11.000Z"
}POST/time-off/requests/{id}/approveApprove a request
Approves a pending request. Paid hours come off the balance; any shortfall is unpaid on the same request. The reviewer is recorded as this key.
Needs a read and write key.
| Parameter | What it does |
|---|---|
| id | The request id. |
Request
curl -X POST "https://kloqk.com/api/v1/time-off/requests/b81d4e07-5f2a-4c69-a0d3-7e9c2b1f6a58/approve" \
-H "Authorization: Bearer $KLOQK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"note":"Enjoy the trip"}'Response 200
{
"id": "b81d4e07-5f2a-4c69-a0d3-7e9c2b1f6a58",
"employee_id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"employee_name": "Maria Lopez",
"employee_number": "1042",
"leave_type_id": "6a2e9d14-0b7c-4f38-95e1-c4d8a3b20f76",
"type": "Vacation",
"pay_kind": "vacation",
"from": "2026-12-21",
"to": "2026-12-23",
"hours": 24,
"paid_hours": 24,
"unpaid_hours": 0,
"status": "approved",
"note": "Family visit",
"review_note": "Enjoy the trip",
"reviewed_at": "2026-12-02T15:04:11.000Z",
"created_at": "2026-12-01T18:22:40.000Z",
"updated_at": "2026-12-02T15:04:11.000Z"
}POST/time-off/requests/{id}/denyDeny a request
Denies a pending request. The note is shown to the employee.
Needs a read and write key.
| Parameter | What it does |
|---|---|
| id | The request id. |
Request
curl -X POST "https://kloqk.com/api/v1/time-off/requests/b81d4e07-5f2a-4c69-a0d3-7e9c2b1f6a58/deny" \
-H "Authorization: Bearer $KLOQK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"note":"We are short that week"}'Response 200
{
"id": "b81d4e07-5f2a-4c69-a0d3-7e9c2b1f6a58",
"employee_id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"employee_name": "Maria Lopez",
"employee_number": "1042",
"leave_type_id": "6a2e9d14-0b7c-4f38-95e1-c4d8a3b20f76",
"type": "Vacation",
"pay_kind": "vacation",
"from": "2026-12-21",
"to": "2026-12-23",
"hours": 24,
"paid_hours": null,
"unpaid_hours": null,
"status": "denied",
"note": "Family visit",
"review_note": "We are short that week",
"reviewed_at": "2026-12-02T15:04:11.000Z",
"created_at": "2026-12-01T18:22:40.000Z",
"updated_at": "2026-12-02T15:04:11.000Z"
}GET/time-off/typesList kinds of time off
The business's kinds of time off and how each is paid: from the vacation or sick balance, paid with no balance, or unpaid. Use the id as `leave_type_id`.
Any key. Paged: limit and cursor.
| Parameter | What it does |
|---|---|
| limit | How many per page, 1 to 500. Default 100. |
| cursor | `next_cursor` from the last page. |
Request
curl "https://kloqk.com/api/v1/time-off/types" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"data": [
{
"id": "6a2e9d14-0b7c-4f38-95e1-c4d8a3b20f76",
"name": "Vacation",
"pay_kind": "vacation",
"archived": false
}
],
"next_cursor": null
}GET/time-off/balancesList time off balances
Vacation and sick hours each person has left, and the date accrual has been counted to.
Any key. Paged: limit and cursor.
| Parameter | What it does |
|---|---|
| employee_id | Only this person. |
| updated_since | Only rows changed after this ISO 8601 date-time. |
| limit | How many per page, 1 to 500. Default 100. |
| cursor | `next_cursor` from the last page. |
Request
curl "https://kloqk.com/api/v1/time-off/balances" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"data": [
{
"employee_id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"employee_name": "Maria Lopez",
"employee_number": "1042",
"vacation_hours": 36.5,
"sick_hours": 12,
"vacation_accrued_through": "2026-11-29",
"sick_accrued_through": "2026-11-29",
"updated_at": "2026-11-30T06:00:12.000Z"
}
],
"next_cursor": null
}Timesheets and pay periods
GET/timesheetsHours per person for a range
The same numbers as Reports > Payroll: regular, overtime, double time, paid time off, breaks and lunch, and each day. Send `from` and `to` (at most 93 days), or `period_offset` (0 = the current pay period, -1 = the last one). `period_closed` says whether that pay period was closed. Pay rates and dollar amounts (`rate_type`, `hourly_rate`, `regular_pay`, `overtime_pay`, `double_time_pay`, `pto_pay`, `gross_pay`) are only included for a key that can see pay.
Any key. Paged: limit and cursor.
| Parameter | What it does |
|---|---|
| from | YYYY-MM-DD, with `to`. |
| to | YYYY-MM-DD, with `from`. |
| period_offset | 0 = the current pay period, -1 = the last one. Used when `from` and `to` are left out. |
| employee_id | Only this person. |
| limit | How many per page, 1 to 500. Default 100. |
| cursor | `next_cursor` from the last page. |
Request
curl "https://kloqk.com/api/v1/timesheets?period_offset=-1" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"from": "2026-11-16",
"to": "2026-11-29",
"period_closed": true,
"overtime_rule": "Overtime after 40 hours a week",
"data": [
{
"employee_id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"name": "Maria Lopez",
"employee_number": "1042",
"payroll_id": "GUS-1042",
"worked_hours": 76.5,
"regular_hours": 72,
"overtime_hours": 4.5,
"double_time_hours": 0,
"pto_hours": 8,
"holiday_hours": 0,
"holidays": [],
"break_hours": 1.5,
"lunch_hours": 5,
"days": [
{
"date": "2026-11-16",
"worked_hours": 8,
"first_in": "2026-11-16T14:01:00.000Z",
"last_out": "2026-11-16T22:32:00.000Z"
}
]
}
],
"next_cursor": null
}GET/pay-periodsList pay periods
Pay periods newest first, starting with the current one, with whether each was closed. Pull the last closed one, then its hours from /timesheets. Default 12 a page.
Any key. Paged: limit and cursor.
| Parameter | What it does |
|---|---|
| limit | How many per page, 1 to 500. Default 100. |
| cursor | `next_cursor` from the last page. |
Request
curl "https://kloqk.com/api/v1/pay-periods" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"pay_period": "biweekly",
"data": [
{
"from": "2026-11-30",
"to": "2026-12-13",
"offset": 0,
"current": true,
"closed": false,
"closed_at": null
},
{
"from": "2026-11-16",
"to": "2026-11-29",
"offset": -1,
"current": false,
"closed": true,
"closed_at": "2026-12-01T16:10:44.000Z"
}
],
"next_cursor": "WyItMiIsInAiXQ"
}Employees
GET/employeesList employees
The roster, oldest first, 500 a page by default. Active people only unless `include_inactive=true`. Never returned: national id, birth date, PIN, emergency contacts, consents. `pay_rate` and `rate_type` only for a key that can see pay.
Any key. Paged: limit and cursor.
| Parameter | What it does |
|---|---|
| include_inactive | Also people who have left. |
| location_id | Only people based at this location. |
| updated_since | Only rows changed after this ISO 8601 date-time. |
| limit | How many per page, 1 to 500. Default 500. |
| cursor | `next_cursor` from the last page. |
Request
curl "https://kloqk.com/api/v1/employees" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"data": [
{
"id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"first_name": "Maria",
"last_name": "Lopez",
"email": "[email protected]",
"phone": "+15555550142",
"employee_number": "1042",
"payroll_id": "GUS-1042",
"department": "Kitchen",
"job_title": "Line cook",
"status": "active",
"role": "employee",
"worker_type": "w2",
"hire_date": "2025-04-14",
"termination_date": null,
"location_id": "d47b0c3e-91a6-4e25-8f7d-1b5a6c2e9083",
"manager_id": null,
"contract_hours": 32,
"full_day_hours": 8,
"has_pin": true,
"created_at": "2025-04-14T13:00:02.000Z",
"updated_at": "2026-11-30T09:41:18.000Z"
}
],
"next_cursor": null
}GET/employees/{id}Get one employee
One person, with the same fields as the list.
Any key.
| Parameter | What it does |
|---|---|
| id | The employee id. |
Request
curl "https://kloqk.com/api/v1/employees/3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"first_name": "Maria",
"last_name": "Lopez",
"email": "[email protected]",
"phone": "+15555550142",
"employee_number": "1042",
"payroll_id": "GUS-1042",
"department": "Kitchen",
"job_title": "Line cook",
"status": "active",
"role": "employee",
"worker_type": "w2",
"hire_date": "2025-04-14",
"termination_date": null,
"location_id": "d47b0c3e-91a6-4e25-8f7d-1b5a6c2e9083",
"manager_id": null,
"contract_hours": 32,
"full_day_hours": 8,
"has_pin": true,
"created_at": "2025-04-14T13:00:02.000Z",
"updated_at": "2026-11-30T09:41:18.000Z"
}POST/employeesAdd an employee
Adds a person with the same rules as the app, logged on their Activity tab. `first_name` and `last_name` are required. With `?match=employee_number` or `?match=email`, the person who already has that value is updated instead (200), so an HR system can push its roster again and again. API keys cannot create admins. A PIN may be set but is never returned. Pay fields (`pay_rate`, `rate_type`, `rate_effective_date`) need a key that can see pay.
Needs a read and write key.
| Parameter | What it does |
|---|---|
| match | employee_number or email: update the person who has it instead of adding. |
Request
curl -X POST "https://kloqk.com/api/v1/employees" \
-H "Authorization: Bearer $KLOQK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"first_name":"Maria","last_name":"Lopez","email":"[email protected]","employee_number":"1042","department":"Kitchen","job_title":"Line cook","hire_date":"2025-04-14","location_ids":["d47b0c3e-91a6-4e25-8f7d-1b5a6c2e9083"]}'Response 201
{
"id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"first_name": "Maria",
"last_name": "Lopez",
"email": "[email protected]",
"phone": "+15555550142",
"employee_number": "1042",
"payroll_id": "GUS-1042",
"department": "Kitchen",
"job_title": "Line cook",
"status": "active",
"role": "employee",
"worker_type": "w2",
"hire_date": "2025-04-14",
"termination_date": null,
"location_id": "d47b0c3e-91a6-4e25-8f7d-1b5a6c2e9083",
"manager_id": null,
"contract_hours": 32,
"full_day_hours": 8,
"has_pin": true,
"created_at": "2025-04-14T13:00:02.000Z",
"updated_at": "2026-11-30T09:41:18.000Z"
}PATCH/employees/{id}Change an employee
Send only the fields that change; the rest stay. Logged on the person's Activity tab. To end someone's employment, send their last day as `termination_date`: they are marked terminated after that day, as in the app.
Needs a read and write key.
| Parameter | What it does |
|---|---|
| id | The employee id. |
Request
curl -X PATCH "https://kloqk.com/api/v1/employees/3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41" \
-H "Authorization: Bearer $KLOQK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"job_title":"Kitchen lead","termination_date":"2026-12-31"}'Response 200
{
"id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"first_name": "Maria",
"last_name": "Lopez",
"email": "[email protected]",
"phone": "+15555550142",
"employee_number": "1042",
"payroll_id": "GUS-1042",
"department": "Kitchen",
"job_title": "Kitchen lead",
"status": "active",
"role": "employee",
"worker_type": "w2",
"hire_date": "2025-04-14",
"termination_date": "2026-12-31",
"location_id": "d47b0c3e-91a6-4e25-8f7d-1b5a6c2e9083",
"manager_id": null,
"contract_hours": 32,
"full_day_hours": 8,
"has_pin": true,
"created_at": "2025-04-14T13:00:02.000Z",
"updated_at": "2026-11-30T09:41:18.000Z"
}Locations and departments
GET/locationsList locations
Work sites and job sites, with their time zone.
Any key. Paged: limit and cursor.
| Parameter | What it does |
|---|---|
| limit | How many per page, 1 to 500. Default 100. |
| cursor | `next_cursor` from the last page. |
Request
curl "https://kloqk.com/api/v1/locations" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"data": [
{
"id": "d47b0c3e-91a6-4e25-8f7d-1b5a6c2e9083",
"name": "Main Street",
"kind": "site",
"address": "120 Main St, Springfield, IL",
"time_zone": "America/Chicago",
"active_from": null,
"active_to": null,
"created_at": "2025-04-01T12:00:00.000Z"
}
],
"next_cursor": null
}GET/departmentsList departments
The business's departments.
Any key. Paged: limit and cursor.
| Parameter | What it does |
|---|---|
| limit | How many per page, 1 to 500. Default 100. |
| cursor | `next_cursor` from the last page. |
Request
curl "https://kloqk.com/api/v1/departments" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"data": [
{
"id": "0c9e2f41-7a3b-4d58-b6e1-93f20a7c4d15",
"name": "Kitchen",
"created_at": "2025-04-01T12:00:00.000Z"
}
],
"next_cursor": null
}Punches
GET/punchesList punches, newest first
Clock-ins, clock-outs, breaks and lunches, newest first (the Zapier "New punch" trigger). Pass `since` for only what is new, and `cursor` for the next, older page. Default 50 a page, at most 500.
Any key. Paged: limit and cursor.
| Parameter | What it does |
|---|---|
| since | Only punches after this ISO 8601 date-time. |
| limit | 1 to 500, default 50. |
| cursor | `next_cursor` from the last page. |
Request
curl "https://kloqk.com/api/v1/punches" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"next_cursor": null,
"data": [
{
"id": "8e1f3b6a-2c47-4d90-a5b8-6f0e1d9c3a27",
"type": "clock_in",
"occurred_at": "2026-12-03T14:01:00.000Z",
"source": "kiosk",
"note": null,
"off_site": false,
"employee": {
"id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"name": "Maria Lopez",
"employee_number": "1042"
},
"location": "Main Street"
}
]
}Premium
GET/text-messagesList text messages
Text messages to and from staff, oldest first. Premium: a Pro key gets 403 with an upgrade link. Phone numbers are not returned.
Any key. Premium plan. Paged: limit and cursor.
| Parameter | What it does |
|---|---|
| employee_id | Only this person. |
| updated_since | Only rows changed after this ISO 8601 date-time. |
| limit | How many per page, 1 to 500. Default 100. |
| cursor | `next_cursor` from the last page. |
Request
curl "https://kloqk.com/api/v1/text-messages" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"data": [
{
"id": "5d2a8c71-3e9f-4b06-a1c4-7f8e2d0b6a93",
"employee_id": "3f6c1a52-8d1e-4b7a-9c35-2e8f0a6b7d41",
"direction": "outbound",
"channel": "sms",
"body": "Your schedule for next week is ready.",
"status": "delivered",
"created_at": "2026-12-02T17:00:05.000Z"
}
],
"next_cursor": null
}Connection
GET/pingCheck a key
Returns the business the key belongs to and its access. Zapier's connection test.
Any key.
Request
curl "https://kloqk.com/api/v1/ping" \ -H "Authorization: Bearer $KLOQK_API_KEY"
Response 200
{
"ok": true,
"organization": {
"id": "org_123",
"name": "Rosie's Diner"
},
"scopes": "read"
}AI connector (MCP)
Kloqk runs a Model Context Protocol server, so an AI assistant can answer questions from your hours, time off and roster, and make changes you agree to. It has the same plan rules and the same pay rule as the API. Changes that touch many days, delete something or change settings are shown first and only happen once you say yes.
Connector address: https://kloqk.com/api/mcp. Add it in your AI app, then sign in to Kloqk when the app asks and choose View only or View and make changes. Only the owner can let an app see pay. Every change the app makes is logged under the app and the person who connected it, and an owner or admin can disconnect it in Settings > Integrations > Connected apps.
Claude (web and desktop)
- Open Settings > Connectors and choose Add custom connector.
- Name it Kloqk, paste
https://kloqk.com/api/mcpand choose Add. - Choose Connect, sign in to Kloqk, pick the business and the access, and choose Allow.
- In a new chat, turn Kloqk on and ask, for example, “Who has approved time off next week?”
On a Team or Enterprise plan, an owner adds the connector in Organization settings > Connectors and members choose Connect.
ChatGPT
- Open Settings > Apps > Advanced settings and turn on Developer mode.
- Back in Settings > Apps, choose Create.
- Name it Kloqk, paste
https://kloqk.com/api/mcpas the URL and choose OAuth as the authentication. - Choose Create, sign in to Kloqk, pick the business and the access, and choose Allow.
Claude Code
claude mcp add --transport http kloqk https://kloqk.com/api/mcp
Then run /mcp in Claude Code and choose Authenticate to sign in to Kloqk.
With an API key instead
Apps with a header field (Cursor, scripts, Claude custom connectors) can send a key from Settings > Integrations instead of signing in. A Read only key lets the assistant look, Read + write lets it act.
Authorization: Bearer klq_live_...
claude mcp add --transport http kloqk https://kloqk.com/api/mcp \ --header "Authorization: Bearer klq_live_..."
Questions about the API? Write to us from the chat in your dashboard, or see the Help Center.