Skip to content
Developer

EventTimingDeviceApi

Events3 EndpointsEvent / EventTimingDeviceApi

Everything a device needs to work offline: event, timing points, participants.

GET/api/event/timing/device/config

Headers

X-Iw-Timing-Tokenrequiredstring

Responses

200Device configuration

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/event/timing/device/config \
  --header 'x-iw-jwt-token: <TOKEN>'

Reads of the device. Without timing_point the point of the device is used.

POST/api/event/timing/device/reads

Headers

X-Iw-Timing-Tokenrequiredstring

Request body application/json

  • readsarray<object>

Responses

200{results: [ReadResult], server_time_ms}

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/event/timing/device/reads \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '{"reads":[{}]}'

Keep alive with clock sync: the server stores the offset and applies it to later reads.

POST/api/event/timing/device/heartbeat

Headers

X-Iw-Timing-Tokenrequiredstring

Request body application/json

  • device_time_msinteger
  • battery_levelinteger
  • firmwarestring

Responses

200{server_time_ms, clock_offset_ms}

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/event/timing/device/heartbeat \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '
{
  "device_time_ms": 1,
  "battery_level": 1,
  "firmware": "string"
}
'