Bridge Proxied Jobs
Bridge Proxied Jobs enable you to send commands to smart locks through a Bridge device. This acts as an intermediary that communicates with locks via Bluetooth while your application communicates with the Bridge via the API.
Contents
Job Creation
Create a job by making a POST request to:
Request Parameters
| Parameter | Type | Description |
|---|---|---|
| jobType | number | Command type identifier (see Job Types) |
| jobData | object | Command-specific parameters |
Response
Job Types
| Job Type | ID | Supported |
|---|---|---|
| Lock | 1 | Yes |
| Unlock | 2 | Yes |
| Edit Custom PIN code | 3 | No |
| Create Custom PIN code | 4 | Yes |
| Delete PIN code | 5 | Yes |
| Get Battery Level | 9 | Yes |
| Get Device Status | 10 | Yes |
| Set Maximum Incorrect PIN code Attempts | 14 | No |
| Get Activity Logs | 15 | Yes |
| Set Master PIN code | 16 | No |
| Revoke Bluetooth Guest Key | 18 | No |
| Re-enable revoked Bluetooth Guest Key | 19 | No |
| Delete RFID Card by UID | 24 | No |
| Delete Fingerprint by UID | 29 | No |
Command Details
Lock
Locks the device and optionally synchronizes its internal clock.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| lockTime | ISO_DATE | Synchronize the lock's clock | No |
Request Example
Unlock
Unlocks the device and optionally synchronizes its internal clock.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| lockTime | ISO_DATE | Synchronize the lock's clock | No |
Request Example
Create Custom PIN code
Creates a PIN code with specific access permissions and time restrictions.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| accessName | string | Display name for the PIN code | Yes |
| pin | string | 4-6 digit PIN code | Yes |
| pinType | number | PIN type (see table below) | Yes |
| startDate | string | When PIN becomes active (ISO_DATE format) | Yes |
| endDate | string | When PIN expires (ISO_DATE format) | No |
PIN Types
| Type | ID | Description |
|---|---|---|
| One-Time | 1 | Valid for 24 hours from start date |
| Permanent | 2 | Valid indefinitely from start date |
| Duration | 4 | Valid between start and end dates |
Request Example
Usage Examples
Delete PIN code
Removes a PIN code from the lock.
Note: Unactivated algoPINs can only be deleted within one week of their start time.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| pin | string | PIN code to be deleted | Yes |
Request Example
Get Battery Level
Retrieves the lock's current battery level as a percentage.
Request Example
Get Device Status
Queries the lock's current operational status.
Request Example
Get Activity Logs
Downloads activity logs from the lock. Optionally synchronizes the lock's clock.
Important: Activity logs are deleted from the lock after retrieval.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| lockTime | ISO_DATE | Synchronize the lock's clock | No |
Request Example
Error Status Codes
| Status Code | Description | Applies To |
|---|---|---|
| 400 | <field> is required |
All |
| 400 | <field> is invalid |
All |
| 400 | <field> can only contain digits 0 to 9 |
Custom PIN code Commands |
| 400 | <field> length must be 4 to 6 digits long |
Custom PIN code Commands |
| 400 | <field> must be in format YYYY-MM-DDTHH:mm:ss+hh:mm |
Custom PIN code Commands |
| 400 | <field> must be now or after |
Custom PIN code Commands |
| 400 | <field> must be after 'startDate' |
Custom Duration PIN code Command |
| 401 | No valid API key and/or access token provided | All |
| 404 | The resource was not found | All |
| 405 | Method not allowed | All |
| 406 | Bridge is offline | All |
| 415 | Unsupported media type | N/A |