Skip to content

Events

Events are how Hour Advantage tells your systems what happened. Examples are a punch, a clock joining, an exception on a timecard and a period closed. This page is the contract that a consumer codes against. Each engine keeps its events in a log of its own.

LogHoldsRead with
Connect’sThe events of a tenant’s devices, its sync groups and jobs. The gateway’s own events (a device joined, a punch unrouted, a policy hook failed). Connect’s events about the tenant as a whole (endpoint source:connect). The events that other systems post into the tenant.GET /api/tenants/{tenant}/events, the live stream (/api/tenants/{tenant}/stream), and Connect’s sinks.
Time and Attendance’sExceptions, approved timecards, closed and adjusted periods, leave, unlinked people, recalculation parked, packages updated, and its sinks behind. Also the events systems post into a Time and Attendance tenant.GET /api/attendance/tenants/{tenant}/events, and its own sinks.

The two engines share only how events are delivered. That is sinks posted {"events": [...]}, or a receiver in the same program. Connect’s sinks are sent none of Time and Attendance’s events. Time and Attendance’s sinks are sent none of Connect’s. Each event type has a JSON Schema (draft 2020-12) in the event schemas. The envelope schema covers the fields every event has. There is one schema per type for its data.

{
"id": "5175b17d2b668586c2d0fb958c0f6203",
"schema": 3,
"type": "punch",
"tenant": "acme",
"endpoint": "office",
"group": "hq",
"device": "CG0001",
"person": "0c6f2a1e-7d43-4b8e-9a51-3f2e8d6c4b10",
"package": "[email protected]",
"received_at": "2026-01-15T14:00:29.811Z",
"data": { "user_id": "1001", "local_time": "2026-01-15 08:00:00", "utc_offset": "-06:00", "time": "2026-01-15T08:00:00-06:00", "dst_ambiguous": false, "time_zone": "America/Chicago", "zoned": "2026-01-15T08:00:00-06:00[America/Chicago]" }
}
field
id32 hex digits. The same device record always gets the same id. An event a system posted gets the same id whenever it is posted. Deduplicate on it (see below).
schemaThe version of this contract the event follows: 3.
typeOne of the types below.
tenantThe tenant the event belongs to. In Connect’s events, it is the Connect tenant its endpoint is of, or that it was posted into. In Time and Attendance’s events, it is the Time and Attendance tenant.
endpointThe endpoint the device belongs to, by its id within the tenant. It is sync:<group> for a sync group’s own events. It is source:<source> for an event the system <source> posted into the tenant. It is source:connect for Connect’s own events about the tenant. It is attendance for Time and Attendance’s own events.
groupThe endpoint’s sync group, by its id within the tenant. Every endpoint is in one: its own unless it names one. For a group’s own events, it is that group. Absent for an endpoint no longer set up, and for events of the other engine.
deviceThe device’s id: whatever its package identifies it by (a serial number, a MAC address, a cloud id). It is "" for a sync group’s own events and for job events about the whole job. For an event a system posted, it is what the event is about, as posted ("" when it named nothing). For Time and Attendance’s events, it is the person or timecard the event is about (below).
personConnect’s own id of the person the event is about (data.user_id) in its group. It is an opaque UUID. It is given when the person is first written. It is kept when their user id changes. It is new for a person deleted and written again. Present when the group keeps people and has the person.
packageThe package that read the record, name@version. For the gateway’s own events about a device, it is that device’s package. It is houradvantage-connect for the events of a job or a sync group and for Connect’s events about the tenant. For an event a system posted, it is its source. It is houradvantage-attend for Time and Attendance’s own.
received_atWhen the gateway received it, RFC 3339 UTC. For the gateway’s own events, it is when it made them. It is not when the event happened: devices upload late, and again.
dataThe type’s fields.
person_idOnly to a sink with person_id, or one that speaks for a system (routes). It is the id, in the system the sink names, of the person the event is about (data.user_id). For a punch, it comes from its route. For any other event, it comes from the person’s external ids and routes as they are when it is sent. Absent when they have none there. Never in GET /api/tenants/{tenant}/events or the stream.
requestThe admin API request that caused the event, when one did (a change made through the API, an event posted through it). It holds its id. That is the X-Request-Id it was answered with. Its audit trail entry and log lines carry the same id. It holds its idempotency_key. That is the Idempotency-Key it was sent with, if any. It holds its user. That is whom the server named from its login or token (token:<name>), never as the caller says. An event posted through the API is attributable by it (request ids). Absent for an event no request caused: a device’s message, a job’s waves, Time and Attendance working a ledger out. A request id is for following a request only. The caller may have chosen it.

A field is in data only if this contract defines what it means, whatever the device. What a device said in its own terms is under data.vendor. Examples are a raw state or verify code, a privilege number, and a firmware’s extra fields. It is in an object with exactly one key naming the vendor or package:

"vendor": { "zk": { "state": 0, "verify": 1, "work_code": "7", "timezone": "America/Chicago" } }

The contract does not describe what is inside. Each package documents its own. For ZK, see the ZK package. What is inside may change with the package’s version. To work with any device, read only the neutral fields.

schema is the contract’s version. Within a version, changes are additive only:

  • new event types,
  • new optional fields in data or in the envelope,
  • new values where a field is described as open (state_name, verify_name, kind, role), but never a different meaning for an existing one.

Consumers must ignore fields and event types they do not know.

These changes make a new version:

  • Removing or renaming a field.
  • Changing a field’s type or meaning.
  • Making an optional field required.
  • Changing how ids are made.

A new version is announced in the release notes. The old version is not sent alongside it.

The schemas list every field of this version without forbidding others. So you can validate with them and keep working when fields are added.

An event’s id comes from what the event is. A device’s record is identified by its tenant, endpoint, device, type and the record itself. For a ZK upload, the record is the line the clock sent. For a BrightLink message, it is its msgId. So the same record in two tenants is two events with two ids.

The gateway’s own events are identified by what they report: the command (and its try, for a command sent again), the action, the device, or the job and its change. An event a system posted is identified by its source and the id it was posted with. Time and Attendance’s events are identified by what they are about. So the same event sent again has the same id.

  • The same record gives the same id: a device that uploads a punch again produces an event with the same id. That can happen after a lost reply, a reset upload position, or a query_punches. Upgrading a package keeps ids unless the release notes say its key changed.
  • Different records give different ids, including a changed record. A user renamed on the device is a new user event, not a duplicate.
  • What changes ids: renaming the endpoint, the device’s id or the event type. A package changing what it keys a record on also changes them (announced in its release notes). A device re-registered under another endpoint produces new ids for records it uploads again.
  • The data can change under the same id only through settings. A punch uploaded again after the endpoint’s timezone changed carries the new offset. Consumers that deduplicate keep the first.
  • The gateway does not deduplicate. A record a device uploads again is stored and delivered again, with the same id. Keep ids for as long as you need to recognise duplicates.
  • A message’s events are stored before the device is answered. They are stored in the order the package produced them (for an upload, the order of its lines).
  • Each sink is sent events in the order they were stored, at least once. A batch is sent again until the sink answers 2xx. So the same event can arrive more than once. Deduplicate on id.
  • Delivery is at least once, not exactly once. When a server fails over, the receiver can see events out of order. Deduplicate on id and order punches by data.time.
  • Order is per gateway, not per instant. Events are stored as devices deliver them. A device that was offline uploads old punches late. Order punches by time, not by arrival.
  • GET /api/tenants/{tenant}/events returns events in stored order with a next cursor. The stream (/api/tenants/{tenant}/stream) shows them as they happen, on every instance. It may skip.

Push: webhook sinks. A sink is POSTed {"events": [...]}, several events at a time. It must answer within 10 seconds. A request that fails is sent again, with growing pauses up to a minute apart, until the sink answers 2xx. Redirects are not followed.

Each sink is fed only these:

  • The endpoints that name it.
  • The sync groups that name it (for a group’s own events).
  • The sources it names in its sources. These are the systems that post into its tenant, and connect for Connect’s events about the tenant.

Of those, only the types it names are sent. With none named, the default set is sent. That is what an outside system acts on, without internal steps, operations detail or biometric data. Each type below says when it is sent only to a sink that names it.

A sink can also pick by field, keep only the latest of an event type, pace itself and cap its batches (sinks). A sink that is down holds up only itself.

Every request carries x-houradvantage-timestamp, the time it was sent in Unix seconds. A sink with a secret also gets x-houradvantage-signature: v1=<hex>. Here <hex> is the HMAC-SHA256 of the timestamp, a ., and the request body. It is keyed with the secret. Verify it and reject old timestamps.

Terminal window
hourctl sink add payroll --url https://example.com/hooks/clock --secret-env SINK_SECRET --event punch --event command.result
hourctl endpoint set office --sink payroll
hourctl sinks # each sink's events filter, signing, events behind, and state

An endpoint may name several sinks, or none. Its events are stored either way and can be pulled. hourctl sink position moves a sink back to send events again, or forward to skip them (moving a sink).

Pull. GET /api/tenants/{tenant}/events?after=<next> returns stored events oldest first. It returns 100 at a time unless you pass limit (at most 1000). It gives a next to pass back as after (hourctl events --after N --follow keeps reading). The gateway does not track pull readers. Events are removed after retention_days whether or not you read them.

Filters. Besides endpoint, device and type, events are read by when they arrived and by person:

parameter
sinceReceived at or after this time (RFC 3339).
untilReceived before this time. Must be later than since.
user_idEvents whose data names this person ("user_id", as text or as a number).

On a large store, bound a user_id search with since, a device or a type. since and until narrow a search quickly. user_id is looked for only in the events the other filters leave.

Terminal window
hourctl events --type punch --user-id 7 --since 7d
hourctl events --since 2026-10-01T00:00:00Z --until 2026-10-02T00:00:00Z

--since and --until take an RFC 3339 time or a while ago (90s, 15m, 2h, 7d).

Retention. Events are removed a UTC day at a time. A day is removed once two things are true. It is older than retention_days (30). And every sink has taken what it wants from it. An event a sink has not taken is never removed for its age. A sink that is down, refusing or paused loses nothing. It is told of with sink.behind and sink.caught_up. Only an operator moving the sink ahead lets such events go (sink.moved; retention).

Any system (an ERP, a scheduling app, another install) posts events into a tenant, for the tenant’s sinks to deliver. Use POST /api/tenants/{tenant}/events with a connect:<tenant> token into a Connect tenant. Use POST /api/attendance/tenants/{tenant}/events with an attend:<tenant> token into a Time and Attendance tenant. The commands are hourctl event post and hourctl attend event post.

Each event names its source, the system that sends it. It also names an id its source gives no other event. Posted again with the same source and id, it is taken once (posting events).

Kept, a posted event is an event of the tenant in this envelope:

  • Its endpoint is source:<source>.
  • Its package is the source.
  • Its device is the one posted.
  • Its received_at is when it was kept.
  • Its id is 32 hex digits made from the source and the id posted.
  • Its type and data are as posted.

It is sent to the tenant’s sinks that name the source in their sources, and to the install-level sinks of that engine.

The source connect is Connect’s own. No system posts as it. Connect keeps its events about a tenant as a whole under it (package.updated, sink.behind, sink.caught_up, sink.moved). So a tenant’s sink naming connect in its sources is sent them.

Devices record wall-clock time. Every punch carries:

field
local_timeWhat the device showed, YYYY-MM-DD HH:MM:SS.
utc_offsetThe offset from UTC at that moment, +HH:MM.
timeThe instant, RFC 3339 with that offset.
dst_ambiguoustrue when the device’s time happens twice in the zone or never. It happens twice in the hour after daylight saving ends. It never happens in the hour skipped when daylight saving starts. A time that happens twice is taken as the first, with the offset in force before the change. So the instant may be an hour out. A skipped time is placed forward over the gap: utc_offset, time and zoned read 03:30 for 02:30. local_time stays what the device showed. Check these punches by hand before you pay on them.
time_zoneThe zone the time was placed in. It is an IANA name (America/Chicago), or the offset (-07:00) when the device states only an offset.
zonedThe instant with its zone, RFC 9557. It is time followed by [time_zone] (2026-10-01T08:00:00-05:00[America/Chicago]).
offset_statedtrue when the device stated the offset the time was made under. Absent or false when the endpoint’s zone gave it. A device that states its offset is never told as a clock behind.
clock_behind_secondsAdded by the gateway while the device’s clock is behind. It is by how many seconds, as first told. It goes on the punches of a message that is not on time. The time is as the clock reported it.

A device that states its offset (BrightLink does, in each timestamp) is taken at its word. For one that sends wall-clock time alone, its package declares a required timezone endpoint option and places each time in it. The option is a zone name such as America/Chicago, or a fixed offset such as -05:00. ZK clocks are such devices.

The gateway never falls back to its host’s zone. A package cannot place a wall-clock time without a zone. Zone rules come from the IANA time zone database bundled into the binary, never the host’s. hourd --version and GET /api/instance name its release. See time zone rules.

Other device times in data are passed on as the device wrote them, with no zone. These are the local_time of device.log, user.deleted, biometric.deleted and biometric.attestation, and a user’s valid_from and valid_to.

biometric, biometric.photo, user.photo, photo and id_card events carry biometric templates, face photos or identity documents. In many places, collecting them needs the employees’ written consent and a published retention and destruction policy first (Illinois BIPA, GDPR art. 9). Biometric data is the whole of how Hour Advantage handles them. For consumers, this is what matters:

  • The gateway drops these types before they are stored unless the endpoint sets biometrics = true, whatever its package does. A package that sends them by mistake has them dropped too.
  • A person not allowed biometrics (their flag in their group, which every endpoint has). Their biometric, biometric.photo and user.photo events are dropped. They are dropped before they are stored, sent to a sink or taken into the group. This holds whatever the endpoint and its package do. The device is sent the delete, and a biometric.refused event says so. Refusing someone who was allowed removes their events of those types from the event log, delivered or not.
  • Any endpoint can set drop_events = ["user", "photo", ...]. Events of those types are dropped before they are stored. So they never reach the database, the API or a sink. Types match exactly. It applies to the package’s events, command.result, action.result and job events. The gateway’s other events are always kept: command.unanswered, device.new, device.joined, device.blocked, device.held, device.released, device.set_aside.expired, biometric.refused.
  • Kept events stay in the database for retention_days, and longer while a sink has not taken them. A sink without an events filter is not sent biometric, biometric.deleted, biometric.photo, user.photo, user.extended, photo or id_card. Only a sink that names them receives them.
  • In the traffic log’s query and body, a device’s key, right or wrong, is replaced by its size (<redacted N bytes>). See device keys in the traffic log.
  • Command parameters a package marks sensitive are kept and shown only as <redacted N bytes>. Those are passwords, keypad PINs, card numbers, templates, photos and device keys. They are shown that way in the audit trail, the command history, the stream, and the stored command once the device has it. A command whose answer the package marks sensitive (ZK get_file) keeps only its size once its command.result event is stored. That event carries the answer. Where the endpoint drops command.result, the command keeps the whole answer, since it is then the only place the answer is.
  • Passwords and keypad PINs are never in events. user says only has_password and has_keypad_pin.
  • The traffic log (/api/tenants/{tenant}/traffic) and the live wire capture (hourctl wire, never stored) show what devices send, templates included. The traffic log holds each instance’s last 1000 messages, with up to limits.traffic_body_bytes of each body. That is 16 KiB by default. Set traffic_body_bytes = 0 where that matters.

A user punched in or out at a device. It is sent by the device’s package for every attendance record the device uploads. That is each ATTLOG line for zk-push 2.0, 2.4 and 3.4, and each punch message for brightlink-cloud. This includes records uploaded again, which keep their id. user_id, local_time, utc_offset, time, dst_ambiguous, time_zone and zoned are always there. The other fields are there when the device reports them. The gateway adds a sync object in either of two cases. The device’s sync group keeps punches. Or it keeps people and its placement does not put the user on this device.

Where the punching person’s group keeps people, the gateway routes the punch. data.route (system, tenant, person_id, codes) is where it went. It is its person’s one route or the one the endpoint’s policy picked. data.candidates, in its place, lists every route when the policy passed them on for a receiver that resolves them itself. A sink that speaks for a system is sent only the punches routed to it, with person_id in the envelope. A punch with no route has neither. One set aside has a punch.unrouted saying why. A punch routed later through the API is the same punch, sent again with the same id and its route.

Fields: the punch schema.

{
"user_id": "1001",
"local_time": "2026-01-15 08:00:00",
"utc_offset": "-06:00",
"time": "2026-01-15T08:00:00-06:00",
"dst_ambiguous": false,
"time_zone": "America/Chicago",
"zoned": "2026-01-15T08:00:00-06:00[America/Chicago]",
"state_name": "check_in",
"verify_name": "fingerprint",
"work_code": "7",
"vendor": {
"zk": {
"state": 0,
"verify": 1,
"work_code": "7",
"timezone": "America/Chicago"
}
}
}

A photo the device took when someone tried to punch. The device uploads it. In zk-push 2.0, 2.4 and 3.4, it comes from the ATTPHOTO table. It is personal data. The gateway drops it before it is stored unless the endpoint sets biometrics = true.

Sent only to a sink that names photo in its events. It is not in the default set.

Fields: the photo schema.

{
"user_id": "1001",
"verified": true,
"photo_id": "20260115080000-1001",
"jpeg_base64": "/9j/4AAQSkZJRg=="
}

A user record on the device. It is uploaded when the user is added or changed on the device, or on request. In zk-push 2.0, 2.4 and 3.4, these are USER rows, for instance in answer to query_user. A changed record is a new event with a new id. Only user_id is always there. A field the device does not report is absent. Passwords and keypad PINs are never passed on, only whether the user has one.

Fields: the user schema.

{
"user_id": "1001",
"name": "Ana Diaz",
"cards": [
{
"number": "12345678"
}
],
"groups": [
"1"
],
"role": "user",
"has_password": false,
"vendor": {
"zk": {
"privilege": 0,
"timezones": "0000000000000000",
"verify_mode": 0
}
}
}

A user was deleted on the device, at its menu or by a command. zk-push 2.0, 2.4 and 3.4 send it for each user-deleted row of the device’s operation log, alongside that row’s device.log event. On first contact a device uploads its whole log. A delete from before the device first reached the gateway is not sent as a user.deleted event. Its device.log row still is.

Fields: the user.deleted schema.

{
"user_id": "1001",
"local_time": "2026-01-15 08:00:00"
}

A user’s enrolment (display) photo. The device uploads it when it is added or changed, or on request. In zk-push 2.0, 2.4 and 3.4, these are USERPIC rows. It is personal data. The gateway drops it before it is stored unless the endpoint sets biometrics = true. It also drops it for a person whose sync group does not allow them biometrics (see biometric.refused).

Sent only to a sink that names user.photo in its events. It is not in the default set.

Fields: the user.photo schema.

{
"user_id": "1001",
"file_name": "1001.jpg",
"jpeg_base64": "/9j/4AAQSkZJRg=="
}

A user’s extended verification settings. The device uploads them when they change or on request. In zk-push 2.4 and 3.4, these are USEREXTINFO rows. In zk-push 2.4, they also come in answer to query_user_extended.

Sent only to a sink that names user.extended in its events. It is not in the default set.

Fields: the user.extended schema.

{
"user_id": "1001",
"recheck_seconds": 60,
"lockout_override": false,
"fp_threshold_1to1": "0"
}

A biometric template a user has on the device. It is a fingerprint, face, palm or finger vein, in the form the set_biometric action takes back. Emitted by zk-push (2.0, 2.4 and 3.4) when the clock uploads a template. That happens after an enrolment at the device, or in answer to query_users, query_user or another query. It is biometric data. It is dropped unless the endpoint collects biometrics. It is also dropped for a person their sync group does not allow biometrics (see biometric.refused).

Sent only to a sink that names biometric in its events. It is not in the default set.

Fields: the biometric schema.

{
"user_id": "1001",
"kind": "fingerprint",
"index": 6,
"valid": true,
"duress": false,
"format": "zk:fingerprint:10",
"template": "TVNTUzIx"
}

Templates of a user were deleted on the device. That is one template (kind and index given), every template of a kind (kind only), or all of the user’s templates (neither). Emitted by zk-push (2.0, 2.4 and 3.4) for a fingerprint delete in the operation log the clock uploads (operation 10, beside its device.log event). The log names the user but not the finger. So kind is fingerprint and index is absent. A delete from before the device first reached the gateway is replayed when the device uploads its whole log on first contact. No event is sent for it. Its device.log row still is.

Sent only to a sink that names biometric.deleted in its events. It is not in the default set.

Fields: the biometric.deleted schema.

{
"user_id": "1001",
"kind": "fingerprint",
"local_time": "2026-10-01 08:00:00"
}

The photo a user’s face or palm template was enrolled from. Emitted by zk-push 2.4 when the clock uploads it. That happens after an enrolment at the device, or in answer to query_users or query_user. It is biometric data. It is dropped unless the endpoint collects biometrics. It is also dropped for a person their sync group does not allow biometrics (see biometric.refused).

Sent only to a sink that names biometric.photo in its events. It is not in the default set.

Fields: the biometric.photo schema.

{
"user_id": "1001",
"kind": "face",
"index": 0,
"file_name": "1001.jpg",
"jpeg_base64": "/9j/4AAQSkZJRg==",
"vendor": {
"zk": {
"type": 2
}
}
}

A user’s answer to the device’s biometric consent question. Emitted by zk-push 3.4 when the clock uploads a consent record. The clock does this after the user answers the question at the device. It is not biometric data itself. It is kept whether or not the endpoint collects biometrics.

Fields: the biometric.attestation schema.

{
"user_id": "1001",
"consent": "given",
"name": "Ana Diaz",
"local_time": "2026-10-01 08:00:00",
"vendor": {
"zk": {
"finger_result": 1,
"verify_time": "2026:10:01 08:00:00"
}
}
}

A national identity card read at the device’s card reader. Emitted by zk-push 2.4 when the clock uploads the card it read. Every field is passed on as the device sent it, as text. It is "" when the device sent nothing for it. photo, fingerprint_1 and fingerprint_2 are the card’s portrait and fingerprint templates. They are biometric data, dropped unless the endpoint collects biometrics.

Sent only to a sink that names id_card in its events. It is not in the default set.

Fields: the id_card schema.

{
"user_id": "1001",
"name": "Ana Diaz",
"id_number": "ID-0000-0000",
"serial": "SN-0001",
"dn_number": "",
"gender": "2",
"nation": "1",
"birthday": "19900101",
"valid": "2020010120300101",
"address": "1 Example Road",
"issuer": "Example Office",
"additional": "",
"photo": "SlBFRw==",
"fingerprint_1": "",
"fingerprint_2": ""
}

A row of the device’s own operation log. Rows cover power, menu use, enrolments, deletes, settings, alarms and door events. Emitted by zk-push (2.0, 2.4 and 3.4), one per row of the operation log the clock uploads. On first contact it uploads the whole log. A row recording a deleted user or deleted fingerprints also gives a user.deleted or biometric.deleted event. The exception is a delete from before the device first reached the gateway.

Sent only to a sink that names device.log in its events. It is not in the default set.

Fields: the device.log schema.

{
"local_time": "2026-10-01 08:00:00",
"kind": "user_deleted",
"actor_id": "0",
"subject_id": "1001",
"vendor": {
"zk": {
"code": 9,
"objects": [
"1001",
"0",
"0",
"0"
]
}
}
}

A work code the device holds. It is one of the codes a user can enter with a punch (punch’s work_code). Emitted by zk-push 2.4, one per code, when the clock uploads its work codes in answer to query_work_codes.

Sent only to a sink that names work_code in its events. It is not in the default set.

Fields: the work_code schema.

{
"code": "7",
"name": "Overtime"
}

Something the device could not do with what it was sent (a command, or data it was given), as the device reports it in its error log. Emitted by zk-push 2.4, one per error row the clock uploads.

Sent only to a sink that names device.error in its events. It is not in the default set.

Fields: the device.error schema.

{
"code": "-1",
"message": "template invalid",
"command_id": "42",
"vendor": {
"zk": {
"origin": "cmd",
"detail": ""
}
}
}

Options read from the device, named as the device names them. Emitted by zk-push 2.4 when the clock answers the get_options command. It comes beside the command’s command.result, whose result carries the same values as text.

Sent only to a sink that names device.options in its events. It is not in the default set.

Fields: the device.options schema.

{
"command_id": "42",
"options": {
"VOLUME": "70",
"LockOn": "10"
}
}

A record the package could not interpret. It is passed on as the device sent it instead of being dropped. The device was told it was received and will not send it again. It is sent in these cases:

  • zk-push 2.0, 2.4 and 3.4 send it for an upload line they cannot read. The cases are a punch whose time cannot be read, a row that names no user, and a row the package does not know.
  • brightlink-cloud sends it for a punch message without a usable userId or with a time it cannot place.
  • The MQTT listener sends it for a message no route of the package takes, when its tenant has as many messages set aside as it may. raw is then the message as it came, its first 16 KiB. context.topic is its topic.

Fields: the unparsed schema.

{
"reason": "a punch whose time cannot be read",
"raw": "1001\tyesterday\t0\t1",
"context": {
"table": "ATTLOG"
}
}

The gateway’s own event: a device answered a command. The gateway emits one for each answer to a command it still has open, as the device’s package reads it from the device’s message. A repeated answer, or one for a command the gateway does not know, gives none. A command the device asks to have sent again (“not yet”) is answered once per try. Each answer is its own event. An answer that comes after the command was reported unanswered (command.unanswered) still gives one. The envelope’s endpoint, device and package are the device’s.

Sent only to a sink that names command.result in its events. It is not in the default set.

Fields: the command.result schema.

{
"command_id": 42,
"action": "add_user",
"ok": true,
"code": 0,
"result": ""
}

The gateway’s own event: a command handed to a device was lost. The gateway emits it once per command. The step goes unanswered, which fails its action (action.result). A command is lost in any of these cases:

  • Its package names it missed (M.missed): for example a later write was answered, or the device restarted.
  • An app gave up on it (cancelling its action with give_up).

A command is never lost by how long it takes: no answer within any time is not a reason. A package that says a lost write is safe to hand out again has it handed out once more, without this event. Lost twice, it is unanswered. An answer that comes later still completes the command and gives a command.result. The envelope’s endpoint, device and package are the device’s.

Sent only to a sink that names command.unanswered in its events. It is not in the default set.

Fields: the command.unanswered schema.

{
"command_id": 42,
"action": "reboot",
"sent_at": "2026-01-15T08:00:00Z"
}

The gateway’s own event: an action finished. An action is an ordered group of commands, its steps, for one device. The gateway emits it once per action, stored in the same write as the change that finished it. These changes finish an action:

  • The answer to its last step (ok).
  • An answer that failed a step, or a step going unanswered (failed). The steps not yet handed out are skipped and never go.
  • A cancel (cancelled) or expiry (timed_out) that took back steps not yet handed out.

An action that stopped at a gate says which (gate_step) and why (reason). A gate that did not pass also holds the device (device.held). Each step still has its own command.result. A step handed out before the action ended reports that way after it. The envelope’s endpoint and device are the device’s, and package is the package that built the action.

Fields: the action.result schema.

{
"action_id": 7,
"action": "upsert_user",
"outcome": "failed",
"steps": [
{
"step": 1,
"command_id": 41,
"action": "add_user",
"status": "succeeded",
"code": 0
},
{
"step": 2,
"command_id": 42,
"action": "add_fingerprint",
"status": "failed",
"code": -5
},
{
"step": 3,
"command_id": 43,
"action": "set_user_photo",
"status": "skipped"
}
],
"failed_step": {
"step": 2,
"command_id": 42,
"action": "add_fingerprint",
"status": "failed",
"code": -5,
"result": ""
},
"reason": "step 2 (add_fingerprint) failed: the device answered -5"
}

The gateway’s own event: a device sent templates or photos of a person whose sync group does not allow them biometrics (allow_biometrics is false). The templates or photos are biometric, biometric.photo or user.photo events. Those events are dropped before they are stored, sent to a sink or taken into the group. The device is sent the package’s delete in the urgent lane (that action reports with its own action.result). The gateway emits one per person and event type in the message, once the message is kept. The envelope’s endpoint, device and package are the device’s.

Sent only to a sink that names biometric.refused in its events. It is not in the default set.

Fields: the biometric.refused schema.

{
"user_id": "1001",
"kind": "biometric",
"count": 2,
"reason": "the person is not allowed biometrics (allow_biometrics is false in their group)",
"action_id": 812
}

The gateway’s own event: a device the gateway did not know contacted an endpoint and registered itself. The gateway emits it once, when it adds the device to its register. The device is allowed when the endpoint’s new_devices is allow, and pending when it is hold. An endpoint whose new_devices is refuse keeps no record of the device and emits nothing. A device registered through the API or hourctl gives no device.new. The envelope’s endpoint and package are the endpoint’s, and device is the device’s id.

key_presented says whether the device presented a key on its first call: none, or unregistered. Unregistered means a key the gateway holds nothing for the device to check against. The key itself is never in the event. The device’s key_presented says where it stands later. An allowed device that brought a key can be given it as its own (adopt_presented_key). A pending device’s is held with it.

Fields: the device.new schema.

{
"device_id": 17,
"status": "pending",
"remote_ip": "192.0.2.10",
"key_presented": "none"
}

The gateway’s own event: a gate step of an action did not pass, so the device is held. The device’s answer failed it, or it went unanswered. Nothing more is handed to the device, on any lane, until it is released by hand (POST /api/tenants/{tenant}/devices/{endpoint}/{device}/release, hourctl device release; see device.released). What the device sends is taken in as usual. The gateway emits it once per hold. It is stored in the same write as the action’s action.result, which has the same reason and its gate_step. Endpoints cannot drop it (drop_events). The envelope’s endpoint and device are the device’s, and package is the package that built the action.

Fields: the device.held schema.

{
"reason": "gate step 2 (query_user) of action 7 (upsert_user) did not pass: the device answered -1 (no such user)",
"action_id": 7,
"action": "upsert_user",
"step": 2,
"command_id": 42,
"command": "query_user"
}

The gateway’s own event: a held device (device.held) was released by hand (POST /api/tenants/{tenant}/devices/{endpoint}/{device}/release, hourctl device release). The gateway emits it once per release. What waits for the device goes out again or, with drop_queued, is cancelled. Each action dropped has its own action.result. Its outcome is cancelled, or timed_out when it was past its expiry. Its reason is “dropped when the device’s hold was released: ”. Endpoints cannot drop it (drop_events). The envelope’s endpoint and device are the device’s, and package is its endpoint’s package.

Fields: the device.released schema.

{
"reason": "user re-added by hand",
"by": "admin",
"held_reason": "gate step 2 (query_user) of action 7 (upsert_user) did not pass: the device answered -1 (no such user)",
"held_at": "2026-01-15T08:00:00Z",
"action_id": 7,
"drop_queued": true,
"dropped_actions": [
8,
9
]
}

The gateway’s own event: a device that was allowed or waiting to be allowed was blocked (PATCH /api/tenants/{tenant}/devices/{endpoint}/{device} with status blocked, hourctl device block). The gateway emits it once per block, with an event id of that change. From then on nothing the device sends is taken in and nothing is sent to it: no reply, command, people list, PIN or template. What is queued for it waits. Connect cannot stop the device reaching the network or the MQTT broker. Your own systems revoke what the device connects with, on this event (its broker credential, its client certificate, its address in a firewall). See blocking a clock. Endpoints cannot drop it (drop_events). The envelope’s tenant, endpoint and device name the device, and package is its endpoint’s package.

Fields: the device.blocked schema.

{
"device_id": 17,
"was": "allowed",
"transport": "mqtt",
"topic": "clocks/CK1234/up",
"reply_topic": "clocks/CK1234/down",
"remote_ip": "mqtt"
}

The gateway’s own event: a device joined its tenant and its endpoint’s sync group. It is told when the device is allowed for the first time. That is when it is registered as allowed. It is also when it is allowed after waiting (PATCH /api/tenants/{tenant}/devices/{endpoint}/{device} with status allowed). And it is when it is added as it called in at an endpoint that lets strangers in (new_devices = "allow"). It is told once per device, with an id of the device’s own. Allowed again after being blocked, it has not joined again. The endpoint’s policy package’s joined hook is called after it is stored. The envelope’s tenant, endpoint, group and device name the device, and package is its endpoint’s package.

Fields: the device.joined schema.

{
"device_id": 17,
"group": "hq"
}

The gateway’s own event: an allowed device moved to another sync group, because its endpoint’s group was changed (its sync_group set, changed or taken away). It is told for each allowed device of the endpoint, once, with an id of the device’s and the change’s own. The device joins the new group as a fresh member (sync groups). The endpoint’s policy package’s moved hook is called after it is stored. The envelope’s tenant, endpoint and device name the device. Group is the group it is in now. from.group is the one it was in.

Fields: the device.moved schema.

{
"device_id": 17,
"from": {
"group": "hq"
},
"group": "plant-7"
}

The gateway’s own event: a device was first seen with its clock set ahead, because a punch it sent was made more than tolerance_seconds (5 minutes) after the moment it reached the gateway. It is told once, when the device is first seen so. While it keeps sending such punches nothing more is told. When a message of its punches comes with none ahead, the status is cleared, so a later fault is told again. While it is ahead the device’s info says so (clock_ahead: since and by_seconds). Its punches from the future are marked clock_ahead in their sync object and kept out of the person’s punch state and zone state (a clock set ahead). The envelope’s tenant, endpoint, group and device name the device.

Fields: the device.clock_ahead schema.

{
"by_seconds": 31536000,
"tolerance_seconds": 300
}

The gateway’s own event: a device was first seen with its clock behind. The punches of its uploads, as the endpoint’s zone placed them, were made more than tolerance_seconds (5 minutes) before they reached the gateway. The amounts were within tolerance_seconds of one another. This was so for longer than that amount. A clock that keeps standard time through daylight saving is an hour behind. A device that states its offset in every timestamp is never told so. It is told once, when the device is first seen so. When a message of its punches comes on time, the status is cleared, so a later fault is told again. While it is behind, the device’s info says so (clock_behind: since and by_seconds). The punches of its messages that are not on time carry clock_behind_seconds. They are kept as reported. The envelope’s tenant, endpoint, group and device name the device.

Fields: the device.clock_behind schema.

{
"by_seconds": 3610,
"tolerance_seconds": 300,
"least_lag_seconds": 3610,
"greatest_lag_seconds": 3612,
"late_since": "2026-10-03T17:00:10Z",
"late_for_seconds": 3900,
"punches": 1,
"daylight_saving_hour": true
}

The gateway’s own event: a device came back after an absence longer than its endpoint’s back_after_minutes. It is told once, when the device is let in again, with an id of the device’s and the sighting’s own. A return is told when the device calls. A device’s last sighting is recorded at most every 5 minutes, so set back_after_minutes well above that. The endpoint’s policy package’s back hook is called after it is stored. The envelope’s tenant, endpoint, group and device name the device.

Fields: the device.back schema.

{
"device_id": 17,
"last_seen": "2026-09-28T17:02:11Z",
"absent_for": 864000
}

The gateway’s own event: MQTT messages of a device, set aside, were kept longer than limits.set_aside_days and dropped without being taken in. They were set aside because what they waited for could take long. That is the device waiting to be allowed, registered or to present its key, its package failing on them, its endpoint or tenant stopped, or its tenant full. One event is sent for each device each time messages are dropped, saying how many. What the messages carried is never in it. The envelope’s tenant, endpoint and device name where they came from. The device is empty when the package could not tell which device sent them. Package is the endpoint’s package (houradvantage when the endpoint is gone).

Fields: the device.set_aside.expired schema.

{
"count": 3,
"set_aside_days": 7
}

The gateway’s own event: a punch of a person of a group that keeps people goes nowhere until it is routed (routes). reason says why:

  • no_route: routing is in use for the endpoint and the person has no route.
  • unknown_person: the group does not have whoever punched.
  • ambiguous: several routes, and the endpoint has no policy to decide.
  • policy: the policy’s route hook left it unrouted.
  • policy_failed: the hook failed. A policy.hook_failed says what failed.

The punch itself was stored as a punch event as any punch is, without a route. A sink that names no system is sent it. A sink that speaks for a system is not. It is kept aside, whatever its age, until it is routed through the API (POST /api/tenants/{tenant}/sync/{group}/unrouted/{id}/route, hourctl unrouted route, or a route added to the person). Then it is sent again with the same id and its route. It is told once per punch and reason, with an id of the punch’s and the reason’s own. The envelope’s endpoint and device are the punch’s.

Fields: the punch.unrouted schema.

{
"punch": "0f3c2a9b8d7e6f5a4b3c2d1e0f9a8b7c",
"user_id": "1001",
"reason": "ambiguous",
"candidates": [
{
"system": "attendance",
"tenant": "agency-a",
"person_id": "11"
},
{
"system": "attendance",
"tenant": "agency-b",
"person_id": "22"
}
],
"time": "2026-10-07T13:00:00Z"
}

The gateway’s own event: an endpoint’s policy package hook failed, or said to do what could not be done. A hook fails when its code raised an error, ran out of its limits, or returned what a hook may not. A hook said to do what could not be done when it named one of these:

  • An action that could not be started.
  • A command that could not be queued.
  • A job that could not be made.
  • An action or command that writes what the device’s sync group keeps.

Nothing of what failed is done. What the hook said that could be done is, and the moment’s own event is stored either way. This is the policy’s answer. It is for the builder to act on through their own systems: alert, open a ticket, fix the package and route the punch through the API.

hook is joined, moved, back, enrolled or route. about is the id of the event it was about: the device.joined, device.moved, device.back or person.enrolled event, or the punch for route. package and version are the policy package that ran it. error is what went wrong.

It is told once for the hook and what it was about. The route hook is the one asked again for the same moment. Each time a punch set aside is worked out again (hourctl unrouted route, or a change to its person’s routes) is a new attempt. Each attempt that fails is told with an id of its own, so no failure goes untold: one event per failing punch per attempt, never more. repeat, true, says the attempt before it failed too, so a sink can count the repeats or alert only on the first. The envelope’s endpoint and device are the moment’s (for route, the punch’s).

Fields: the policy.hook_failed schema.

{
"hook": "joined",
"about": "0f3c2a9b8d7e6f5a4b3c2d1e0f9a8b7c",
"package": "clock-lifecycle",
"version": "1.0.1",
"error": "runtime error: main.lua:4: attempt to index a nil value (field 'labels')",
"repeat": false
}

Connect keeps these events under its own source, connect. In the envelope, the endpoint is source:connect of the tenant they are about. For an install-level sink, it is the default tenant’s. The device is "". The package is houradvantage-connect.

A tenant’s sink is sent these events by naming connect in its sources. Install-level sinks are sent all of them.

Time and Attendance tells the same of its own packages and sinks in its own log. There the endpoint is attendance, the package is houradvantage-attend, and the device is the tenant’s id. data.tenant is the tenant.

A change made a tenant take another version of a policy package. There are three kinds of change:

  • Publishing a version of a shared package that a tenant following its major version takes from then on. One event goes to each such tenant. A tenant pinning a version gets none.
  • Activating a revision of a tenant’s own package. The event goes to the tenant.
  • In Connect, a tenant adopting a shared package or changing what it adopted. The event goes to the tenant.

The change is never made without this event. Each change gives an id of its own.

  • package is the name as the tenant names it.
  • shared is whether it is a shared package the tenant adopted.
  • from is the version it took before (null: none).
  • to is the version it takes now.
  • revision is the revision activated.
  • In Time and Attendance, effective is the workday the version is in force from (absent: from the beginning). From that day the tenant’s people are worked out again (policy packages).

Fields: the package.updated schema.

{
"package": "overtime",
"shared": true,
"from": "2.3.1",
"to": "2.4.0",
"revision": 5
}
{
"tenant": "franchisee-12",
"package": "franchise",
"shared": true,
"from": "2.0.0",
"to": "2.1.0",
"revision": 2,
"effective": "2026-11-02"
}

In Time and Attendance: a published version of a shared package needs something that a tenant following it has not set up. It can be, for example, an accrual category or a measure its steps read by name. The tenant stays on the version it has. The package’s status says why (held at 1.0.0: version 1.1.0 needs accrual category rtt).

  • from is the version it stays on (null: none in force).
  • to is the version it waits for.
  • missing is what it lacks.

Nothing is worked out again. When the tenant sets up what is missing, it moves on at once and is sent package.updated.

Fields: the package.held schema.

{
"tenant": "acme",
"package": "leave",
"shared": true,
"from": "1.0.0",
"to": "1.1.0",
"revision": 3,
"missing": ["accrual category rtt"]
}

A sink fell behind retention. That means it has not taken events older than retention_days. These are whole UTC days that ended before then, as cleanup counts them.

Such events are never removed for their age. They are kept until the sink takes them, or until an operator moves the sink past them (sink.moved).

A sink that is down, refusing, paused (its tenant suspended) or forgotten makes the log grow. This event says so.

Sinks are checked hourly. This event is sent once, when the sink falls behind. It is not sent again while the sink stays behind. sink.caught_up follows once it has taken them.

  • oldest_waiting_at is when the oldest was received.
  • retention_days is the install’s setting when it was found.

A sink that is down is not sent the event about itself until it takes what came before it (retention).

Fields: the sink.behind schema.

{
"sink": "payroll",
"oldest_waiting_at": "2026-09-28T08:00:00Z",
"retention_days": 30
}

A sink that was behind retention (sink.behind) no longer is. It has taken every event older than retention_days, or an operator moved it past them.

This event is sent once, from the hourly check. Falling behind again later is a new sink.behind. behind_since is the oldest_waiting_at its sink.behind said.

Fields: the sink.caught_up schema.

{
"sink": "payroll",
"behind_since": "2026-09-28T08:00:00Z"
}

An operator moved a sink by hand (POST .../sinks/{id}/position, hourctl sink position). The sink can be moved back, to have it sent events again. Or it can be moved ahead, skipping what it has not taken.

Moving a sink ahead is the only way an event leaves the log before every sink it is for has taken it. That is the operator’s decision. This event reports it, as well as the audit trail. The events it skipped are removed once no other sink waits for them.

  • from is the position of the last event it had before.
  • to is the one it was moved to. The next event it is sent is the first after it.

Each move is its own event, with an id of its own.

Fields: the sink.moved schema.

{
"sink": "payroll",
"from": 3950,
"to": 4181
}

The gateway sends these for a job, with package "houradvantage-connect".

A job’s own events (job.started, job.wave and the rest) go to every endpoint the job has devices on, with device "". A device’s events (job.execution.*) go to its endpoint, with its device.

An endpoint drops any of them it names in drop_events.

Each device’s action also has its usual action.result, with origin "job:<id>".

Of the job events, a sink that names no events is sent only job.paused and job.completed. The rest go only to a sink that names them.

A job was created. The gateway sends it once, when the job is created (POST /api/tenants/{tenant}/jobs), before any device starts. State is running, wave is 0 and every device is queued. A job whose targets match no device sends no events. Envelope: endpoint is one of the endpoints the job has devices on. One event goes to each. device is "". package is “houradvantage-connect”. Each change to the job gives a new id.

Sent only to a sink that names job.started in its events. It is not in the default set.

Fields: the job.started schema.

{
"job_id": 7,
"name": "volume",
"action": "set_settings",
"state": "running",
"wave": 0,
"waves": 3,
"counts": {
"queued": 13,
"waiting_window": 0,
"running": 0,
"succeeded": 0,
"failed": 0,
"timed_out": 0,
"cancelled": 0
}
}

A job was paused. The gateway sends it when a running job is paused by hand (POST /api/tenants/{tenant}/jobs/{id}/pause) or by its abort threshold. reason says which.

While the job is paused, no device starts. Devices already running go on to their end. Envelope: endpoint is one of the endpoints the job has devices on. One event goes to each. device is "". package is “houradvantage-connect”. Each change to the job gives a new id.

Fields: the job.paused schema.

{
"job_id": 7,
"name": "volume",
"action": "set_settings",
"state": "paused",
"wave": 1,
"waves": 3,
"counts": {
"queued": 7,
"waiting_window": 0,
"running": 1,
"succeeded": 3,
"failed": 1,
"timed_out": 1,
"cancelled": 0
},
"reason": "abort threshold: 2 of 5 finished devices failed or timed out (abort at 20%)"
}

A job runs again. The gateway sends it in two cases:

  • A paused job is resumed (POST /api/tenants/{tenant}/jobs/{id}/resume).
  • POST /api/tenants/{tenant}/jobs/{id}/retry-failed takes the failed and timed-out devices of a completed job again. They are queued, each with its attempt raised by one.

After a resume, the abort threshold pauses the job again only on a new failure. Envelope: endpoint is one of the endpoints the job has devices on. One event goes to each. device is "". package is “houradvantage-connect”. Each change to the job gives a new id.

Sent only to a sink that names job.resumed in its events. It is not in the default set.

Fields: the job.resumed schema.

{
"job_id": 7,
"name": "volume",
"action": "set_settings",
"state": "running",
"wave": 1,
"waves": 3,
"counts": {
"queued": 7,
"waiting_window": 0,
"running": 1,
"succeeded": 3,
"failed": 1,
"timed_out": 1,
"cancelled": 0
}
}

A job moved on to a later wave. The gateway sends it in two cases:

  • Every device of the current wave succeeded and the rollout advances by itself (advance “auto”, the default).
  • The job is told to advance (POST /api/tenants/{tenant}/jobs/{id}/advance, running or paused).

Advancing by itself can pass several waves at once. The event gives the wave reached. Devices of the new wave start in the same step, so counts may already show them running. Envelope: endpoint is one of the endpoints the job has devices on. One event goes to each. device is "". package is “houradvantage-connect”. Each change to the job gives a new id.

Sent only to a sink that names job.wave in its events. It is not in the default set.

Fields: the job.wave schema.

{
"job_id": 7,
"name": "volume",
"action": "set_settings",
"state": "running",
"wave": 1,
"waves": 3,
"counts": {
"queued": 8,
"waiting_window": 0,
"running": 2,
"succeeded": 3,
"failed": 0,
"timed_out": 0,
"cancelled": 0
}
}

A job was cancelled. The gateway sends it when a running or paused job is cancelled (POST /api/tenants/{tenant}/jobs/{id}/cancel).

Devices that had not started are cancelled with it. The actions of devices running are taken back (steps not yet handed out never go). Each of those devices then reports its own end. A cancelled job never completes. Envelope: endpoint is one of the endpoints the job has devices on. One event goes to each. device is "". package is “houradvantage-connect”. Each change to the job gives a new id.

Sent only to a sink that names job.cancelled in its events. It is not in the default set.

Fields: the job.cancelled schema.

{
"job_id": 7,
"name": "volume",
"action": "set_settings",
"state": "cancelled",
"wave": 1,
"waves": 3,
"counts": {
"queued": 0,
"waiting_window": 0,
"running": 2,
"succeeded": 3,
"failed": 0,
"timed_out": 0,
"cancelled": 8
},
"reason": "cancelled by admin"
}

A job is over. The gateway sends it when every device of a running or paused job has finished (succeeded, failed, timed out or been cancelled).

POST /api/tenants/{tenant}/jobs/{id}/retry-failed takes its failed and timed-out devices again, and sends job.resumed. Envelope: endpoint is one of the endpoints the job has devices on. One event goes to each. device is "". package is “houradvantage-connect”. Each change to the job gives a new id.

Fields: the job.completed schema.

{
"job_id": 7,
"name": "volume",
"action": "set_settings",
"state": "completed",
"wave": 2,
"waves": 3,
"counts": {
"queued": 0,
"waiting_window": 0,
"running": 0,
"succeeded": 12,
"failed": 1,
"timed_out": 0,
"cancelled": 0
}
}

A job started a device. The gateway sends it when the job takes the device, just before it starts the device’s action. The job takes the device when its wave has started, max_concurrent leaves room and its window is open. Envelope: endpoint and device are the device’s. package is “houradvantage-connect”. Sent once per device and attempt.

Sent only to a sink that names job.execution.started in its events. It is not in the default set.

Fields: the job.execution.started schema.

{
"job_id": 7,
"name": "volume",
"action": "set_settings",
"state": "running",
"wave": 0,
"attempt": 1
}

A job’s device succeeded. The gateway sends it when the device’s action finished with every step done. Envelope: endpoint and device are the device’s. package is “houradvantage-connect”. Sent once per device and attempt.

Sent only to a sink that names job.execution.succeeded in its events. It is not in the default set.

Fields: the job.execution.succeeded schema.

{
"job_id": 7,
"name": "volume",
"action": "set_settings",
"state": "succeeded",
"wave": 0,
"attempt": 1,
"action_id": 42
}

A job’s device failed. The gateway sends it in these cases:

  • The device’s action failed (a step failed or went unanswered).
  • The action could not be started.
  • The action is no longer kept.
  • The device is held (its action is then taken back).

detail says which. A failed device counts toward the abort threshold, and retry-failed takes it again. Envelope: endpoint and device are the device’s. package is “houradvantage-connect”. Sent once per device and attempt.

Sent only to a sink that names job.execution.failed in its events. It is not in the default set.

Fields: the job.execution.failed schema.

{
"job_id": 7,
"name": "volume",
"action": "set_settings",
"state": "failed",
"wave": 0,
"attempt": 1,
"action_id": 42,
"detail": "step 1 (set_option) failed: the device answered -5"
}

A job’s device ran out of time. The gateway sends it when the device’s action did not finish within the job’s timeout. The timeout is counted from when the action was started. It is one hour unless the job says.

In that case the action expired. Or, with steps handed out and still unanswered a minute after that, it was taken back.

A timed-out device counts toward the abort threshold, and retry-failed takes it again. Envelope: endpoint and device are the device’s. package is “houradvantage-connect”. Sent once per device and attempt.

Sent only to a sink that names job.execution.timed_out in its events. It is not in the default set.

Fields: the job.execution.timed_out schema.

{
"job_id": 7,
"name": "volume",
"action": "set_settings",
"state": "timed_out",
"wave": 0,
"attempt": 1,
"action_id": 42,
"detail": "its action 42 did not finish within the job's timeout"
}

A job’s device was cancelled. The gateway sends it in two cases:

  • The job is cancelled before the device started.
  • The device’s action ended cancelled (the job was cancelled while it ran, or the action was cancelled by hand).

Envelope: endpoint and device are the device’s. package is “houradvantage-connect”. Sent once per device and attempt.

Sent only to a sink that names job.execution.cancelled in its events. It is not in the default set.

Fields: the job.execution.cancelled schema.

{
"job_id": 7,
"name": "volume",
"action": "set_settings",
"state": "cancelled",
"wave": 1,
"attempt": 1,
"detail": "the job was cancelled"
}

The gateway sends these for a sync group, to the group’s sinks, with endpoint "sync:<group>", device "" and package "houradvantage-connect". A group that keeps no data domain sends none.

They never carry keypad PINs, passwords, or template and photo bytes.

A sink that names no events is sent the changes that came from a device. It is not sent those made through the API. It is not sent sync.member. It is always sent person.replaced, sync.paused, person.enrolled and tenant.limit_reached.

A member’s own punch events carry a sync object beside the package’s data (see the punch schema). What it holds depends on the group:

  • Where the group keeps punches, it holds the punch as the group sees it: group, previous, duplicate, within_lockout, late, zone and user_id_alias_of.
  • Where the group keeps people and the person is not placed on that device (placement), it holds placement: "outside". When the group does not keep punches, it holds only group besides.

The punch itself is never dropped or changed.

The gateway sends this for a sync group that keeps people. A person in the group’s registry was added or changed. This happened through the admin API, or it was taken in from a member device.

Each change sends one event. A change is one of these: a change to the person’s record, a credential added or removed (template, face photo, display photo), or a user id change. A write that changes nothing sends none. An example is a device echoing what it was sent.

Keypad PINs, passwords and template or photo bytes are never carried. Credentials appear only by their metadata.

The envelope has endpoint “sync:”, device "" and package “houradvantage-connect”. The event goes to the sinks the group names.

A sink with no events is sent it only when the change came from a device. A change made through the API (origin api:...) goes only to a sink that names person.changed (default set).

Fields: the person.changed schema.

{
"user_id": "1001",
"version": 42,
"changed": [
"name",
"cards"
],
"origin": "api:admin",
"credentials": [
{
"kind": "fingerprint",
"slot": 6,
"format": "zk:fingerprint:10",
"sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
}
]
}

The gateway sends this for a sync group that keeps people. A person was deleted from the group’s registry. This happened through the admin API, or it was taken in from a member device.

The person and their credentials are deleted from every member that holds them. The person’s punch state (their recent punches, used for the duplicate and lockout checks) and the aliases of their old user ids are removed too.

The envelope has endpoint “sync:”, device "" and package “houradvantage-connect”. The event goes to the sinks the group names.

A sink with no events is sent it only when the change came from a device. A change made through the API (origin api:...) goes only to a sink that names person.deleted (default set).

Fields: the person.deleted schema.

{
"user_id": "1001",
"version": 57,
"origin": "device:office/CG0001"
}

The gateway sends this for a sync group, once. It is sent when a person’s user id change (POST /api/tenants/{tenant}/sync/{name}/people/{user_id}/change-id) is done on every member.

Each member that held the person did one of two things. Either it renamed them. Or it had them created under the new id, checked, and the old user deleted.

It is not sent while a member is still working on the change or has failed it. (POST /api/tenants/{tenant}/sync/{name}/people/{user_id}/retry-change-id carries a failed member on.)

Punches made under the old id still arrive, marked with sync.user_id_alias_of. They do so for as long as the alias is kept (retention_days from the change).

The envelope has endpoint “sync:”, device "" and package “houradvantage-connect”. The event goes to the sinks the group names.

Fields: the person.replaced schema.

{
"old_user_id": "1001",
"new_user_id": "2001",
"at": "2026-01-15T08:00:00Z",
"members": [
{
"endpoint": "office",
"device": "CG0001",
"method": "replace"
},
{
"endpoint": "office",
"device": "CG0002",
"method": "unsupported"
}
]
}

The gateway sends this for a sync group that keeps people. A person was enrolled at a clock. That means the clock reported a user the group did not have.

From then on, they are the group’s person. They have Connect’s own id for them (person). What the clock reported goes in fields, never their keypad PIN or password. fields also holds enrolled: "<endpoint>/<device>".

Until they are linked, they stay on that clock alone, whatever the group’s placement says. Linked means given an id in another system: an external id, or a route of their own with one. Once they are linked, they are sent to every clock of the group as its placement says.

Their punches carry their id and go out at once, routed as anyone’s. A group’s default route to Time and Attendance makes them an unlinked person there.

They count toward the tenant’s limit on people.

The endpoint’s policy package’s enrolled hook is called after it is stored. A system deciding elsewhere links, labels or deletes them through the API.

This event is told once, with an id of the person’s and the version their enrollment wrote.

The envelope has endpoint “sync:”, device "" and package “houradvantage-connect”. The event goes to the sinks the group names.

Fields: the person.enrolled schema.

{
"user_id": "1002",
"person": "9b7c0a52-5f3e-4d0e-9a51-0c2f6d1e8a11",
"version": 17,
"endpoint": "office",
"device": "CG0001",
"fields": {
"name": "Bo",
"role": "user",
"enrolled": "office/CG0001"
}
}

The gateway sends this for a sync group that keeps people. A clock reported a user it still carries from a group it left. This is a clock that moved. The user is one of its old site’s users. A package with no clear_users command cannot clear them, or their clearing failed.

reason is carried.

The user is not the group’s, and the group does not delete them. Whether they stay is for the system that reads this event to decide, by deleting them from the clock through its commands.

One event is sent for each such user each time the clock reports them (the daily inventory, say). So a user that stays is told again with each inventory.

A user the clock holds that the group does not have, and that is not carried, is enrolled as the group’s person instead.

The envelope has endpoint “sync:”, device "" and package “houradvantage-connect”. The event goes to the sinks the group names. A sink that names no events is sent it.

Fields: the inventory.extra_user schema.

{
"user_id": "2041",
"endpoint": "office",
"device": "CG0001",
"reason": "carried",
"reported_at": "2026-11-13T03:00:00Z"
}

The gateway sends this for a sync group that keeps the access domain. One of its rows (a schedule, holiday, access group or zone) was added, changed or deleted. This happened through the admin API, or it was taken in from a member device.

The envelope has endpoint “sync:”, device "" and package “houradvantage-connect”. The event goes to the sinks the group names.

A sink with no events is sent it only when the change came from a device. A change made through the API (origin api:...) goes only to a sink that names access.changed (default set).

Fields: the access.changed schema.

{
"kind": "schedule",
"key": "day-shift",
"version": 12,
"deleted": false,
"origin": "api:admin"
}

The gateway sends this for a sync group that keeps the lists domain. One of its items (a work code, job code, tip code or message) was added, changed or deleted. This happened through the admin API, or it was taken in from a member device.

The envelope has endpoint “sync:”, device "" and package “houradvantage-connect”. The event goes to the sinks the group names.

A sink with no events is sent it only when the change came from a device. A change made through the API (origin api:...) goes only to a sink that names list.changed (default set).

Fields: the list.changed schema.

{
"kind": "work_code",
"key": "7",
"version": 15,
"deleted": false,
"origin": "device:office/CG0001"
}

The gateway sends this for a sync group that keeps the settings domain. One setting’s value was set or cleared, for one settings class or for the standard setting names (class ”*”). This happened through the admin API (PUT /api/tenants/{tenant}/sync/{name}/settings/{class}), or it was taken in from a member device.

The envelope has endpoint “sync:”, device "" and package “houradvantage-connect”. The event goes to the sinks the group names.

A sink with no events is sent it only when the change came from a device. A change made through the API (origin api:...) goes only to a sink that names setting.changed (default set).

Fields: the setting.changed schema.

{
"kind": "setting",
"key": "zk-push-tft/volume",
"version": 21,
"deleted": false,
"origin": "api:admin",
"value": 70
}

The gateway sends this for a sync group when one of its member devices changes standing. The change can be any of these:

  • It joined or left the group.
  • The bulk-delete guard paused it.
  • It was resumed.
  • Its package declares something different for it.
  • Its labels changed.
  • A member that left was forgotten.

It is sent once per change. GET /api/tenants/{tenant}/sync/{name}/members shows where each member is with the group’s rows.

The envelope has endpoint “sync:”, device "" and package “houradvantage-connect”. The event goes to the sinks the group names.

Sent only to a sink that names sync.member in its events. It is not in the default set.

Fields: the sync.member schema.

{
"change": "paused",
"endpoint": "office",
"device": "CG0001",
"reason": "the device reported data cleared"
}

The gateway sends this for a sync group. The bulk-delete guard paused a member device. It did so when either of these happened:

  • The device reported that it cleared its users or its data (a data_cleared, users_cleared or factory_reset in its log, not one from before it joined).
  • More than 20 of its deletes were to be taken in within 10 minutes.

Until the device is resumed (POST /api/tenants/{tenant}/sync/{name}/members/{endpoint}/{device}/resume), three things hold:

  • Nothing it reported in that message is taken in.
  • Nothing of it goes to the other members.
  • Nothing is sent to it.

A sync.member event with change paused is sent with it.

The envelope has endpoint “sync:”, device "" and package “houradvantage-connect”. The event goes to the sinks the group names.

Fields: the sync.paused schema.

{
"domain": "people",
"endpoint": "office",
"device": "CG0001",
"reason": "the device deleted more than 20 rows within 10 minutes"
}

The gateway sends this when a tenant is found over one of its limits with nothing refused for it. The limit is people: the people its sync groups keep, all together, past limits.people.

A write through the API that would add a person past the limit is refused (422). So a tenant is over it when its limit was lowered below what it has.

What a clock sends is never refused for the limit. A person enrolled at a clock is the group’s, and counts, so enrolling can take a tenant over it.

Nothing is blocked and nothing is deleted. Whoever wants people deleted does it in their own business logic reacting to this.

It is sent once, on the crossing. It is not sent again while the tenant stays over (more people, another look).

When the tenant comes back at or within the limit, this is noticed but sends no event. That can happen when people are deleted (at a clock too), when the limit is raised or taken away, or when a group is gone. Going over again after that is a new crossing. It is sent again with an id of its own.

The envelope has endpoint “sync:”. That is the group whose write took the tenant over. After a change of the setup, it is the tenant’s first group that keeps people. The device is "" and the package is “houradvantage-connect”. The event goes to the sinks that group names.

Fields: the tenant.limit_reached schema.

{
"limit": "people",
"allowed": 500,
"count": 501
}

Time and Attendance sends only what an outside system acts on or keeps up to date with. That is:

  • exceptions
  • approved timecards
  • closed periods and their adjustments
  • leave requests
  • unlinked people seen and linked
  • clocks’ punches re-stamped (clock.restamped)
  • work it parked (recalculation.parked)
  • package.updated and its sinks behind (see about the tenant)

Working a timecard out again sends nothing. Changes to it along the way send nothing. Read the current timecard from the attendance API.

These events are kept in Time and Attendance’s own event log, apart from Connect’s. Connect’s events, its sinks and its API never show them.

They are delivered to Time and Attendance’s own sinks (events and sinks). There are two kinds:

  • A tenant’s sink (/api/attendance/tenants/{tenant}/sinks, hourctl -t acme attend sink add) is sent its tenant’s events. It is also sent those the systems it names in sources post into the tenant.
  • The install’s sink (/api/attendance/sinks, hourctl --install attend sink add) is sent every tenant’s events.

Delivery, signing and positions are as Connect’s sinks have them. The positions are the log’s own (GET /api/attendance/tenants/{tenant}/events).

None of these types is left out of the default set. So a sink that names no events is sent all of them.

In the envelope:

  • tenant is the Time and Attendance tenant.
  • endpoint is attendance.
  • package is houradvantage-attend.
  • device is the event’s subject.

The subject is:

  • the person, for an exception;
  • <person>/<side>/<period's first day>, for a timecard;
  • <person>/leave/<id>, for a leave request;
  • the unlinked person’s id, for person.unlinked_seen and person.linked;
  • the tenant’s id, for recalculation.parked. For unsettled and a person’s failed, it is the person’s.

data carries tenant too. It also carries person, the engine’s id for the person. That is an employee’s id. For an unlinked person, it is <group>~<person>, after <connect tenant>. unless that is the default one.

Exceptions and leave are sent from the pay side only. Leave is sent from the ledger of the pay period the request’s first day is in.

An event’s id comes from what it is about. So after a failure the same event may arrive again with the same id. Deduplicate on it.

Something someone has to look at appeared in a person’s time. It can be a missing punch, a value not allowed, or what a policy step names (late, a no-show). See exceptions.

It is sent when it first appears. It is sent again if it is reopened after being excused, or comes back after it was fixed. Working the timecard out again while it stays sends nothing.

  • id is the exception’s own id (16 hex digits). It is made from its kind, what it is about and when. It is the same every time the ledger is worked out. Follow it up by this id.
  • exception is its kind.
  • at is when the thing it is about happened (RFC 3339 UTC).
  • about is the id of the punch, correction, labor entry or segment it is about.
  • detail is what exactly, in words ("" when there is nothing more to say).

exception is a name, and the list is open. It can be one of the engine’s own (missing_out, missing_in, context_missing, rate_missing, late_change_refused and the rest). Or it can be one your policy’s business rules give (late, no_show, rest_too_short).

Fields: the exception.raised schema.

{
"tenant": "acme",
"person": "4471",
"id": "3f9a0c21d4e8b765",
"exception": "missing_out",
"at": "2026-10-05T13:00:00Z",
"about": "4471/2026-10-05T13:00:00Z",
"detail": ""
}

An exception that was raised no longer needs looking at. how says which way:

  • fixed: it is gone. A correction, a punch that arrived, or a change of setup put it right.
  • excused: it stands, accepted as it is. by and comment say who excused it and why.

The other fields are the same as those of the exception.raised it settles.

Fields: the exception.resolved schema.

{
"tenant": "acme",
"person": "4471",
"id": "a17b44e09c3d5f28",
"exception": "late",
"at": "2026-10-06T13:12:00Z",
"about": "4471/2026-10-06T13:12:00Z",
"detail": "12 minutes after the shift's start",
"how": "excused",
"by": "pat",
"comment": "doctor's appointment, agreed"
}

A pay period’s timecard is approved at every stage of its approval rules, with its totals. It is approved as a whole or, where its side is approved by assignment, every assignment’s hours of it.

  • side is pay, or a bill side the tenant keeps.
  • first and last are the period’s days.
  • totals holds the period’s paid hours (those of the pay categories that are paid).
  • totals also holds its time worked, and the hours by pay category (unpaid ones too).
  • totals also holds what each category is (category_use): whether it is paid and counts as worked, and its payroll code where the setup names one.

It is sent once. A change that takes the approval away, and a new approval, send it again. It then carries the totals as they are at that time. The id is the same when the totals did not change.

Fields: the timecard.approved schema.

{
"tenant": "acme",
"person": "4471",
"side": "pay",
"first": "2026-10-05",
"last": "2026-10-11",
"totals": {
"paid": "42.50",
"worked": "42h 30m",
"categories": {
"overtime": "2.50",
"work": "40.00"
},
"category_use": {
"overtime": { "paid": true, "worked": true },
"work": { "paid": true, "worked": true }
}
}
}

A pay period is closed for a person. This is the timecard payroll pays, with its totals, as in timecard.approved. closed_at is when it was closed (RFC 3339 UTC).

It is sent once per close. A change recorded after the close shows as an adjustment, not a new period.closed.

Fields: the period.closed schema.

{
"tenant": "acme",
"person": "4471",
"side": "pay",
"first": "2026-10-05",
"last": "2026-10-11",
"totals": {
"paid": "42.50",
"worked": "42h 30m",
"categories": {
"overtime": "2.50",
"work": "40.00"
},
"category_use": {
"overtime": { "paid": true, "worked": true },
"work": { "paid": true, "worked": true }
}
},
"closed_at": "2026-10-12T15:00:00Z"
}

The adjustments a timecard holds for a closed pay period are new or changed. These are changes stored after that period closed (a late punch, a correction, a setup or policy change naming a day in it). They are paid in the period open when they were stored (closed periods).

The closed period’s own timecard never changes. Payroll pays these on top of it.

This event is sent each time the adjustments change, with their totals as they stand in this timecard. It is sent with none ("0.00", no categories) when they left it, the closed period having been reopened.

  • first and last are the timecard holding the adjustments.
  • period is the first day of the closed period they adjust.
  • adjustments holds their paid hours (those in paid categories) and hours by categories. These are negative where the closed period paid too much.
  • Where the changes also move an accrual balance, adjustments.balances holds the adjustment per accrual category in decimal hours (negative takes time off). It is left out where no balance moves.
  • adjustments.record_code is set where the adjustments include the whole difference between what the closed period was paid and what this version of the engine works out for it. This happens with the first change after an upgrade. It is the identifier of the code that worked out the closed period’s record, so payroll can tell an upgrade’s difference from a change. It is left out for an ordinary late change.

The envelope’s device is <person>/<side>/<first>.

Fields: the period.adjusted schema.

{
"tenant": "acme",
"person": "4471",
"side": "pay",
"first": "2026-10-12",
"last": "2026-10-18",
"period": "2026-10-05",
"adjustments": {
"paid": "4.00",
"categories": {
"overtime": "-2.00",
"work": "6.00"
},
"balances": { "pto": "0.50" }
}
}

A leave request is waiting for a stage of its approval, so that stage’s approver can act on it. It is sent when the request is made. It is sent again at each stage after the one before approves it. It is sent again when a stage’s approval no longer holds.

With no approval rule for leave, a request waits for one decision at the stage approval.

  • id, category and days (each date and time, "8h") are the request’s.
  • by and comment are who asked and what they wrote ("" for nothing).
  • replaces is the request it replaces, or null.
  • state is pending.
  • stage is the stage it waits for (approval when there is no rule for leave).
  • approver is who it goes to where the policy’s leave check routed it elsewhere than the approval rule’s approver ("role:director").
  • organization is the organization the decision waits on, where the stage is tied to a hierarchy. It is the person’s own organization of that hierarchy on the request’s first day, or one above it (organizations). Who decides for it is the app’s to say.

Fields: the leave.requested schema.

{
"tenant": "acme",
"person": "104552",
"id": "v1",
"category": "vacation",
"days": [
{
"date": "2026-10-12",
"time": "8h"
},
{
"date": "2026-10-13",
"time": "4h"
}
],
"by": "104552",
"comment": "family visit",
"replaces": null,
"state": "pending",
"stage": "supervisor",
"organization": "ops-west"
}

A leave request is decided. state is one of these:

  • approved: at every stage. Its time is in the person’s timecard, in its category.
  • rejected: at a stage.
  • refused: the policy’s leave check refused it (not enough balance, a blackout day). Its approval cannot pass.

The fields are the same as those of leave.requested, without stage.

Fields: the leave.decided schema.

{
"tenant": "acme",
"person": "104552",
"id": "v1",
"category": "vacation",
"days": [
{
"date": "2026-10-12",
"time": "8h"
},
{
"date": "2026-10-13",
"time": "4h"
}
],
"by": "104552",
"comment": "family visit",
"replaces": null,
"state": "approved"
}

What a leave request books changed while where it stands did not.

A day of approved leave on a holiday added after the approval books no time. The hours go back to the balance and the holiday is paid. The request stays approved. The change shows here rather than as a new decision.

  • days is what the request books now.
  • was is where it stood before (its state and the days it booked).
  • because says what changed it, such as the holiday put as a setup item, with who put it and why.

A change of where the request stands is told by leave.requested or leave.decided.

The fields are the same as those of leave.requested, without stage.

Fields: the leave.booked schema.

{
"tenant": "acme",
"person": "104552",
"id": "v1",
"category": "vacation",
"days": [
{
"date": "2026-10-08",
"time": "0s"
}
],
"by": "104552",
"comment": "family visit",
"replaces": null,
"state": "approved",
"was": {
"state": "approved",
"days": [
{
"date": "2026-10-08",
"time": "8h"
}
]
},
"because": [
{
"kind": "setup",
"item": "holiday",
"id": "harvest",
"stored": "2026-10-14T09:00:00Z",
"by": "hr-admin",
"reason": "decree"
}
]
}

A leave request was taken back, and not replaced by another. Its time is no longer in the person’s timecard.

A request replaced by another is not cancelled. The other is requested in its turn, naming it in replaces.

The fields are the same as those of leave.requested, without stage, as the request last stood. state is where it stood when it was taken back.

Fields: the leave.cancelled schema.

{
"tenant": "acme",
"person": "104552",
"id": "v1",
"category": "vacation",
"days": [
{
"date": "2026-10-12",
"time": "8h"
},
{
"date": "2026-10-13",
"time": "4h"
}
],
"by": "104552",
"comment": "family visit",
"replaces": null,
"state": "approved"
}

The engine parked something it could not work out. reason says why.

Nothing parked is tried again by the clock. It waits for what it is worked out from to change, or for an instance running another release.

  • failed: a person’s ledgers could not be worked out. Reasons include, for example, a policy step that fails, data the policy cannot take, or a step that ran out of work or memory. Their pending work keeps the error (GET .../pending). They are worked out again when anything is recorded for them or their policy changes. They are also worked out again when an instance running another release takes them. This is told once for the mark that failed. Where a whole batch of a tenant’s people failed on one thing (a package that does not load), the tenant is told once, with persons. This holds for as long as its batches keep failing. Each person is not told. The envelope’s device is the person’s id, or the tenant’s for a whole batch.
  • unsettled: the records of one worker read each other’s time, and their policies kept changing each other. A change of one worked the others out again, which changed it again, relayed times in a row (8). The change of person’s time is passed on to the worker’s other records no further, until something is recorded for one of them. Each record is kept as it was last worked out. The envelope’s device is the person’s id.

why says it in words.

Fields: the recalculation.parked schema.

{
"tenant": "acme",
"reason": "failed",
"person": "104552",
"why": "step rate (mine/rate): runtime error: no rate for this"
}
{
"tenant": "acme",
"reason": "unsettled",
"person": "104552",
"worker": "w-17",
"records": [
"us-4471"
],
"relayed": 8,
"why": "104552's time and that of the other records of worker w-17 (us-4471) kept changing each other: passed on 8 times in a row, a change is passed on no further until something is recorded for them"
}

In Time and Attendance: an operator re-stamped a clock’s punches (clock records). The clock’s punches from from on were given the clock’s record as it is now. Each was given it by a correction saying who and why. Those persons are worked out again from the punch’s workday.

  • clock is the device id.
  • punches is how many were given the record, and people is whose they are.
  • by is who asked, and reason is why.
  • id is the re-stamp’s. It is part of each correction’s id, restamp-<id>-<punch>.
  • complete is false when one run’s most (20000 punches) was reached. The next run, with the same start, does the rest and sends its own event.

A re-stamp that finds every punch carrying the record already sends nothing. The envelope’s device is the tenant’s id.

Fields: the clock.restamped schema.

{
"clock": "Z34ACMEN00118",
"from": "2026-10-05T00:00:00Z",
"punches": 312,
"people": 41,
"by": "user:ann",
"reason": "the clock moved to the dock",
"id": "3f9a1c0b7d2e",
"complete": true
}

In Time and Attendance: an operator shifted a clock’s punches (shifting a clock’s punches). The clock’s punches made from from up to to were each moved by by_seconds. For a request that took a shift back, undo names it instead, and the punches went back to the instant they were made. Each was moved by a correction saying who and why. Those persons are worked out again from the punch’s workday.

  • clock is the device id.
  • punches is how many were moved, and people is whose they are.
  • by is who asked, and reason is why.
  • id is the request’s. It is part of each correction’s id, shift-<id>-<punch>.
  • complete is false when one run’s most (20000 punches) was reached. The next run, with the same body and id, does the rest and sends its own event.

A shift that finds nothing to move sends nothing. The envelope’s device is the tenant’s id.

Fields: the clock.shifted schema.

{
"clock": "Z34ACMEN00118",
"from": "2026-03-09T00:00:00Z",
"to": "2026-03-14T00:00:00Z",
"by_seconds": 3600,
"punches": 331,
"people": 41,
"by": "user:ann",
"reason": "the clock kept standard time",
"id": "dst-spring",
"complete": true
}

Punches arrived for someone the tenant does not know. Their sender knows them by its own ids only (Connect’s id of the person in their sync group), with no id of the tenant’s among them.

They are kept as an unlinked person. Their hours are worked out with the tenant’s policy, so a manager sees them.

It is sent once, when they are first worked out. It carries unlinked (their id in the tenant), the sender’s ids of them, and first_seen. The sender’s ids are: Connect tenant, group, endpoint, Connect’s id of the person, the user’s id on the device, and the device they last punched at.

Link them to the person they are with POST /api/attendance/tenants/{tenant}/unlinked/{id}/link.

Fields: the person.unlinked_seen schema.

{
"tenant": "acme",
"unlinked": "hq~0c6f2a1e-7d43-4b8e-9a51-3f2e8d6c4b10",
"sender": {
"tenant": "default",
"group": "hq",
"endpoint": "office",
"person": "0c6f2a1e-7d43-4b8e-9a51-3f2e8d6c4b10",
"user_id": "1001",
"device": "CG0001"
},
"first_seen": "2026-10-05T13:00:06Z"
}

An unlinked person was linked to the person they are (or unlinked, or linked to someone else). From the link on (at), their punches are that person’s.

  • person is whom they are linked to (null: unlinked).
  • previous is whom they were linked to before.
  • by is who linked them.

It carries the sender’s ids, so a sink can tell the sender who they are. Connect’s API sets the person’s employee id, which syncs them. Their punches carry it as person_id from then on.

It is sent once for each link.

Fields: the person.linked schema.

{
"tenant": "acme",
"unlinked": "hq~0c6f2a1e-7d43-4b8e-9a51-3f2e8d6c4b10",
"person": "4471",
"previous": null,
"sender": {
"tenant": "default",
"group": "hq",
"endpoint": "office",
"person": "0c6f2a1e-7d43-4b8e-9a51-3f2e8d6c4b10",
"user_id": "1001",
"device": "CG0001"
},
"by": "lead",
"at": "2026-10-07T15:00:00Z"
}