Skip to content

Members and Permissions ​

See WebSocket API for the connection, message format and common response fields.

API index

actionOperations
biz3GetLoginUser-
biz3ManageCompanyget, add, delete, updateName
biz3ManageEmployeeget, add, update, delete, order, currentInfo
biz3ManageEmployeeGroupgetGroups, add, update, deleteGroups, addBindUser, removeBindUser, getBindDeviceGroup, removeBindDeviceGroup
biz3ManageDeviceGroupgetGroups, add, update, deleteGroups, addBindDevice, removeBindDevice, getBindUserGroup, removeBindUserGroup
biz3ManageEmployeeDeviceadd, del, get, group, updateGuestTag, generateQRToken, redeemQRToken
biz3ManageRoleget, post, delete
biz3ManageAccessCtlAuthDatagetCards, getPasscodes, getCardsByStpDevice, updateCardName, updatePasscodeName, updateCardOwner, postCards, postPasscodes, delCards, delPasscodes, clearCards, clearPasscodes

biz3GetLoginUser ​

Fetch the signed-in user's profile within a space (company) plus quotas.

biz3GetLoginUser ​

Load the current user's customerInfo (company ID, role, accessible pages, etc.) and quotas when entering or switching a space.

Request

FieldTypeRequiredDescription
emailstringYesNamed 'email', but callers pass either the login email, a space ID (companyID / spaceID from the URL / 'curLogin' from localStorage), or the fixed value 'ch_CandyhouseMobile' inside the app.
json
{
  "action": "biz3GetLoginUser",
  "email": "<companyID>"
}

Response

FieldTypeDescription
data.customerInfoobjectThe user's info in this space; fields read by the client are listed below.
data.customerInfo.companyIDstringSpace (company) ID used by almost all later requests; also saved to localStorage 'curLogin'.
data.customerInfo.subUUIDstringCurrent user's UUID.
data.customerInfo.namestringSpace name.
data.customerInfo.employeeEmailstringCurrent user's email.
data.customerInfo.employeeNamestringCurrent user's display name.
data.customerInfo.mainEmailstringMain email (used to prevent adding yourself as a member).
data.customerInfo.tagstring[]Role names; if tag[0] is 'オーナー' (owner) or 'マネージャー' (manager) the client grants access to all pages.
data.customerInfo.accessstring[]Accessible page names (e.g. 'ユーザー', 'デバイス(ドア・認証機器)', 'カード管理', '全体履歴', '開発者向け').
data.customerInfo.isSesameAppbooleanWhether this is a personal (Sesame App) space; if true the client adds the '開発者向け' page.
data.customerInfo.isAnonymousbooleanWhether this is an anonymous/guest session (used in the app).
data.customerInfo.isRootUserbooleanWhether the user is the root user (used on the home page).
data.customerInfo.envIdstringEnvironment ID (used as historyTag inside the app).
data.customerInfo.isCSbooleanWhether this is a customer-support account (controls menu items).
data.quotasobjectQuotas; the client reads quotas.memberCount (member limit) and quotas.lockCount.

Note

This action has no 'op' field. After the response the client automatically sends biz3ManageCompany/get.

biz3ManageCompany ​

List, create, delete and rename spaces (companies).

get ​

List all spaces the current user belongs to.

Request

No additional parameters.

json
{
  "action": "biz3ManageCompany",
  "op": "get"
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
dataarray<object>Space list (used only when success is true).
data[].companyIDstringSpace ID.
data[].namestringSpace name.
data[].isSesameAppbooleanWhether it is a personal (Sesame App) space; decides navigation to '/' or '/biz' on switch.
data[].feeLevelobjectPlan info; the client reads feeLevel.level, feeLevel.isRootUser and feeLevel.subscriptionId.
data[].tagstring[]User's roles in that space (in personal-space mode used to check tag[0]==='オーナー').
data[].employeeEmailstringUser's email in that space.

Note

Only sent outside the app. Whether tag/employeeEmail are always present cannot be confirmed from the code.

add ​

Create a new space (company).

Request

FieldTypeRequiredDescription
namestringYesNew space name.
employeeEmailstringYesCreator's email (from customerInfo.employeeEmail).
subUUIDstringYesCreator's user UUID (from customerInfo.subUUID).
json
{
  "action": "biz3ManageCompany",
  "op": "add",
  "name": "New Office",
  "employeeEmail": "user@example.com",
  "subUUID": "00000000-0000-4000-8000-000000000001"
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
dataobjectThe created space, appended to the space list (same shape as get's data[]).

delete ​

Delete the current space.

Request

FieldTypeRequiredDescription
companyIDstringYesID of the space to delete (priorityCompany.companyID).
json
{
  "action": "biz3ManageCompany",
  "op": "delete",
  "companyID": "<companyID>"
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
messagestringError message on failure (shown to the user as-is).
data.deletedCompanyIdstringID of the deleted space; removed from the list.
data.curCompanyIDstringSpace to switch to after deletion; the client stores it as curLogin and calls biz3GetLoginUser again.

Note

The UI only shows the delete button to the owner (tag[0]==='オーナー').

updateName ​

Rename a space.

Request

FieldTypeRequiredDescription
objobjectYesRename parameters.
obj.companyIDstringYesSpace ID (priorityCompany.companyID).
obj.namestringYesNew name.
json
{
  "action": "biz3ManageCompany",
  "op": "updateName",
  "obj": {
    "companyID": "<companyID>",
    "name": "Renamed Office"
  }
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
data.companyIDstringID of the renamed space.
data.namestringNew name.

Note

Only editable by the owner in the UI.

biz3ManageEmployee ​

Space members (contacts): list, add, update, delete, reorder, and current-user info.

get ​

Request the member list; members arrive in paged server-pushed 'pubEmployees' messages.

Request

FieldTypeRequiredDescription
companyIDstringYesSpace ID.
json
{
  "action": "biz3ManageEmployee",
  "op": "get",
  "companyID": "<companyID>"
}

Response

FieldTypeDescription
(op 'get' reply)-The client reads nothing from the direct 'get' reply.
pubEmployees: data.totalCountnumberTotal member count in the pushed message (op='pubEmployees').
pubEmployees: data.data.pagenumberPage number; page 1 replaces the list, later pages are appended.
pubEmployees: data.data.listarray<object>Member object: subUUID, employeeName, employeeEmail, tag (role names), department, phone, etc.

Note

Paged push; the client filters out members deleted within the last 10 seconds.

add ​

Add members to the space: by email/name (CSV bulk supported) or via a friend QR code.

Request

FieldTypeRequiredDescription
itemsarray<object>YesMembers to add.
items[].companyIDstringYesSpace ID.
items[].employeeEmailstringNoMember email (required for email-based add; must differ from the owner's email).
items[].employeeNamestringNoMember name (required for email-based add).
items[].tagstring[]NoRole names to assign (chosen from the role list on CSV import; 'ゲスト' excluded).
items[].phonestringNoPhone (optional).
items[].departmentstringNoDepartment (optional).
items[].friendIDstringNoFriend's user UUID (lowercase); used when adding via QR code or from the app, without email/name.
json
{
  "action": "biz3ManageEmployee",
  "op": "add",
  "items": [
    {
      "companyID": "<companyID>",
      "employeeEmail": "member@example.com",
      "employeeName": "Taro",
      "tag": [],
      "phone": "000-0000-0000",
      "department": "Sales"
    }
  ]
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
messagestringError message on failure (shown to the user as-is).

Note

message 'Limit Exceeded' means the member limit was reached; 'ユーザーは存在しません' (user not found) and the 'must include email and user name' message are localized. On success the client re-sends get.

update ​

Update a member's profile (name/department/phone), or change the current user's own nickname.

Request

FieldTypeRequiredDescription
objobjectYesUpdate payload; contains companyID plus one of the two forms below.
obj.companyIDstringYesSpace ID.
obj.subUUIDstringNoForm 1: target member UUID, sent with exactly one field to change.
obj.employeeNamestringNoForm 1: new name.
obj.departmentstringNoForm 1: new department.
obj.phonestringNoForm 1: new phone.
obj.NamestringNoForm 2 (own nickname): always 'name'.
obj.ValuestringNoForm 2: new nickname.
json
{
  "action": "biz3ManageEmployee",
  "op": "update",
  "obj": {
    "companyID": "<companyID>",
    "subUUID": "00000000-0000-4000-8000-000000000002",
    "department": "Sales"
  }
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.

Note

On success the client re-sends get.

delete ​

Remove members from the space.

Request

FieldTypeRequiredDescription
itemsarray<object>YesMembers to delete (full member objects from the list, or at least {subUUID, companyID}).
items[].subUUIDstringYesMember UUID.
items[].companyIDstringNoSpace ID (passed explicitly in personal-space mode).
json
{
  "action": "biz3ManageEmployee",
  "op": "delete",
  "items": [
    {
      "subUUID": "00000000-0000-4000-8000-000000000002",
      "companyID": "<companyID>"
    }
  ]
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
messagestringError message on failure (shown to the user as-is).

Note

The list UI does not allow selecting members whose tag[0] is 'オーナー', nor deleting yourself.

order ​

Persist the drag-and-drop order of the contact list.

Request

FieldTypeRequiredDescription
itemsarray<object>YesAll contacts in the new order.
items[].friendUUIDstringYesThe contact's subUUID.
items[].ranknumberYesRank = -index (0, -1, -2 ...); higher sorts first.
json
{
  "action": "biz3ManageEmployee",
  "op": "order",
  "items": [
    {
      "friendUUID": "00000000-0000-4000-8000-000000000001",
      "rank": 0
    },
    {
      "friendUUID": "00000000-0000-4000-8000-000000000002",
      "rank": -1
    }
  ]
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.

Note

On failure the client re-sends get.

currentInfo ​

Get the signed-in user's own profile (nickname, email, recent logins).

Request

FieldTypeRequiredDescription
excludeLoginsbooleanNoWhen true, recent-login records are not needed (only sent when true).
json
{
  "action": "biz3ManageEmployee",
  "op": "currentInfo",
  "excludeLogins": true
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
data.namestringNickname.
data.emailstringEmail.
data.substringUser ID (shown on the profile page).
data.recentLoginsstring[]Recent logins; each entry is a JSON string that parses to an array of single-key objects, from which the client reads 'model' and 'collectedAt'.

Note

The request carries no companyID.

biz3ManageEmployeeGroup ​

Manage user groups and their bindings to device groups (group keys).

getGroups ​

List all user groups in the space.

Request

FieldTypeRequiredDescription
cidstringYesSpace ID.
json
{
  "action": "biz3ManageEmployeeGroup",
  "op": "getGroups",
  "cid": "<companyID>"
}

Response

FieldTypeDescription
dataarray<object>User group list.
data[].gidstringUser group ID.
data[].namestringGroup name.
data[].uuidsstring[]subUUIDs of the group's members.
data[].deviceGroupsstring[]gids of the bound device groups.

add ​

Create a user group.

Request

FieldTypeRequiredDescription
objobjectYesNew group parameters.
obj.cidstringYesSpace ID.
obj.namestringYesGroup name.
obj.uuidsstring[]YessubUUIDs of the initial members.
json
{
  "action": "biz3ManageEmployeeGroup",
  "op": "add",
  "obj": {
    "cid": "<companyID>",
    "name": "Team A",
    "uuids": [
      "00000000-0000-4000-8000-000000000001",
      "00000000-0000-4000-8000-000000000002"
    ]
  }
}

Response

FieldTypeDescription
dataobjectThe created group, appended to the group list (same shape as getGroups data[]).

update ​

Rename a user group.

Request

FieldTypeRequiredDescription
objobjectYesUpdate parameters.
obj.cidstringYesSpace ID.
obj.gidstringYesUser group ID.
obj.namestringYesNew group name.
json
{
  "action": "biz3ManageEmployeeGroup",
  "op": "update",
  "obj": {
    "cid": "<companyID>",
    "gid": "<gid>",
    "name": "Team B"
  }
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.

deleteGroups ​

Delete user groups in bulk.

Request

FieldTypeRequiredDescription
cidstringYesSpace ID.
objsstring[]Yesgids of the groups to delete (plain string array).
json
{
  "action": "biz3ManageEmployeeGroup",
  "op": "deleteGroups",
  "cid": "<companyID>",
  "objs": [
    "<gid>"
  ]
}

Response

FieldTypeDescription
(none)-No fields read; the client re-sends getGroups.

Note

Note: unlike biz3ManageDeviceGroup/deleteGroups, objs here is a string array and cid is top-level.

addBindUser ​

Add members to a user group.

Request

FieldTypeRequiredDescription
cidstringYesSpace ID.
gidstringYesUser group ID.
uuidsstring[]YessubUUIDs of the group's current members (before the addition).
itemsarray<object>YesMembers to add (full member objects from the member list, including subUUID).
json
{
  "action": "biz3ManageEmployeeGroup",
  "op": "addBindUser",
  "cid": "<companyID>",
  "gid": "<gid>",
  "uuids": [
    "00000000-0000-4000-8000-000000000001"
  ],
  "items": [
    {
      "subUUID": "00000000-0000-4000-8000-000000000002",
      "employeeName": "Taro",
      "employeeEmail": "member@example.com"
    }
  ]
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.

Note

On success the client re-sends getGroups. How the server uses 'uuids' is not visible in the client code.

removeBindUser ​

Remove members from a user group.

Request

FieldTypeRequiredDescription
cidstringYesSpace ID.
gidstringYesUser group ID.
uuidsstring[]YessubUUIDs of the group's current members (before removal).
itemsarray<{subUUID: string}>YesMembers to remove, subUUID only.
json
{
  "action": "biz3ManageEmployeeGroup",
  "op": "removeBindUser",
  "cid": "<companyID>",
  "gid": "<gid>",
  "uuids": [
    "00000000-0000-4000-8000-000000000001",
    "00000000-0000-4000-8000-000000000002"
  ],
  "items": [
    {
      "subUUID": "00000000-0000-4000-8000-000000000002"
    }
  ]
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.

Note

On success the client re-sends getGroups.

getBindDeviceGroup ​

Get the device-group keys (group keys) granted to a user group.

Request

FieldTypeRequiredDescription
gidstringYesUser group ID.
json
{
  "action": "biz3ManageEmployeeGroup",
  "op": "getBindDeviceGroup",
  "gid": "<gid>"
}

Response

FieldTypeDescription
dataarray<object>Binding records.
data[].midstringUser (member) group ID.
data[].didstringDevice group ID.
data[].keyLevelnumber|stringKey level: 0=owner, 1=manager, 2=guest.
data[].startTimenumberValidity start (Unix seconds); empty means always available.
data[].endTimenumberValidity end (Unix seconds).

Note

The request carries no cid.

removeBindDeviceGroup ​

Revoke a group key between a user group and a device group.

Request

FieldTypeRequiredDescription
cidstringYesSpace ID.
midstringYesUser group ID.
didstringYesDevice group ID.
keyLevelnumber|stringYesKey level of the binding (from getBindDeviceGroup).
json
{
  "action": "biz3ManageEmployeeGroup",
  "op": "removeBindDeviceGroup",
  "cid": "<companyID>",
  "mid": "<gid>",
  "did": "<deviceGroupGid>",
  "keyLevel": 1
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.

biz3ManageDeviceGroup ​

Manage device (door) groups and their bindings to user groups (group keys).

getGroups ​

List all device groups in the space.

Request

FieldTypeRequiredDescription
cidstringYesSpace ID.
json
{
  "action": "biz3ManageDeviceGroup",
  "op": "getGroups",
  "cid": "<companyID>"
}

Response

FieldTypeDescription
dataarray<object>Device group list.
data[].gidstringDevice group ID.
data[].namestringGroup name.
data[].uuidsstring[]deviceUUIDs in the group.
data[].employeeGroupsstring[]gids of bound user groups.

add ​

Create a device group.

Request

FieldTypeRequiredDescription
objobjectYesNew group parameters.
obj.namestringYesGroup name.
obj.cidstringYesSpace ID.
obj.uuidsstring[]YesdeviceUUIDs of the initial devices.
json
{
  "action": "biz3ManageDeviceGroup",
  "op": "add",
  "obj": {
    "name": "1F Doors",
    "cid": "<companyID>",
    "uuids": [
      "11111111-1111-4111-8111-111111111111",
      "11111111-1111-4111-8111-111111111112"
    ]
  }
}

Response

FieldTypeDescription
(none)-No fields read; the client re-sends getGroups.

update ​

Rename a device group.

Request

FieldTypeRequiredDescription
objobjectYesUpdate parameters.
obj.cidstringYesSpace ID.
obj.gidstringYesDevice group ID.
obj.namestringYesNew group name.
json
{
  "action": "biz3ManageDeviceGroup",
  "op": "update",
  "obj": {
    "cid": "<companyID>",
    "gid": "<deviceGroupGid>",
    "name": "2F Doors"
  }
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.

deleteGroups ​

Delete device groups in bulk.

Request

FieldTypeRequiredDescription
objsarray<{gid: string, cid: string}>YesGroups to delete; each has gid and cid (space ID).
json
{
  "action": "biz3ManageDeviceGroup",
  "op": "deleteGroups",
  "objs": [
    {
      "gid": "<deviceGroupGid>",
      "cid": "<companyID>"
    }
  ]
}

Response

FieldTypeDescription
(none)-No fields read; the client re-sends getGroups.

Note

Note: unlike the user-group deleteGroups, objs here are objects and cid is inside each object.

addBindDevice ​

Add devices to a device group.

Request

FieldTypeRequiredDescription
cidstringYesSpace ID.
gidstringYesDevice group ID.
uuidsstring[]YesdeviceUUIDs currently in the group (before the addition).
itemsarray<object>YesDevices to add (full device objects from the device list, e.g. deviceUUID, deviceName, deviceModel, secretKey, keyLevel, stateInfo).
json
{
  "action": "biz3ManageDeviceGroup",
  "op": "addBindDevice",
  "cid": "<companyID>",
  "gid": "<deviceGroupGid>",
  "uuids": [
    "11111111-1111-4111-8111-111111111111"
  ],
  "items": [
    {
      "deviceUUID": "11111111-1111-4111-8111-111111111112",
      "deviceName": "Front door",
      "deviceModel": "<deviceModel>",
      "secretKey": "<secretKeyHex>",
      "keyLevel": 0
    }
  ]
}

Response

FieldTypeDescription
(none)-No fields read; the callback re-sends getGroups.

Note

Device-object fields in items come from biz3ManageDevice and are outside this document's scope.

removeBindDevice ​

Remove devices from a device group.

Request

FieldTypeRequiredDescription
cidstringYesSpace ID.
gidstringYesDevice group ID.
uuidsstring[]YesdeviceUUIDs currently in the group (before removal).
itemsarray<{deviceUUID: string, secretKey: string}>YesDevices to remove, with only deviceUUID and secretKey.
json
{
  "action": "biz3ManageDeviceGroup",
  "op": "removeBindDevice",
  "cid": "<companyID>",
  "gid": "<deviceGroupGid>",
  "uuids": [
    "11111111-1111-4111-8111-111111111111",
    "11111111-1111-4111-8111-111111111112"
  ],
  "items": [
    {
      "deviceUUID": "11111111-1111-4111-8111-111111111112",
      "secretKey": "<secretKeyHex>"
    }
  ]
}

Response

FieldTypeDescription
(none)-No fields read; the callback re-sends getGroups.

getBindUserGroup ​

Get the user groups that hold group keys for a device group.

Request

FieldTypeRequiredDescription
gidstringYesDevice group ID.
json
{
  "action": "biz3ManageDeviceGroup",
  "op": "getBindUserGroup",
  "gid": "<deviceGroupGid>"
}

Response

FieldTypeDescription
dataarray<object>Binding records.
data[].midstringUser group ID.
data[].keyLevelnumber|stringKey level: 0=owner, 1=manager, 2=guest.
data[].startTimenumberValidity start (Unix seconds); empty means always available.
data[].endTimenumberValidity end (Unix seconds).

Note

The request carries no cid.

removeBindUserGroup ​

Revoke a group key between a device group and a user group.

Request

FieldTypeRequiredDescription
cidstringYesSpace ID.
midstringYesUser group ID.
didstringYesDevice group ID.
keyLevelnumber|stringYesKey level of the binding (from getBindUserGroup).
json
{
  "action": "biz3ManageDeviceGroup",
  "op": "removeBindUserGroup",
  "cid": "<companyID>",
  "mid": "<gid>",
  "did": "<deviceGroupGid>",
  "keyLevel": 1
}

Response

FieldTypeDescription
(none)-No fields read; the callback re-fetches the bindings.

biz3ManageEmployeeDevice ​

Member device keys: share, revoke, list, share by group, guest-key labels and share QR codes.

add ​

Share device keys with one or more members (one item per member x device pair).

Request

FieldTypeRequiredDescription
itemsarray<object>YesKeys to share; one item per member × device pair.
items[].subUUIDstringYesUUID of the member receiving the key.
items[].deviceUUIDstringYesDevice UUID.
items[].keyLevelnumberYesKey level: 0=owner, 1=manager, 2=guest.
items[].deviceModelstringNoDevice model (from the device list).
items[].deviceNamestringNoDevice name (from the device list).
items[].keyIndexstringNoKey index (from the device list).
items[].secretKeystringNoDevice secret key (from the device list). For keyLevel=2 the server generates a new guest key ID instead.
items[].sesame2PublicKeystringNoDevice public key (from the device list).
items[].startTimenumberNoGuest key start time (Unix seconds); used only when keyLevel=2. Omit for no limit.
items[].endTimenumberNoGuest key end time (Unix seconds); used only when keyLevel=2. Omit for no limit.
items[].keyNamestringNoGuest key name; used only when keyLevel=2. Defaults to the current timestamp.
items[].historyTagstringNoHistory tag for the guest key; used only when keyLevel=2.
json
{
  "action": "biz3ManageEmployeeDevice",
  "op": "add",
  "items": [
    {
      "subUUID": "00000000-0000-4000-8000-000000000002",
      "deviceUUID": "11111111-1111-4111-8111-111111111111",
      "keyLevel": 2,
      "deviceModel": "sesame_5",
      "deviceName": "Front door",
      "keyIndex": "<keyIndex>",
      "secretKey": "<secretKey>",
      "sesame2PublicKey": "<sesame2PublicKey>",
      "startTime": 1700000000,
      "endTime": 1700086400
    }
  ]
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.

Note

The UI only offers keyLevel=0 when the current user holds an owner key; devices held with a guest key cannot be shared. The order in the member's device list is assigned by the server; no ordering field is needed.

del ​

Revoke a member's device key, or delete a guest key.

Request

FieldTypeRequiredDescription
deviceUUIDstringYesDevice UUID.
subUUIDstringNoForm 1: UUID of the member whose key is revoked.
guestKeyIdstringNoForm 2: guest key ID (used when the user entry has a guestKeyId).
randomTagstringNoRequired with form 2: first 8 hex chars of AES-CMAC(device secretKey, bytes 1..3 of the little-endian 4-byte current Unix time).
json
{
  "action": "biz3ManageEmployeeDevice",
  "op": "del",
  "subUUID": "00000000-0000-4000-8000-000000000002",
  "deviceUUID": "11111111-1111-4111-8111-111111111111"
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.

get ​

List all device keys held by a member.

Request

FieldTypeRequiredDescription
subUUIDstringYesMember UUID.
json
{
  "action": "biz3ManageEmployeeDevice",
  "op": "get",
  "subUUID": "00000000-0000-4000-8000-000000000002"
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
dataarray<object>Key list.
data[].deviceUUIDstringDevice UUID.
data[].subUUIDstringHolder UUID.
data[].keyLevelnumber|stringKey level: 0=owner, 1=manager, 2=guest.
data[].startAtnumberValidity start (Unix seconds); temporary key when both startAt and endAt are set.
data[].endAtnumberValidity end (Unix seconds).

group ​

Share the keys of one or more device groups with a user group (group key).

Request

FieldTypeRequiredDescription
companyIDstringYesSpace ID.
keyLevelstringYesKey level as a string: '0'=owner, '1'=manager, '2'=guest.
membersstring[]YessubUUIDs of the user group's members.
devicesstring[]YesDeduplicated deviceUUIDs of all devices in the selected device groups.
midstringYesUser group gid.
didsstring[]Yesgids of the selected device groups.
startTimenumber|stringNoOnly when keyLevel='2': temporary-use start (Unix seconds), empty string for always-available.
endTimenumber|stringNoOnly when keyLevel='2': temporary-use end (Unix seconds), empty string for always-available.
json
{
  "action": "biz3ManageEmployeeDevice",
  "op": "group",
  "companyID": "<companyID>",
  "keyLevel": "2",
  "members": [
    "00000000-0000-4000-8000-000000000001",
    "00000000-0000-4000-8000-000000000002"
  ],
  "devices": [
    "11111111-1111-4111-8111-111111111111",
    "11111111-1111-4111-8111-111111111112"
  ],
  "mid": "<gid>",
  "dids": [
    "<deviceGroupGid>"
  ],
  "startTime": "",
  "endTime": ""
}

Response

FieldTypeDescription
(none)-No fields read; the callback only ends the loading state.

updateGuestTag ​

Rename (relabel) a guest key.

Request

FieldTypeRequiredDescription
deviceUUIDstringYesDevice UUID.
guestKeyIdstringYesGuest key ID.
keyNamestringYesNew name.
json
{
  "action": "biz3ManageEmployeeDevice",
  "op": "updateGuestTag",
  "deviceUUID": "11111111-1111-4111-8111-111111111111",
  "guestKeyId": "<guestKeyId>",
  "keyName": "Visitor"
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.

generateQRToken ​

Generate a QR-code token for sharing a device key.

Request

FieldTypeRequiredDescription
deviceUUIDstringYesDevice UUID.
keyLevelnumberYesKey level: 0=owner, 1=manager, 2=guest. The UI only allows levels >= the user's own.
guestKeyIdstringNoGuest key ID when sharing an existing guest key.
namestringNoKey name when sharing an existing guest key.
isSecurebooleanNoSent as false only when secure mode is turned off; omitted means secure.
json
{
  "action": "biz3ManageEmployeeDevice",
  "op": "generateQRToken",
  "deviceUUID": "11111111-1111-4111-8111-111111111111",
  "keyLevel": 2
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
data.qrTokenstringQR content (a URL) rendered directly as a QR code.

redeemQRToken ​

Redeem a scanned QR-code URL on the server for the actual device-key content.

Request

FieldTypeRequiredDescription
qrTokenstringYesThe QR-code URL that was scanned.
json
{
  "action": "biz3ManageEmployeeDevice",
  "op": "redeemQRToken",
  "qrToken": "https://example.com/qr?t=..."
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
messagestringError message on failure (shown to the user as-is).
datastringRedeemed URL whose 'sk' parameter is base64 device-key data (first byte = product type, followed by secretKey, public key, keyIndex, etc.).

Note

An app-side code comment states the server now binds the device during redemption; the client only parses the model for navigation.

biz3ManageRole ​

Manage space roles and the pages each role may access.

get ​

List all roles in the space.

Request

FieldTypeRequiredDescription
companyIDstringYesSpace ID.
json
{
  "action": "biz3ManageRole",
  "op": "get",
  "companyID": "<companyID>"
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
messagestringError message on failure (shown to the user as-is).
dataarray<object>Role list.
data[].tagstringRole name; built-in roles are 'オーナー', 'マネージャー', 'ゲスト'.
data[].accessstring[]Accessible page names.
data[].companyIDstringSpace ID.

Note

Built-in roles are not editable in the UI: owner and manager always get all pages, guest shows as '権限なし'.

post ​

Create a role or overwrite an existing role's accessible pages.

Request

FieldTypeRequiredDescription
companyIDstringYesSpace ID.
tagstringYesRole name.
accessstring[]YesAccessible page names, from: 'ユーザー', 'デバイス(ドア・認証機器)', 'カード管理', '全体履歴', '開発者向け'.
json
{
  "action": "biz3ManageRole",
  "op": "post",
  "companyID": "<companyID>",
  "tag": "Staff",
  "access": [
    "ユーザー",
    "カード管理"
  ]
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
messagestringError message on failure (shown to the user as-is).

Note

When editing an existing role the client sends the whole role object (tag, access, companyID) as an overwrite. On success it re-sends get.

delete ​

Delete a role.

Request

FieldTypeRequiredDescription
companyIDstringYesSpace ID.
tagstringYesRole name to delete.
accessstring[]NoThe rest of the role object is sent too (access, plus the client-internal isShowAdd: true).
json
{
  "action": "biz3ManageRole",
  "op": "delete",
  "companyID": "<companyID>",
  "tag": "Staff",
  "access": [
    "ユーザー"
  ]
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
messagestringError message on failure (shown to the user as-is).

Note

Built-in roles cannot be deleted in the UI. On success the client re-sends get.

biz3ManageAccessCtlAuthData ​

Server-side data for NFC cards and passcodes on access-control devices (e.g. Sesame Touch).

getCards ​

Request the NFC cards currently linked to one or more auth devices; data arrives per device in paged 'pubCardLinkedIDs' pushes.

Request

FieldTypeRequiredDescription
objobjectYesQuery parameters.
obj.devicesstringYesComma-separated auth-device deviceUUIDs.
json
{
  "action": "biz3ManageAccessCtlAuthData",
  "op": "getCards",
  "obj": {
    "devices": "11111111-1111-4111-8111-111111111111,11111111-1111-4111-8111-111111111112"
  }
}

Response

FieldTypeDescription
(op 'getCards' reply)-The direct reply only marks loading as done; no fields read.
pubCardLinkedIDs: data.deviceUUIDstringAuth-device UUID of the push (op='pubCardLinkedIDs').
pubCardLinkedIDs: data.pagenumberPage number; 1 replaces that device's list, others append.
pubCardLinkedIDs: data.listarray<object>Card records; the client reads cardID, name, nameUUID, cardType, deviceID (auth-device UUID), subUUID (owning member).

Note

op comes from the constant AuthDataOpType.getCards = 'getCards'. The data comes from a table that clearCards/delCards wipe, so it reflects only the device's current cards.

getPasscodes ​

Request the passcodes currently linked to auth devices; data arrives per device in paged 'pubPasscodeLinkedIDs' pushes.

Request

FieldTypeRequiredDescription
objobjectYesQuery parameters.
obj.devicesstringYesComma-separated auth-device deviceUUIDs.
json
{
  "action": "biz3ManageAccessCtlAuthData",
  "op": "getPasscodes",
  "obj": {
    "devices": "11111111-1111-4111-8111-111111111111"
  }
}

Response

FieldTypeDescription
(op 'getPasscodes' reply)-The direct reply only marks loading as done.
pubPasscodeLinkedIDs: data.deviceUUIDstringAuth-device UUID of the push.
pubPasscodeLinkedIDs: data.pagenumberPage number; 1 replaces, others append.
pubPasscodeLinkedIDs: data.listarray<object>Passcode records; the client reads passwordID, name, nameUUID, passwordType, deviceID (auth-device UUID).

Note

op comes from the constant AuthDataOpType.getPasscodes = 'getPasscodes'.

getCardsByStpDevice ​

Page through every card ever registered on an auth device (including deleted history), used for export.

Request

FieldTypeRequiredDescription
objobjectYesQuery parameters.
obj.stpDeviceUUIDstringYesAuth-device UUID.
obj.lastKeystring|nullNoPaging cursor; null for the first page, then the previous response's lastKey.
obj.pageSizenumberNoPage size, default 500.
json
{
  "action": "biz3ManageAccessCtlAuthData",
  "op": "getCardsByStpDevice",
  "obj": {
    "stpDeviceUUID": "11111111-1111-4111-8111-111111111111",
    "lastKey": null,
    "pageSize": 500
  }
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
messagestringError message on failure (shown to the user as-is).
data.listarray<object>Card records; the export reads cardID, cardNameUUID, name and timestamp.
data.lastKeystring|nullOpaque cursor; empty means no more pages.
data.totalnumberTotal (documented in a code comment; not read by the client).

Note

op comes from AuthDataOpType.getCardsByStpDevice. Data comes from an append-only history table, deduplicated by cardID on the server; the client pages at most 100 times with a 30 s timeout per page.

updateCardName ​

Register or update a card's name (also used to save a newly read card to the server).

Request

FieldTypeRequiredDescription
objobjectYesCard parameters.
obj.cardIDstringYesCard ID (hex string).
obj.namestringYesCard name.
obj.cardNameUUIDstringYesCard name UUID (UUID v4).
obj.timestampnumberYesClient timestamp (milliseconds).
obj.cardTypestringYesCard type (may be an empty string).
obj.stpDeviceUUIDstringYesAuth-device UUID.
obj.ownerSubUUIDstringNoOwning member UUID (included in the new-card flow).
json
{
  "action": "biz3ManageAccessCtlAuthData",
  "op": "updateCardName",
  "obj": {
    "cardID": "0123456789ABCDEF",
    "name": "Card 1",
    "cardNameUUID": "00000000-0000-4000-8000-000000000001",
    "timestamp": 1700000000000,
    "cardType": "02",
    "stpDeviceUUID": "11111111-1111-4111-8111-111111111111"
  }
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
reqContextobjectEcho of the request obj; the client uses reqContext.stpDeviceUUID, cardID, name and cardNameUUID to update its local list.

Note

If the existing nameUUID is not a UUID v4, the client first sends an IoT command to the auth device (topic 'stp<deviceUUID>cmd') to write a new UUID, and sends this request only after the device confirms (15 s timeout).

updatePasscodeName ​

Register or update a passcode's name.

Request

FieldTypeRequiredDescription
objobjectYesPasscode parameters.
obj.keyBoardPassCodestringYesPasscode ID (each digit encoded as two hex chars, e.g. 123 -> '010203').
obj.namestringYesPasscode name.
obj.keyBoardPassCodeNameUUIDstringYesPasscode name UUID (UUID v4).
obj.timestampnumberYesClient timestamp (milliseconds).
obj.typestringYesPasscode type (may be empty).
obj.stpDeviceUUIDstringYesAuth-device UUID.
json
{
  "action": "biz3ManageAccessCtlAuthData",
  "op": "updatePasscodeName",
  "obj": {
    "keyBoardPassCode": "010203040506",
    "name": "Front desk",
    "keyBoardPassCodeNameUUID": "00000000-0000-4000-8000-000000000001",
    "timestamp": 1700000000000,
    "type": "",
    "stpDeviceUUID": "11111111-1111-4111-8111-111111111111"
  }
}

Response

FieldTypeDescription
successbooleanWhether the operation succeeded.
reqContextobjectEcho of the request obj; the client uses reqContext.stpDeviceUUID, keyBoardPassCode, name and keyBoardPassCodeNameUUID to update its list.

Note

If the existing nameUUID is not a UUID v4, the client first sends an IoT command to the auth device (topic 'stp<deviceUUID>cmd') to write a new UUID, and sends this request only after the device confirms (15 s timeout).

updateCardOwner ​

Set or clear the member who owns a card.

Request

FieldTypeRequiredDescription
objobjectYesParameters (the new-card flow sends the same full object as updateCardName).
obj.cardIDstringYesCard ID.
obj.ownerSubUUIDstringYesOwning member UUID; empty string clears it. The key must be present or the client sends nothing.
json
{
  "action": "biz3ManageAccessCtlAuthData",
  "op": "updateCardOwner",
  "obj": {
    "cardID": "0123456789ABCDEF",
    "ownerSubUUID": "00000000-0000-4000-8000-000000000002"
  }
}

Response

FieldTypeDescription
reqContext.cardIDstringEchoed card ID.
reqContext.ownerSubUUIDstringEchoed owner UUID; the client updates the card's subUUID on every device.

postCards ​

After a bulk (CSV) card import, save the list of cards written to the device to the server.

Request

FieldTypeRequiredDescription
deviceUUIDstringYesAuth-device UUID.
listarray<object>YesCard list (must not be empty).
list[].cardIDstringYesCard ID (hex).
list[].namestringYesCard name (CSV 'カード名'/name column).
list[].nameUUIDstringYesName UUID freshly generated by the client (lowercase, hyphenated).
list[].cardTypestringYesCard type, default '02'.
list[].memberIDstringNoMember subUUID matched from the CSV 'ユーザー' column.
json
{
  "action": "biz3ManageAccessCtlAuthData",
  "op": "postCards",
  "deviceUUID": "11111111-1111-4111-8111-111111111111",
  "list": [
    {
      "cardID": "0123456789ABCDEF",
      "name": "Card 1",
      "nameUUID": "00000000-0000-4000-8000-000000000001",
      "cardType": "02"
    }
  ]
}

Response

FieldTypeDescription
(none)-Triggers the callback; the client only logs it.

Note

The client first writes the cards to the device via IoT and sends this request only after that succeeds.

postPasscodes ​

After a bulk (CSV) passcode import, save the passcodes written to the device to the server.

Request

FieldTypeRequiredDescription
deviceUUIDstringYesAuth-device UUID.
listarray<object>YesPasscode list (must not be empty).
list[].passwordIDstringYesPasscode ID (each digit as two hex chars, uppercase).
list[].namestringYesPasscode name (CSV '暗証番号名' column).
list[].nameUUIDstringYesName UUID freshly generated by the client (lowercase, hyphenated).
json
{
  "action": "biz3ManageAccessCtlAuthData",
  "op": "postPasscodes",
  "deviceUUID": "11111111-1111-4111-8111-111111111111",
  "list": [
    {
      "passwordID": "010203040506",
      "name": "Front desk",
      "nameUUID": "00000000-0000-4000-8000-000000000001"
    }
  ]
}

Response

FieldTypeDescription
(none)-Triggers the callback; the client only logs it.

Note

The client first writes the passcodes to the device via IoT and sends this request only after that.

delCards ​

After the device confirms card deletion, delete the card links on the server.

Request

FieldTypeRequiredDescription
itemsarray<{deviceID: string, cardID: string}>YesCards to delete; deviceID is the auth-device UUID (cut from the IoT topic 'stp<uuid>cmd').
json
{
  "action": "biz3ManageAccessCtlAuthData",
  "op": "delCards",
  "items": [
    {
      "deviceID": "11111111-1111-4111-8111-111111111111",
      "cardID": "0123456789ABCDEF"
    }
  ]
}

Response

FieldTypeDescription
(none)-The client does not handle the response.

delPasscodes ​

After the device confirms passcode deletion, delete the passcode links on the server.

Request

FieldTypeRequiredDescription
itemsarray<{deviceID: string, passwordID: string}>YesPasscodes to delete; deviceID is the auth-device UUID.
json
{
  "action": "biz3ManageAccessCtlAuthData",
  "op": "delPasscodes",
  "items": [
    {
      "deviceID": "11111111-1111-4111-8111-111111111111",
      "passwordID": "010203040506"
    }
  ]
}

Response

FieldTypeDescription
(none)-The client has no handler branch for this op.

clearCards ​

Clear an auth device's card links on the server (the client then re-reads the cards from the device via IoT).

Request

FieldTypeRequiredDescription
objobjectYesParameters.
obj.devicesstringYesA single auth-device UUID.
json
{
  "action": "biz3ManageAccessCtlAuthData",
  "op": "clearCards",
  "obj": {
    "devices": "11111111-1111-4111-8111-111111111111"
  }
}

Response

FieldTypeDescription
(none)-Triggers the callback; no fields read.

Note

Only called when the device is online over Wi-Fi.

clearPasscodes ​

Clear an auth device's passcode links on the server (the client then re-reads via IoT).

Request

FieldTypeRequiredDescription
objobjectYesParameters.
obj.devicesstringYesA single auth-device UUID.
json
{
  "action": "biz3ManageAccessCtlAuthData",
  "op": "clearPasscodes",
  "obj": {
    "devices": "11111111-1111-4111-8111-111111111111"
  }
}

Response

FieldTypeDescription
(none)-Triggers the callback; no fields read.

Note

Only called when the device is online over Wi-Fi.