adsum API, attendance devices package (1.0.0)

Download OpenAPI specification:

License: GPL-2.0-or-later

The operations of the attendance devices package, merged into the published contract when the package is installed (see WebVision\Adsum\Core\Shared\Api\Contract\OpenApiDocument). Linted on its own.

Attendance devices

Attendance terminals: devices and their connectors, credentials, synchronisation, device events, device users.

What the next punch needs

Tells the client before a punch whether a location is needed, with the accuracy limit and the sites that apply (name, centre and radius), and whether the punch is restricted to the office network (never the ranges). The settings are those of the company the employee works for; the company of the session or the Company-Id header never changes them. The answer decides nothing: createPunch applies the gates again. Any employee may read their own requirements.

Authorizations:
bearerAuthsessionCookie

Responses

Response samples

Content type
application/json
{
  • "locationRequired": true,
  • "maxAccuracyMeters": 0,
  • "sites": [
    ],
  • "networkRestricted": true
}

Data of the device status widget

The devices per state, those that are offline with the seconds since their last success, and the number of rejected or held events that wait. Nothing about a person.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "states": {
    },
  • "offline": [
    ],
  • "rejectedEvents": 0
}

Read the attendance device settings of the company

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "etag": "string",
  • "devicesEnabled": true,
  • "debounceSeconds": 0,
  • "maxBackfillDays": 1,
  • "offlineAlertMinutes": 5,
  • "eventRetentionDays": 90
}

Change the attendance device settings

Switches the devices of the company on or off and sets the debounce window, the back-fill limit, the offline alert time, the retention of events. Audited.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
non-empty
devicesEnabled
boolean

With the switch off nothing syncs, listens or accepts pushes.

debounceSeconds
integer [ 0 .. 600 ]
maxBackfillDays
integer [ 1 .. 62 ]
offlineAlertMinutes
integer [ 5 .. 1440 ]
eventRetentionDays
integer [ 90 .. 3650 ]

Responses

Request samples

Content type
application/json
{
  • "devicesEnabled": true,
  • "debounceSeconds": 0,
  • "maxBackfillDays": 1,
  • "offlineAlertMinutes": 5,
  • "eventRetentionDays": 90
}

Response samples

Content type
application/json
{
  • "etag": "string",
  • "devicesEnabled": true,
  • "debounceSeconds": 0,
  • "maxBackfillDays": 1,
  • "offlineAlertMinutes": 5,
  • "eventRetentionDays": 90
}

List the connectors devices can use

Labels and field names are in the language of the caller; codes are not translated.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

List the devices of the company

Authorizations:
bearerAuthsessionCookie
query Parameters
state
string (DeviceState)
Enum: "connected" "degraded" "offline" "disabled"

Only devices in this state.

connector
string

Only devices of this connector.

siteId
string <uuid> (Uuid)
Examples: siteId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Only devices of this time-tracking site.

archived
boolean
Default: false

List archived devices instead of active ones.

search
string

A search in the name.

page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a device

The configuration must have every required field of the connector and the connection mode must be one the connector supports; otherwise 422 with a violation on the field.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
name
required
string <= 100 characters
connector
required
string (ConnectorCode)
Enum: "zkteco" "anvizCrossChex" "matrixCosec" "dahua" "eTimeOffice" "genericIngest"
required
object

The values of the connector fields; a missing required field is a violation on configuration.<field>.

connectionMode
required
string (ConnectionMode)
Enum: "poll" "live" "push" "cloud"
directionMode
required
string (DirectionMode)
Enum: "deviceCode" "in" "out" "toggle" "firstInLastOut"
unknownCodeFallback
string (UnknownCodeFallback)
Enum: "toggle" "firstInLastOut" "hold"
Uuid (string) or null
timeZone
string

An IANA time zone.

pollIntervalSeconds
integer [ 60 .. 86400 ]
Default: 300
autoSetClock
boolean
Default: false
removeOnExit
boolean
Default: true
allowPlainHttp
boolean
Default: false

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "connector": "zkteco",
  • "configuration": { },
  • "connectionMode": "poll",
  • "directionMode": "deviceCode",
  • "unknownCodeFallback": "toggle",
  • "siteId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "timeZone": "string",
  • "pollIntervalSeconds": 300,
  • "autoSetClock": false,
  • "removeOnExit": true,
  • "allowPlainHttp": false
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "etag": "string",
  • "name": "string",
  • "connector": "zkteco",
  • "configuration": { },
  • "connectionMode": "poll",
  • "directionMode": "deviceCode",
  • "unknownCodeFallback": "toggle",
  • "siteId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "timeZone": "string",
  • "pollIntervalSeconds": 300,
  • "autoSetClock": false,
  • "removeOnExit": true,
  • "allowPlainHttp": false,
  • "state": "connected",
  • "archived": true,
  • "serialNumber": "string",
  • "lastSuccessAt": "2026-10-01T08:15:00+02:00",
  • "lastErrorCode": "unreachable",
  • "lastErrorDetail": "string",
  • "clockDriftSeconds": 0,
  • "rejectedEvents": 0,
  • "pendingRemovals": 0,
  • "tokens": [
    ]
}

Start a sync of several devices

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
required
deviceIds
required
Array of strings <uuid> (Uuid) [ 1 .. 100 ] items [ items <uuid > ]

Responses

Request samples

Content type
application/json
{
  • "deviceIds": [
    ]
}

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

ZKTeco push handshake

The device asks for its options when it starts. Only for a ZKTeco device in mode push.

path Parameters
token
required
string^[A-Za-z0-9]{16,128}$

The token of the device. A ZKTeco device cannot send headers, so the token is part of the server address it is configured with, https://host/api/v1/attendance-devices/zkteco/<token>.

query Parameters
SN
required
string <= 64 characters

The serial number of the device. A device that has none yet takes the one of its first upload; afterwards a different serial number answers 401.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

ZKTeco push upload

The device uploads a table. The attendance log (table=ATTLOG, one tab-separated line per record with the user, the time, the punch state and the verify mode) is stored like any other device record, every line once; other tables are acknowledged and ignored.

path Parameters
token
required
string^[A-Za-z0-9]{16,128}$

The token of the device. A ZKTeco device cannot send headers, so the token is part of the server address it is configured with, https://host/api/v1/attendance-devices/zkteco/<token>.

query Parameters
SN
required
string <= 64 characters

The serial number of the device. A device that has none yet takes the one of its first upload; afterwards a different serial number answers 401.

table
string
Request Body schema: text/plain
optional
string

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

ZKTeco push command polling

The device asks whether the server has commands for it. adsum sends none to push devices.

path Parameters
token
required
string^[A-Za-z0-9]{16,128}$

The token of the device. A ZKTeco device cannot send headers, so the token is part of the server address it is configured with, https://host/api/v1/attendance-devices/zkteco/<token>.

query Parameters
SN
required
string <= 64 characters

The serial number of the device. A device that has none yet takes the one of its first upload; afterwards a different serial number answers 401.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List device events in the caller's scope

Scope self returns the caller's own events, team those of the caller's current reports and company all events, also those without an employee (HR). Reason code and reason text are part of every event, the vendor payload never is. An employee outside the caller's scope yields an empty list.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
scope
string (ListScope)
Default: "self"
Enum: "self" "team" "company"

Visibility scope of a collection request; the caller only ever receives what they may see.

deviceId
string <uuid> (Uuid)
Examples: deviceId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
state
string (AttendanceDeviceEventState)
Enum: "received" "recorded" "rejected" "held" "debounced" "pending" "superseded" "voided" "dismissed"
reason
string (AttendanceDeviceEventReason)
Enum: "unmapped" "employeeInactive" "trackingDisabled" "sequenceConflict" "validatedDay" "tooOld" "futureInstant" "invalidCode"
employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
from
string <date> (Date)
Examples: from=2026-10-01

Inclusive start date of the period.

to
string <date> (Date)
Examples: to=2026-10-01

Inclusive end date of the period.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Send a batch of device records

For a device of connector genericIngest, or any device in mode push. At most 1,000 records; a longer batch answers 413 and stores nothing. Every record is stored once per device (recordId), so a batch can be sent again. With the devices switched off for the company the answer is 403 attendance-devices-disabled. At most 600 requests a minute per device.

Authorizations:
deviceToken
Request Body schema: application/json
required
required
Array of objects

At most 1,000 records.

Responses

Request samples

Content type
application/json
{
  • "records": [
    ]
}

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Process rejected or held device events again

After the cause is fixed, for example a mapping. Events are processed in the order of their instants and the back-fill limit counts from the time of the retry, so an event that is too old stays rejected with tooOld. Events that were dismissed, and events that are not rejected or held, are left alone.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
required
eventIds
Array of strings <uuid> (Uuid) [ 1 .. 500 ] items [ items <uuid > ]
deviceId
string <uuid> (Uuid)
reason
string (AttendanceDeviceEventReason)
Enum: "unmapped" "employeeInactive" "trackingDisabled" "sequenceConflict" "validatedDay" "tooOld" "futureInstant" "invalidCode"
employeeId
string <uuid> (Uuid)
from
string <date> (Date)
to
string <date> (Date)

Responses

Request samples

Content type
application/json
{
  • "eventIds": [
    ],
  • "deviceId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "reason": "unmapped",
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "from": "2026-10-01",
  • "to": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "processed": 0,
  • "recorded": 0,
  • "stillWaiting": 0
}

Dismiss a rejected or held device event

Dismissed events are never processed. An event that became a punch cannot be dismissed (422).

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
required
reason
required
string [ 1 .. 500 ] characters

Responses

Request samples

Content type
application/json
{
  • "reason": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "deviceId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "deviceUserId": "string",
  • "localTime": "string",
  • "occurredAt": "2026-10-01T08:15:00+02:00",
  • "punchCode": "string",
  • "verifyMode": "string",
  • "state": "received",
  • "reason": "unmapped",
  • "reasonText": "string",
  • "punchId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "dismissReason": "string",
  • "receivedAt": "2026-10-01T08:15:00+02:00",
  • "processedAt": "2026-10-01T08:15:00+02:00"
}

Read a device

A device of another company answers 404.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "etag": "string",
  • "name": "string",
  • "connector": "zkteco",
  • "configuration": { },
  • "connectionMode": "poll",
  • "directionMode": "deviceCode",
  • "unknownCodeFallback": "toggle",
  • "siteId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "timeZone": "string",
  • "pollIntervalSeconds": 300,
  • "autoSetClock": false,
  • "removeOnExit": true,
  • "allowPlainHttp": false,
  • "state": "connected",
  • "archived": true,
  • "serialNumber": "string",
  • "lastSuccessAt": "2026-10-01T08:15:00+02:00",
  • "lastErrorCode": "unreachable",
  • "lastErrorDetail": "string",
  • "clockDriftSeconds": 0,
  • "rejectedEvents": 0,
  • "pendingRemovals": 0,
  • "tokens": [
    ]
}

Change a device

A secret that is left out keeps its value. Audited; a changed secret is recorded as changed, never with its value.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
non-empty
name
string <= 100 characters
object

The values of the connector fields. A secret field is {"set": true} or {"set": false}, never its value.

connectionMode
string (ConnectionMode)
Enum: "poll" "live" "push" "cloud"
directionMode
string (DirectionMode)
Enum: "deviceCode" "in" "out" "toggle" "firstInLastOut"
unknownCodeFallback
string (UnknownCodeFallback)
Enum: "toggle" "firstInLastOut" "hold"
Uuid (string) or null
timeZone
string

An IANA time zone.

pollIntervalSeconds
integer [ 60 .. 86400 ]
Default: 300
autoSetClock
boolean
Default: false
removeOnExit
boolean
Default: true
allowPlainHttp
boolean
Default: false

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "configuration": { },
  • "connectionMode": "poll",
  • "directionMode": "deviceCode",
  • "unknownCodeFallback": "toggle",
  • "siteId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "timeZone": "string",
  • "pollIntervalSeconds": 300,
  • "autoSetClock": false,
  • "removeOnExit": true,
  • "allowPlainHttp": false
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "etag": "string",
  • "name": "string",
  • "connector": "zkteco",
  • "configuration": { },
  • "connectionMode": "poll",
  • "directionMode": "deviceCode",
  • "unknownCodeFallback": "toggle",
  • "siteId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "timeZone": "string",
  • "pollIntervalSeconds": 300,
  • "autoSetClock": false,
  • "removeOnExit": true,
  • "allowPlainHttp": false,
  • "state": "connected",
  • "archived": true,
  • "serialNumber": "string",
  • "lastSuccessAt": "2026-10-01T08:15:00+02:00",
  • "lastErrorCode": "unreachable",
  • "lastErrorDetail": "string",
  • "clockDriftSeconds": 0,
  • "rejectedEvents": 0,
  • "pendingRemovals": 0,
  • "tokens": [
    ]
}

Delete a device without events

Answers 409 with the hint to archive when the device has stored events.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Archive a device

An archived device does not sync, listen or accept pushes, and its tokens are rejected.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "etag": "string",
  • "name": "string",
  • "connector": "zkteco",
  • "configuration": { },
  • "connectionMode": "poll",
  • "directionMode": "deviceCode",
  • "unknownCodeFallback": "toggle",
  • "siteId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "timeZone": "string",
  • "pollIntervalSeconds": 300,
  • "autoSetClock": false,
  • "removeOnExit": true,
  • "allowPlainHttp": false,
  • "state": "connected",
  • "archived": true,
  • "serialNumber": "string",
  • "lastSuccessAt": "2026-10-01T08:15:00+02:00",
  • "lastErrorCode": "unreachable",
  • "lastErrorDetail": "string",
  • "clockDriftSeconds": 0,
  • "rejectedEvents": 0,
  • "pendingRemovals": 0,
  • "tokens": [
    ]
}

Restore an archived device

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "etag": "string",
  • "name": "string",
  • "connector": "zkteco",
  • "configuration": { },
  • "connectionMode": "poll",
  • "directionMode": "deviceCode",
  • "unknownCodeFallback": "toggle",
  • "siteId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "timeZone": "string",
  • "pollIntervalSeconds": 300,
  • "autoSetClock": false,
  • "removeOnExit": true,
  • "allowPlainHttp": false,
  • "state": "connected",
  • "archived": true,
  • "serialNumber": "string",
  • "lastSuccessAt": "2026-10-01T08:15:00+02:00",
  • "lastErrorCode": "unreachable",
  • "lastErrorDetail": "string",
  • "clockDriftSeconds": 0,
  • "rejectedEvents": 0,
  • "pendingRemovals": 0,
  • "tokens": [
    ]
}

Create or rotate the token of a device

Only devices of a connector that receives data (genericIngest or mode push) have tokens. A device holds at most two tokens; the previous one stays valid for 24 hours.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "token": "string",
  • "hint": "string",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "previousExpiresAt": "2026-10-01T08:15:00+02:00"
}

Revoke a token of a device at once

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
tokenId
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Put employees on a device

For connectors that manage users. The device user ID is the personnel number when the device takes it, otherwise deviceUserId names one. An ID the device or a mapping holds already answers 409 and nothing is written; a connector that cannot manage users answers 422 with a violation on connector. The device receives only the ID and the display name. Every enrolled employee is mapped from today. If the device refuses a write, that employee and the ones after it are reported as failed with the category of the failure. Fingerprints, faces and cards are enrolled at the device.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
required
Array of objects [ 1 .. 200 ] items

Responses

Request samples

Content type
application/json
{
  • "employees": [
    ]
}

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Change the vendor attributes of a device user

For connectors that declare user attributes: active, vip, validUntil (date or null), bypassFinger and faceRecognitionEnabled for Matrix COSEC; cardNumber, cardStatus, cardType and the write-only password for Dahua. The body names the attributes to change; an attribute the connector does not have, or of the wrong type, is a violation on that attribute (422). cardNumber opens doors and is shown only to HR; password is never shown.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
deviceUserId
required
string <= 64 characters
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
required
active
boolean
vip
boolean
Date (string) or null
bypassFinger
boolean
faceRecognitionEnabled
boolean
string or null
string or null
string or null
password
string <= 64 characters

Responses

Request samples

Content type
application/json
{
  • "active": true,
  • "vip": true,
  • "validUntil": "2026-10-01",
  • "bypassFinger": true,
  • "faceRecognitionEnabled": true,
  • "cardNumber": "string",
  • "cardStatus": "string",
  • "cardType": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "deviceUserId": "string",
  • "name": "string",
  • "enrolments": {
    },
  • "attributes": { },
  • "mapping": {
    },
  • "suggestedEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Take users off a device

The mappings of the users end today, so what they did before stays theirs. A connector that manages users deletes them on the device; a device that is out of reach keeps them as pending removals (pendingRemovals of the device), which the next successful sync deletes. Per user the answer is removed, pending, or unmapped where the connector cannot delete users.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
deviceUserIds
required
Array of strings [ 1 .. 500 ] items [ items <= 64 characters ]

Responses

Request samples

Content type
application/json
{
  • "deviceUserIds": [
    ]
}

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Start a sync of a device

For every connector with poll, live or cloud. Never returns a second run while one is running.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "deviceId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "trigger": "schedule",
  • "startedAt": "2026-10-01T08:15:00+02:00",
  • "finishedAt": "2026-10-01T08:15:00+02:00",
  • "result": "running",
  • "fetched": 0,
  • "new": 0,
  • "duplicate": 0,
  • "recorded": 0,
  • "rejected": 0,
  • "errorCode": "unreachable"
}

List the sync runs of a device

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Test the connection to a device

Uses the configuration and the timeouts of a sync.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "ok": true,
  • "serialNumber": "string",
  • "firmware": "string",
  • "deviceTime": "2026-10-01T08:15:00+02:00",
  • "userCount": 0,
  • "errorCode": "unreachable",
  • "explanation": "string",
  • "hint": "string",
  • "detail": "string"
}

Set the clock of a device

Sets the device clock to the current time in the device time zone; only for connectors with setClock.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "deviceTime": "2026-10-01T08:15:00+02:00",
  • "clockDriftSeconds": 0
}

List the mappings of a device

The device user IDs connected with employees, the newest start first. Only HR reads mappings.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
deviceUserId
string
active
boolean

Only the mappings valid today.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Connect a device user with an employee

Valid from the given day, by default today. Mappings of one device user ID do not overlap, and an employee has one mapping per device on a day (422 with a violation on validFrom). The answer says how many unmapped events of the device user wait for a retry.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
deviceUserId
required
string [ 1 .. 64 ] characters
employeeId
required
string <uuid> (Uuid)
validFrom
string <date> (Date)
Date (string) or null

Responses

Request samples

Content type
application/json
{
  • "deviceUserId": "string",
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "etag": "string",
  • "deviceId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "deviceUserId": "string",
  • "employee": {
    },
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "unmappedEvents": 0
}

Take over several device users at once

All pairs become mappings valid from the given day, by default today, or none does. Nothing is created or changed on the device. The answer says how many unmapped events of these device users wait for a retry.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
required
Array of objects [ 1 .. 500 ] items
validFrom
string <date> (Date)

Responses

Request samples

Content type
application/json
{
  • "pairs": [
    ],
  • "validFrom": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "unmappedEvents": 0
}

End a mapping

Only validTo changes, the day a mapping ends (inclusive), or null to let it run on. Audited.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
mappingId
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
required
Date (string) or null

Responses

Request samples

Content type
application/json
{
  • "validTo": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "etag": "string",
  • "deviceId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "deviceUserId": "string",
  • "employee": {
    },
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01"
}

Delete a mapping

Only a mapping no recorded event rests on; any other answers 409 and is ended instead. Audited.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
mappingId
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List the users of a device

Reads the users stored on the device when the connector can, with the number of credentials per kind where the vendor reports it and never a template. A user carries its current mapping and, when exactly one current employee has the device user ID as personnel number or else the same name, suggestedEmployeeId. Where the connector cannot read users or the device is unreachable, source is events, error says why, and the list holds the device user IDs seen in events.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "source": "device",
  • "error": "string"
}