Device
Object Shape
A device object will always have this shape when not embedded into other objects:
{
"id": "integer",
"_type": "string",
"parent": "object:device",
"children": "array:device",
"code": "string",
"publicId": "string",
"externalId": "string",
"name": "string",
"shortName": "string",
"deviceTags": "string",
"sources": "array",
"data": "object",
"available": "boolean",
"createdAt": "string",
"updatedAt": "string"
}
The data property inside the device object will have this shape:
{
"Section1": "object",
"Section2": "object",
"Section3": "object"
}
Where the sections are defined in the system configuration and are available for inspection in the Control Room.
Each field within a section has a declared type, and the JSON type it is sent and returned as follows from it:
string — a JSON string.
array — a JSON array of strings.
boolean — a JSON boolean.
true/falseare the canonical spellings; the strings"1","0","true","false"and""are accepted too, as isnullfor false. The value is always returned as a real JSON boolean, never as"1".
Fields you do not send are left exactly as they were, so a false and an omitted field mean
different things. When filtering with the ud operator, compare a boolean field against
true or false rather than "1" or "".
Device Types
The built-in device types are listed below, grouped by what they are for. A project can add its
own types on top of these — the authoritative list for a given instance is the
tagx_device.types setting, so treat this as the shipped default rather than a closed set.
Event structure
- event
The top-level container. Products are joined to an event, and most other devices sit beneath one.
- day
A single day of a multi-day event, used to group sessions and to scope day-specific tickets.
- session
A session, usually with a time frame (
startAtandendAt), a name and a description. Delegates check in to them, and sometimes join them to register interest.- room
A room or area of an event. Sessions are usually located in a room, assigned as their parent device.
- group, list
Generic groupings of delegates or devices.
listis what a saved batch selection becomes.
Organisations and people-facing devices
- organisation
A company attending the event — exhibitor, sponsor, buyer, seller or media. The distinction is carried in
deviceTags(e.g.OrgType:seller) rather than by a separate device type.
Physical devices and apps
- rfidreader
Digital devices able to read and write radio devices within a range, such as UHF readers.
- regoapp, mobileapp, expoapp
Physical devices running a Satellite TAG app — registration, gate, exhibitor and similar. These are the devices that authenticate through the device discovery flow.
Commerce
- product
Something sellable. Joined to its event (the event is
firstDevice, the product issecondDevice), and carrying its own price, tax rate, inventory andproductType.- promocode
A code that discounts an order, or reveals products that are otherwise hidden.
- coupon, voucher
Redeemable items held by a delegate and claimed against an interaction.
- orderhandler
The target of an ad-hoc ordering flow — a coffee cart, a food stall — where delegates place orders against the handler rather than buying a catalogue product.
Seating
- seatmap
A seat map, whose parent is a session. Holds the map geometry.
- seatsection
A section of a seat map, and the parent of its seats. Note the type string is one word.
- seat
A single seat. Occupancy is recorded as a
seat-assignmentinteraction, not on the device.
Promotions and prizes
- promotion
An Instant Win promotion, with its own activation window.
- prize
A prize belonging to a promotion.
- timestamp
A pre-loaded activation moment beneath a prize. The first eligible entrant after it activates wins that prize.
Other
- poll
A poll or survey that delegates vote on.
- qrcode
A scannable code that resolves to an action or destination.
- bookable
A generic device used as the target of custom booking logic.
- task
A unit of work tracked against the event.
- batch
A recorded import or bulk action, used to group the records it touched.
GET /device/list
Get the list of all devices.
All properties available for the authenticated client will be returned.
Note
This method supports pagination.
Use limit and offset to paginate returned results. The defaults if no limit or offset are provided are limit=5000 and offset=0.
GET /device/list?offset=0&limit=5000
The total result set count is returned in all responses in the meta property. Links to the next or previous page
are also provided in the same property.
Searching devices
Pass a search query parameter with a JSON expression to filter the list. See Searching lists for the full
operator reference.
Category |
Fields |
|---|---|
Direct fields |
|
Relations (by ID) |
|
UniqueCode (auto-join) |
|
Interaction filters |
|
UD data fields |
|
Statement fields |
|
Batch filter |
|
Find devices by type:
GET /device/list?search={"==":["deviceType","session"]}
Sessions under a specific room (parent relation):
GET /device/list?search={"and":[{"==":["deviceType","session"]},{"==":["parent",89]}]}
Search by name:
GET /device/list?search={"*=":["name","Workshop"]}
Find by code (UniqueCode auto-join):
GET /device/list?search={"==":["code","5ad2654c-4ce9-4daa-9844-b62b32303553"]}
Devices with at least one delegate joined:
GET /device/list?search={"fi":["join",{"firstDelegate":[32]},">= 1"]}
Response
The response is a collection of devices. The collection can be empty ([] in JSON).
{
"data": [
{
"id": 1,
"_type": "device",
"name": "Rainbow Room",
"code": "5ad2654c-4ce9-4daa-9844-b62b32303553",
"deviceType": "room",
"createdAt": "2017-08-25T12:44:38+10:00",
"updatedAt": "2017-09-06T11:33:48+10:00"
},
{
"id": 2,
"_type": "device",
"name": "Sun Room",
"code": "282934b9-96b8-4d52-9d9b-91c135d38ba4",
"deviceType": "room",
"createdAt": "2017-08-25T12:44:38+10:00",
"updatedAt": "2017-09-06T11:33:48+10:00"
}
],
"meta": {
"pagination": {
"totalItems": 31,
"totalPages": 16,
"offset": 0,
"limit": 2,
"next": "/api/5/device/list.json?q=deviceType%3Droom"
}
}
}
Errors and Exceptions
General rule is that this method should not return an exception because it’s read only. Although general failures or service unavailability may occur, in that case a 5xx error will be returned.
See the list of Error Responses for more information.
GET /device/{idType}:{id}
Gets a specific device.
All properties available for the authenticated client will be returned.
See the list of Error Responses for more information, in particular error 1401.
The response is a single devices (if found). The example below is for /device/id:1
{
"data": {
"id": 1,
"_type": "device",
"name": "Rainbow Room",
"code": "5ad2654c-4ce9-4daa-9844-b62b32303553",
"deviceType": "room",
"createdAt": "2017-08-25T12:44:38+10:00",
"updatedAt": "2017-09-06T11:33:48+10:00"
},
"meta": {}
}
GET /device/{idType}:{id}/info
Returns one or more content regions rendered as Twig templates, with the loaded
device exposed as the device variable.
Use this when the client needs the server to compose a device-aware view (a session card, a sponsor blurb, a room sign) from regions configured in the Control Room, instead of fetching the device and re-implementing the same templating client-side.
The same identifier types accepted by GET /device/{idType}:{id} work here.
Query parameters
region(optional) — comma-separated list of region paths to render, in the order they will appear in the response. Each path must start with/api/device-info. Whitespace around each path is trimmed.When
regionis omitted (or empty), the endpoint falls back to a single region at/api/device-info.
Permissions
Identical to GET /device/{idType}:{id}: the caller needs
ROLE_OAUTH2_DEVICE_READ (or to be the device’s owner with
ROLE_OAUTH2_OWN_READ). The regions themselves are not gated separately —
anything published under /api/device-info is fair game.
Example request:
GET /room/id:1/info.json?region=/api/device-info/sign,/api/device-info/agenda
Example response:
{
"data": {
"regions": [
{
"path": "/api/device-info/sign",
"content": "<h1>Rainbow Room</h1>",
"tags": [],
"references": [],
"publishedFrom": null,
"publishedTo": null,
"createdAt": "2026-04-01 09:00:00",
"updatedAt": "2026-04-01 09:00:00"
},
{
"path": "/api/device-info/agenda",
"content": "<ul><li>09:00 Keynote</li></ul>",
"tags": [],
"references": [],
"publishedFrom": null,
"publishedTo": null,
"createdAt": "2026-04-01 09:00:00",
"updatedAt": "2026-04-01 09:00:00"
}
]
},
"meta": {}
}
The internal numeric region id is intentionally not returned; clients
address regions by path.
Errors and exceptions
400 Bad Requestif any providedregionpath does not start with/api/device-info, or if a path (including the default) does not match any published region exposed to the API.Error
1401if the device cannot be found.
See the list of Error Responses for more information.
POST /device/new
Creates a new device and returns it.
Accepted fields include name, shortName, description, deviceType, deviceTags, category,
startAt, endAt, available, code, externalId, slug, rfid, and data.
PATCH /device/{idType}:{id}
Updates an existing device.
When calling this you must only provide the properties that you want to change, and nothing else.
See the list of Error Responses for more information, in particular error 1401.
DELETE /device/{idType}:{id}
Deletes an existing device.
This will soft-delete a device from the system, hard deletion is available only from the Control Room.
See the list of Error Responses for more information, in particular error 1401.
GET /device/{idType}:{id}/pong
Gets the online status of the given device.
Returns an object with online and lastSeen properties.
If the device has not been seen for more than 15 minutes, the response will have a 404 status code and online will be false.
Example response:
{
"online": true,
"lastSeen": "2023-01-01 12:00:00"
}
POST /device/ping
Sends a “ping” to the server, to communicate the client is alive and connected to the internet.
The request should contain all properties, always:
localTime: current Unix timestamp
lat: latitude, as a float
lon: longitude, as a float
battery: percentage of available battery for clients always connected to a power supply, send 100
pingInterval: the interval set on client side for sending pings
failedUploads: number of failed uploads
network: name of the network, or “LAN(X.X.X.X)” if wired in
status: if the app is running in “foreground” or “background”
configVersion: this should be 0 if the app has not downloaded any updated config
The server will respond with any global configuration, like the app logo, and if new configuration settings are available for the connected app, then they will be sent down too.
Example request:
{
"localTime": 1696201977,
"lat": -36.8700467,
"lon": 174.7728311,
"battery": 100,
"pingInterval": 60,
"failedUploads": 0,
"network": "NZZ-1701",
"status": "foreground",
"configVersion": 0
}
Example response:
{
"data": {
"logo": "",
"name": "Open Days 2025 LOCAL",
"settings": {
"enableAt": null,
"disableAt": null,
"availableFeatures": ["check-in", "check-out", "lead", "delegate-search", "ping"],
"allowRejected": false,
"delegateType": "Delegate",
"deviceHierarchy": [
["event", "organisation", "promotion"],
["location", "room", "group"],
["session"]
],
"easyInteractions": [
{"interactionType": "join", "devices": [123, 678], "label": "Attach {{name}}"},
{"interactionType": "check-in", "devices": [789, 234], "label": "Check-in to: {{name}}"}
],
"delegateSearchFilter": {"==": ["delegateType", "Delegate"]},
"deviceSearchFilter": {"in": ["deviceType", ["room", "session"]]},
"forced": ["enableAt", "disableAt", "availableFeatures", "allowRejected", "delegateType",
"deviceHierarchy", "easyInteractions", "delegateSearchFilter", "deviceSearchFilter"]
},
"configConfirmed": false,
"configVersion": 1700000000
},
"meta": []
}
You can check the List of settings below.
Device Configuration
The server holds the configuration for our mobile apps. The configuration is versioned; the version is a simple
integer (not a string) that the app should treat as an opaque token — it only ever checks whether its own version
differs from the server’s, never the magnitude. The version is derived automatically and, crucially, travels
inside the settings value itself: each app-type entry carries a version Unix timestamp that is re-stamped
whenever that entry is saved. Because the version lives in the same value the config cache serves, the version and
the settings payload always advance together — a not-yet-refreshed cache can never label stale settings with a fresh
version. The version reported to a device is the most recent of: that app type’s stamped version (the highest in
its extends chain) and, when the connected device carries its own per-device AppSettings overrides, that
device’s last-modified time. Example: 1700000000.
A control room user (admin) no longer needs to bump a version number by hand. Whenever an admin saves the global app
settings, or edits a specific device’s AppSettings overrides, the version advances on its own and all affected
apps download the new settings on their next ping and apply them.
How the layers merge
The settings an app receives is not one stored object but four layers merged in order, each overriding the one
before it:
the app type’s own entry in the global app settings;
the entry it names with
extends, and that entry’s ownextends, merged root-first — so a type declares only what differs from its base;a one-hop synonym, when the device’s type is an alias for another entry (
gateapp→expoapp);the connected device’s own
AppSettingsoverrides, from its unstructured data.
Every layer merges by the same rule: maps merge key by key, lists replace wholesale. A layer that sets one key of a nested object leaves that object’s other keys alone; a layer that declares a list means that list and not the previous one extended, so an override can shorten or reorder a list. (Before this rule was applied uniformly, layer 4 merged only at the top level, and a device overriding one key of a nested object silently discarded the rest of it.)
Because layer 4 is per device and carries the device’s last-modified time into the version, settings can be changed
for one machine, or a chosen set of machines, without editing the global app settings at all. That matters
operationally: editing the global settings clears the configuration cache and makes every app on the instance
re-pull, whereas a per-device override moves only the version of the device it was written to. Apps need no new
behaviour for this — a targeted device simply sees its configVersion change on its next ping, exactly as it would
after a global save.
The process of updating the settings of our apps relies on the Ping API. All apps should send to the server the current version of the configuration they are running (the configVersion in the Ping API). If the response payload of the ping call contains new settings, all apps should apply them, and update their current version number. Subsequent calls to ping will not return any settings, if the app version number matches the server version number.
The flow is summarised as below:
sequenceDiagram
Actor User
participant App
participant TAG
Actor Admin
User->>App: Starts App
User->>App: Pairs App (Device Discovery or Portal App-Pairing)
App->>TAG: PUT /device-config.json with "mode", "ownDevice" and the local Settings
TAG->>App: Acknowledges (200 OK or 400 Bad Request)
App->>TAG: POST /ping.json (configVersion=0)
TAG->>TAG: Computes configConfirmed=false (0 ≠ server version)
TAG->>App: Returns Settings and current configVersion=1700000000
App->>App: Applies the new Settings
App->>App: Updates local configVersion=1700000000
loop Every X seconds
App->>TAG: POST /ping.json (configVersion=1700000000)
TAG->>TAG: Computes configConfirmed=true
TAG->>App: Returns no Settings
end
Admin->>TAG: Saves the Settings (version advances to 1700050000)
App->>TAG: POST /ping.json (configVersion=1700000000)
TAG->>TAG: Computes configConfirmed=false
TAG->>App: Returns Settings and current configVersion=1700050000
App->>App: Applies the new Settings
App->>App: Updates local configVersion=1700050000
loop Every X seconds
App->>TAG: POST /ping.json (configVersion=1700050000)
TAG->>TAG: Computes configConfirmed=true
TAG->>App: Returns no Settings
end
loop As needed
User->>App: Update some local Settings
App->>TAG: PUT /device-config.json with only the local Settings
TAG->>App: Acknowledges (200 OK or 400 Bad Request)
end
Easy Interactions and Search Filters
Three settings shape what the app shows and which records it pulls. All three are listed under forced,
so the app MUST use the server-provided values and not override them locally.
easyInteractions is a JSON array of quick-action shortcuts to render against an “opened” delegate (for example, on a delegate detail screen). Each entry has the shape:
{
"interactionType": "join",
"devices": [123, 678],
"label": "Attach {{name}}"
}
interactionType— one of the interaction types configured for the project (e.g.join,check-in,check-out,lead).devices— array of numeric device IDs. The app should render one button per ID.label— the button caption. The token{{name}}is substituted with the device’snameusing the device record from the app’s local cache (populated viadeviceSearchFilter).
Given the example entries above, with devices 123, 678, 789, 234 named Welcome, Celebration,
Monday, Tuesday respectively, the app should render four buttons: Attach Welcome,
Attach Celebration, Check-in to: Monday, Check-in to: Tuesday. Tapping a button posts the
configured interaction between the opened delegate and the chosen device.
delegateSearchFilter is a search expression in the same JSON DSL accepted by
GET /delegate/list?search= (see Searching lists). When present, the app MUST include
this expression as the search parameter when listing or downloading delegates. It is the server’s
primary mechanism for scoping which delegates the app sees.
deviceSearchFilter is the same idea for devices — the app MUST forward it to
GET /device/list?search= when listing or downloading devices. The resulting device list is also
what backs the {{name}} substitution in easyInteractions, so make sure every device referenced
by ID in easyInteractions is matched by deviceSearchFilter.
Example values:
{
"easyInteractions": [
{"interactionType": "join", "devices": [123, 678], "label": "Attach {{name}}"},
{"interactionType": "check-in", "devices": [789, 234], "label": "Check-in to: {{name}}"}
],
"delegateSearchFilter": {"==": ["delegateType", "Delegate"]},
"deviceSearchFilter": {"in": ["deviceType", ["room", "session"]]}
}
Empty defaults ([] for easyInteractions, {} for the two search filters) mean “no
configured shortcut/filter” — the app behaves as if the setting were absent.
PUT /device-config
All apps should post only locally configured settings, mode and ownDevice against this endpoint. Any unchanged
variable should not be sent back to the server.
For example let’s assume the pool of global settings is:
{
"mode": "gate",
"ownDevice": 1,
"delegateType": "Delegate",
"uiMode": "light"
}
Let’s assume that the only thing that the app can configure locally is uiMode.
An example of a correct payload is as follow:
{
"value": {
"mode": "gate",
"ownDevice": 123,
"uiMode": "light"
}
}
As you can see the app MUST not send to the server the other configuration settings. Posting for example backgroundColour too, will make that configuration variable nearly impossible to manage server side.
List of settings
The server returns a list of parameters to the apps depending on their type. All values returned by the server must be intended as default values.
Some of the parameters can be tweaked locally to be different from their default value. For example an app may allow its
user to change the delegateType used for new people pushed through the delegate API, or to enable/disable the
allowRejected flag used for access control.
Some of the parameters must not be tweaked in the app, they will be included in the forced parameter. For example
the same app mentioned above which allows a user to change the delegateType, if that parameter is listed under
forced, then the app should roll back to the default value provided by the server, and prevent the user from
changing it.
Parameter |
Description |
|---|---|
enableAt |
The app should not work before the given timestamp |
disableAt |
The app should not work after the given timestamp |
availableFeatures |
List of features that should be made enabled in the app |
allowRejected |
If enabled: when a |
delegateType |
If the |
deviceHierarchy |
Shows the current hierarchy of devices. The hierarchy can be on multiple ranks. Usually it follows a three-rank system: event → location → session or organisation → event → session. The lower rank devices should be used for checking in/out, higher ranks are used to organise logically the ACL devices. |
easyInteractions |
Quick-action shortcuts the app renders against an “opened” delegate. See Easy Interactions and Search Filters. |
delegateSearchFilter |
Search-DSL JSON the app forwards to |
deviceSearchFilter |
Search-DSL JSON the app forwards to |
forced |
List of parameters that must not be tweaked in the app. |
The list of current features that can be listed under availableFeatures are:
- check-in
People can be checked in through the app
- check-out
People can be checked out through the app
- lead
Leads can be recorded through the app
- delegate-create
New delegates can be created through the app
- delegate-search
The app user can search for delegate through the app
- ping
The app should ping the server at regular intervals and send local time, failed uploads, config version
- ping-info
The app should send additional ping information to the server: battery level, status, coordinates and network name. Only included by default for the
mobileappdevice type; not available forexpoapp(or itsgateapp/leadappsynonyms).