Field devices
Field devices: 6 operations, tagged field-devices in the OpenAPI document.
| Method | Path | Summary |
|---|---|---|
GET |
/api/field-devices |
List a client’s enrolled field devices |
POST |
/api/field-devices/enrolment-codes |
Create a single-use device enrolment code |
GET |
/api/field-devices/{id} |
Get a field device with its active session count |
POST |
/api/field-devices/{id}/activate |
Reactivate a suspended field device |
POST |
/api/field-devices/{id}/revoke |
Permanently revoke a field device and its sessions |
POST |
/api/field-devices/{id}/suspend |
Suspend a field device and revoke its sessions |
Operations
Section titled “Operations”GET /api/field-devices
Section titled “GET /api/field-devices”List a client’s enrolled field devices
Operation ID: listFieldDevices
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
clientId |
query | string | no | Tenant client whose devices to list: a clt_ id or the client’s identifier |
status |
query | string | no | One of: ACTIVE, SUSPENDED, REVOKED. |
mode |
query | string | no | One of: PERSONAL, SHARED. |
page |
query | integer (int64) | no | 0-based page index (default 0) |
pageSize |
query | integer (int64) | no | Page size (default 100, max 1000) |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldDeviceListResponse |
default |
Error | application/json ErrorModel |
POST /api/field-devices/enrolment-codes
Section titled “POST /api/field-devices/enrolment-codes”Create a single-use device enrolment code
Operation ID: createFieldEnrolmentCode
Request body (required)
| Content type | Schema |
|---|---|
application/json |
CreateEnrolmentCodeRequest |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created | application/json FieldEnrolmentCodeResponse |
default |
Error | application/json ErrorModel |
GET /api/field-devices/{id}
Section titled “GET /api/field-devices/{id}”Get a field device with its active session count
Operation ID: getFieldDevice
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json FieldDeviceResponse |
default |
Error | application/json ErrorModel |
POST /api/field-devices/{id}/activate
Section titled “POST /api/field-devices/{id}/activate”Reactivate a suspended field device
Operation ID: activateFieldDevice
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json StatusChangeResponse |
default |
Error | application/json ErrorModel |
POST /api/field-devices/{id}/revoke
Section titled “POST /api/field-devices/{id}/revoke”Permanently revoke a field device and its sessions
Operation ID: revokeFieldDevice
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json StatusChangeResponse |
default |
Error | application/json ErrorModel |
POST /api/field-devices/{id}/suspend
Section titled “POST /api/field-devices/{id}/suspend”Suspend a field device and revoke its sessions
Operation ID: suspendFieldDevice
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json StatusChangeResponse |
default |
Error | application/json ErrorModel |
Schemas
Section titled “Schemas”CreateEnrolmentCodeRequest
Section titled “CreateEnrolmentCodeRequest”| Field | Type | Required | Description |
|---|---|---|---|
appCodes |
string[] | yes | |
assignedWorkerId |
string | no | PERSONAL devices only |
clientId |
string | yes | A clt_ id or the client’s identifier |
label |
string | no | |
mode |
string | yes | One of: PERSONAL, SHARED. |
FieldAppRef
Section titled “FieldAppRef”| Field | Type | Required | Description |
|---|---|---|---|
code |
string | yes | |
id |
string | yes | |
name |
string | yes |
FieldDeviceListResponse
Section titled “FieldDeviceListResponse”| Field | Type | Required | Description |
|---|---|---|---|
devices |
FieldDeviceResponse[] |
yes | |
page |
integer (int64) | yes | |
size |
integer (int64) | yes | |
total |
integer (int64) | yes |
FieldDeviceResponse
Section titled “FieldDeviceResponse”| Field | Type | Required | Description |
|---|---|---|---|
activeSessions |
integer (int64) | yes | |
apps |
FieldAppRef[] |
yes | |
assignedWorkerId |
string | no | |
attestationLevel |
string | yes | One of: STRONGBOX, TEE, SOFTWARE, NONE. |
clientId |
string | yes | |
enrolledAt |
string (date-time) | yes | |
id |
string | yes | |
jkt |
string | yes | RFC 7638 thumbprint of the device key |
label |
string | no | |
lastSeenAt |
string (date-time) | no | |
mode |
string | yes | One of: PERSONAL, SHARED. |
model |
string | no | |
platform |
string | no | |
status |
string | yes | One of: ACTIVE, SUSPENDED, REVOKED. |
unlockKey |
FieldUnlockKeyResponse |
yes |
FieldEnrolmentCodeResponse
Section titled “FieldEnrolmentCodeResponse”| Field | Type | Required | Description |
|---|---|---|---|
code |
string | yes | |
expiresAt |
string (date-time) | yes | |
qrPayload |
string | yes |
FieldUnlockKeyAttestation
Section titled “FieldUnlockKeyAttestation”| Field | Type | Required | Description |
|---|---|---|---|
attestationSecurityLevel |
string | no | One of: STRONGBOX, TEE, SOFTWARE. |
attestationVersion |
integer (int64) | no | |
authPerUse |
boolean | yes | Secure hardware requires user authentication for every use of the key |
biometricOnly |
boolean | yes | Only a strong biometric unlocks the key (no device PIN or pattern) |
challengeMatches |
boolean | yes | The attestation was made for the session that registered the key |
checkedAt |
string (date-time) | no | When the chain was checked (the registration) |
dates |
string | no | The chain’s certificates were within their validity at registration (checked once) One of: VALID, INVALID. |
datesProblem |
string | no | |
format |
string | yes | One of: ANDROID_KEY, NONE. |
meetsRequirement |
boolean | yes | |
problem |
string | no | Why a chain is MALFORMED |
provisioning |
string | no | How the attestation key reached the phone: FACTORY (expired certificates still trusted) or REMOTE (Remote Key Provisioning, dates always checked) One of: FACTORY, REMOTE. |
revocation |
string | no | What the attestation key status list said at registration One of: CLEAR, REVOKED, SUSPENDED, NOT_CHECKED_OFF, NOT_CHECKED_UNAVAILABLE. |
rootFingerprint |
string | no | Hex SHA-256 of the chain root’s public key |
securityLevel |
string | no | Where Android says the key lives One of: STRONGBOX, TEE, SOFTWARE. |
signP256 |
boolean | yes | A P-256 signing key in secure hardware |
verdict |
string | yes | NONE: no chain was sent (iOS has none). MALFORMED: the chain could not be checked. UNTRUSTED: well formed, root not configured. TRUSTED: the root is one of FC_FIELD_ATTESTATION_ROOTS One of: NONE, MALFORMED, UNTRUSTED, TRUSTED. |
FieldUnlockKeyResponse
Section titled “FieldUnlockKeyResponse”| Field | Type | Required | Description |
|---|---|---|---|
attestation |
FieldUnlockKeyAttestation |
yes | |
createdAt |
string (date-time) | yes | |
deviceId |
string | yes | |
id |
string | yes | |
lastUsedAt |
string (date-time) | no | |
liveSessions |
integer (int64) | yes | Sessions this key signed in that are still live; revoking the key (also a revoked one) ends them |
pinRequiredBy |
string (date-time) | no | |
pinVerifiedAt |
string (date-time) | yes | The last time the worker proved their PIN on the device |
revokedAt |
string (date-time) | no | |
revokedBy |
string | no | |
revokedReason |
string | no | One of: REPLACED, PIN_CHANGED, PIN_RESET, WORKER_SUSPENDED, WORKER_LOCKED, DEVICE_REVOKED, POLICY_DISABLED, POLICY_CHANGED, ADMIN, DEVICE, ATTESTATION_REVOKED. |
status |
string | yes | One of: ACTIVE, REVOKED. |
workerId |
string | yes |
StatusChangeResponse
Section titled “StatusChangeResponse”| Field | Type | Required | Description |
|---|---|---|---|
message |
string | yes |