API reference

Attendance API

4 operations for attendance. Each one names the scope your API key needs.

Scopes used here: time.attendance.read , time.attendance.edit , time.attendance.device

An employee's punches on one calendar date (in their location's timezone)

GET /attendance-punches

Scope: time.attendance.read

Parameters

Name In Description
employeeId required query Whose punches to list.
date required query Local calendar date, YYYY-MM-DD.
cursor query Opaque cursor from a previous response's nextCursor.
limit query Page size, 1-200. Defaults to 50.

Response 200

An employee's punches on one calendar date (in their location's timezone). response 200
Field Type Notes
data array of object required
data[].id string (uuid) required
data[].employeeId string (uuid) required
data[].punchedAt string or string (date-time) required ISO-8601 timestamp
data[].direction string required
data[].source string required
nextCursor string, nullable required Opaque. Pass back as ?cursor= for the next page; null on the last page.

Errors: 400 · 401 · 403 · 404 · 422 · 429 (error format)

Example request
curl -s 'https://<your-company>.<app-domain>/api/v1/attendance-punches' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Record a punch. A `manual` punch additionally requires a reason

POST /attendance-punches

Scope: time.attendance.edit

Headers: Idempotency-Key (see idempotency)

Request body

Record a punch. A `manual` punch additionally requires a reason. request body
Field Type Notes
employeeId string (uuid) required
punchedAt string required ISO-8601 instant.
direction string required One of: in , out
source string required
reason string Required when source is manual.

Response 201

Record a punch. A `manual` punch additionally requires a reason. response 201
Field Type Notes
status string required

Errors: 400 · 401 · 403 · 404 · 422 · 429 (error format)

Example request
curl -s -X POST 'https://<your-company>.<app-domain>/api/v1/attendance-punches' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: <a unique value>' \
  --data '{ … }'

Biometric-device push (TIM-F12 rule 3): a batch of raw device punches, mapped to employees and normalised. Idempotent on (deviceId, deviceUserId, punchedAt); an unrecognised deviceUserId is parked for HR to map, never dropped. `punchedAt` with no timezone offset is interpreted in the mapped employee's own local time (never the server's) — see the device-clock notes in the full API guide

POST /attendance/punches

Scope: time.attendance.device

Headers: Idempotency-Key (see idempotency)

Request body

Biometric-device push (TIM-F12 rule 3): a batch of raw device punches, mapped to employees and normalised. Idempotent on (deviceId, deviceUserId, punchedAt); an unrecognised deviceUserId is parked for HR to map, never dropped. `punchedAt` with no timezone offset is interpreted in the mapped employee's own local time (never the server's) — see the device-clock notes in the full API guide. request body
Field Type Notes
[].deviceId string required The physical device's own identifier, verbatim from its push payload.
[].deviceUserId string required The device's own user id — mapped to an employee via the tenant's device-user mapping.
[].punchedAt string or number required
[].direction string One of: in , out , auto

Response 201

Biometric-device push (TIM-F12 rule 3): a batch of raw device punches, mapped to employees and normalised. Idempotent on (deviceId, deviceUserId, punchedAt); an unrecognised deviceUserId is parked for HR to map, never dropped. `punchedAt` with no timezone offset is interpreted in the mapped employee's own local time (never the server's) — see the device-clock notes in the full API guide. response 201
Field Type Notes
total integer required
recorded integer required
throttled integer required
duplicates integer required
unmapped integer required
errors integer required
rows array of object required
rows[].index integer required
rows[].deviceId string required
rows[].deviceUserId string required
rows[].punchedAt string required
rows[].status string required One of: recorded , throttled , duplicate , unmapped , unmapped_duplicate , error
rows[].employeeId string (uuid)
rows[].punchId string (uuid)
rows[].error string

Errors: 400 · 401 · 403 · 404 · 422 · 429 (error format)

Example request
curl -s -X POST 'https://<your-company>.<app-domain>/api/v1/attendance/punches' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: <a unique value>' \
  --data '{ … }'

Device heartbeat: tells the platform a biometric device is alive when it has no punches to push. Every punch batch also counts as a heartbeat. HR is alerted when an active device stays silent past its window

POST /attendance/devices/heartbeat

Scope: time.attendance.device

Headers: Idempotency-Key (see idempotency)

Request body

Device heartbeat: tells the platform a biometric device is alive when it has no punches to push. Every punch batch also counts as a heartbeat. HR is alerted when an active device stays silent past its window. request body
Field Type Notes
deviceId string required The physical device's own identifier, as used in its punch pushes.

Response 201

Device heartbeat: tells the platform a biometric device is alive when it has no punches to push. Every punch batch also counts as a heartbeat. HR is alerted when an active device stays silent past its window. response 201
Field Type Notes
deviceId string required
lastSeenAt string required

Errors: 400 · 401 · 403 · 404 · 422 · 429 (error format)

Example request
curl -s -X POST 'https://<your-company>.<app-domain>/api/v1/attendance/devices/heartbeat' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: <a unique value>' \
  --data '{ … }'