Lock/unlock command request
Seam calls your API to initiate a lock or unlock operation.POST https://devicecloud.example.com/locks/<LOCK_ID>/actions
Expected synchronous response
Your API should return an immediate success or failure result indicating whether the command was accepted on your end.Action completion events
After the device processes the command, your platform should send an event confirming the final result.Successful unlock event
Successful lock event
Action attribution
Each event should specify how the operation was performed. This makes it possible to correlate user intent with actual device behavior. Common values forperformed_via:
pin_codemobile_appremote_apibluetooth_keyfob_cardmanual_turn
Example:
Failure modes
Your API should clearly represent lock failures when the device cannot complete the action.Examples of device-side failures
- lock jammed
- bolt obstruction
- bolt not fully extended
- mechanism error
- firmware unable to accept commands

