> ## Documentation Index
> Fetch the complete documentation index at: https://www.seam.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Lock Events

> Reference for Seam Lock webhook events, including event names, JSON payload examples, and the properties your app receives.

## `lock.locked`

A [lock](https://www.seam.co/docs/low-level-apis/smart-locks.md) was locked.

```json Example webhook payload theme={"dark"}
{
  "access_code_id": "00000000-0000-0000-0000-000000000000",
  "access_code_is_managed": true,
  "action_attempt_id": "00000000-0000-0000-0000-000000000000",
  "code": "1234",
  "connected_account_custom_metadata": {},
  "connected_account_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2025-01-01T00:00:00.000Z",
  "customer_key": "",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "A [lock](https://www.seam.co/docs/low-level-apis/smart-locks) was locked.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "lock.locked",
  "is_via_bluetooth": true,
  "is_via_nfc": true,
  "method": "keycode",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **access\_code\_id** `String (UUID)`
>
> ID of the access code that was used to lock the device.
>
> **access\_code\_is\_managed** `Boolean`
>
> Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access\_code\_id is set.
>
> **action\_attempt\_id** `String (UUID)`
>
> ID of the Seam action attempt that triggered this lock. Present only when the lock was initiated through Seam (via a `LOCK_DOOR` action attempt).
>
> **code** `String`
>
> Code (PIN) that was used to lock the device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
>
> **connected\_account\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the connected account, present when connected\_account\_id is provided.
>
> **connected\_account\_id** `String (UUID)`
>
> ID of the connected account associated with the event.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **customer\_key** `String`
>
> The customer key associated with the device, if any.
>
> **device\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the device, present when device\_id is provided.
>
> **device\_id** `String (UUID)`
>
> ID of the affected device.
>
> **event\_description** `String`
>
> Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.
>
> **event\_id** `String (UUID)`
>
> ID of the event.
>
> **event\_type** `Enum (String)`
>
> Value: `lock.locked`
>
> **is\_via\_bluetooth** `Boolean`
>
> Whether the lock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.
>
> **is\_via\_nfc** `Boolean`
>
> Whether the lock action was performed by an NFC credential tap (such as an Apple Home Key or an NFC key fob) presented to the lock, rather than a direct physical interaction or a Seam-initiated remote action.
>
> **method** `Enum (String)`
>
> Method by which the lock was locked. `keycode`: an access code was used (see `access_code_id`). `manual`: a physical action such as a thumbturn or button press. `remote`: a remote action via an app, Bluetooth, or the Seam API (see `action_attempt_id` if Seam-initiated; see `is_via_bluetooth` or `is_via_nfc` for the transport). `automatic`: triggered automatically, for example by an auto-relock timer. `unknown`: could not be determined.
>
> Possible values: `keycode`, `manual`, `automatic`, `unknown`, `remote`, `card`, `mobile_key`
>
> **occurred\_at** `String (ISO 8601)`
>
> Date and time at which the event occurred.
>
> **workspace\_id** `String (UUID)`
>
> ID of the workspace associated with the event.

## `lock.unlocked`

A [lock](https://www.seam.co/docs/low-level-apis/smart-locks.md) was unlocked.

```json Example webhook payload theme={"dark"}
{
  "access_code_id": "00000000-0000-0000-0000-000000000000",
  "access_code_is_managed": true,
  "action_attempt_id": "00000000-0000-0000-0000-000000000000",
  "code": "1234",
  "connected_account_custom_metadata": {},
  "connected_account_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2025-01-01T00:00:00.000Z",
  "customer_key": "",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "A [lock](https://www.seam.co/docs/low-level-apis/smart-locks) was unlocked.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "lock.unlocked",
  "is_via_bluetooth": true,
  "is_via_nfc": true,
  "method": "keycode",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **access\_code\_id** `String (UUID)`
>
> ID of the access code that was used to unlock the affected device.
>
> **access\_code\_is\_managed** `Boolean`
>
> Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access\_code\_id is set.
>
> **action\_attempt\_id** `String (UUID)`
>
> ID of the Seam action attempt that triggered this unlock. Present only when the unlock was initiated through Seam (via an `UNLOCK_DOOR` action attempt).
>
> **code** `String`
>
> Code (PIN) that was used to unlock the affected device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
>
> **connected\_account\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the connected account, present when connected\_account\_id is provided.
>
> **connected\_account\_id** `String (UUID)`
>
> ID of the connected account associated with the event.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **customer\_key** `String`
>
> The customer key associated with the device, if any.
>
> **device\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the device, present when device\_id is provided.
>
> **device\_id** `String (UUID)`
>
> ID of the affected device.
>
> **event\_description** `String`
>
> Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.
>
> **event\_id** `String (UUID)`
>
> ID of the event.
>
> **event\_type** `Enum (String)`
>
> Value: `lock.unlocked`
>
> **is\_via\_bluetooth** `Boolean`
>
> Whether the unlock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.
>
> **is\_via\_nfc** `Boolean`
>
> Whether the unlock action was performed by an NFC credential tap (such as an Apple Home Key or an NFC key fob) presented to the lock, rather than a direct physical interaction or a Seam-initiated remote action.
>
> **method** `Enum (String)`
>
> Method by which the lock was unlocked. `keycode`: an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) was used (see `access_code_id`). `manual`: a physical action such as a thumbturn or handle press. `remote`: a remote action via an app, Bluetooth, or the Seam API (see `action_attempt_id` if Seam-initiated; see `is_via_bluetooth` or `is_via_nfc` for the transport). `automatic`: triggered automatically, for example by a time-based schedule. `unknown`: could not be determined.
>
> Possible values: `keycode`, `manual`, `automatic`, `unknown`, `remote`, `card`, `mobile_key`
>
> **occurred\_at** `String (ISO 8601)`
>
> Date and time at which the event occurred.
>
> **workspace\_id** `String (UUID)`
>
> ID of the workspace associated with the event.

## `lock.access_denied`

The [lock](https://www.seam.co/docs/low-level-apis/smart-locks.md) denied access to a user after one or more consecutive invalid attempts to unlock the device.

```json Example webhook payload theme={"dark"}
{
  "access_code_id": "00000000-0000-0000-0000-000000000000",
  "connected_account_custom_metadata": {},
  "connected_account_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2025-01-01T00:00:00.000Z",
  "customer_key": "",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "The [lock](https://www.seam.co/docs/low-level-apis/smart-locks) denied access to a user after one or more consecutive invalid attempts to unlock the device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "lock.access_denied",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "reason": {
    "message": "",
    "reason_code": "unknown_code"
  },
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **access\_code\_id** `String (UUID)`
>
> ID of the access code that was used in the unlock attempts.
>
> **connected\_account\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the connected account, present when connected\_account\_id is provided.
>
> **connected\_account\_id** `String (UUID)`
>
> ID of the connected account associated with the event.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **customer\_key** `String`
>
> The customer key associated with the device, if any.
>
> **device\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the device, present when device\_id is provided.
>
> **device\_id** `String (UUID)`
>
> ID of the affected device.
>
> **event\_description** `String`
>
> Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.
>
> **event\_id** `String (UUID)`
>
> ID of the event.
>
> **event\_type** `Enum (String)`
>
> Value: `lock.access_denied`
>
> **occurred\_at** `String (ISO 8601)`
>
> Date and time at which the event occurred.
>
> **reason** `Object`
>
> Why access was denied, when the provider reports a determinable cause. Omitted when unknown.
>
> **properties**
>
> **message** `String`
>
> Human-readable explanation of why access was denied.
>
> **reason\_code** `Enum (String)`
>
> Normalized reason a lock denied access. Provider-agnostic; not all providers report every value.
>
> Possible values: `unknown_code`, `expired_code`, `blocklisted_code`, `too_many_attempts`, `blocked_by_privacy_mode`, `credential_error`, `connection_error`
>
> **workspace\_id** `String (UUID)`
>
> ID of the workspace associated with the event.

## `lock.jammed`

The [lock](https://www.seam.co/docs/low-level-apis/smart-locks.md) reported that its bolt is jammed.

```json Example webhook payload theme={"dark"}
{
  "connected_account_custom_metadata": {},
  "connected_account_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2025-01-01T00:00:00.000Z",
  "customer_key": "",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "The [lock](https://www.seam.co/docs/low-level-apis/smart-locks) reported that its bolt is jammed.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "lock.jammed",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **connected\_account\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the connected account, present when connected\_account\_id is provided.
>
> **connected\_account\_id** `String (UUID)`
>
> ID of the connected account associated with the event.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **customer\_key** `String`
>
> The customer key associated with the device, if any.
>
> **device\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the device, present when device\_id is provided.
>
> **device\_id** `String (UUID)`
>
> ID of the affected device.
>
> **event\_description** `String`
>
> Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.
>
> **event\_id** `String (UUID)`
>
> ID of the event.
>
> **event\_type** `Enum (String)`
>
> Value: `lock.jammed`
>
> **occurred\_at** `String (ISO 8601)`
>
> Date and time at which the event occurred.
>
> **workspace\_id** `String (UUID)`
>
> ID of the workspace associated with the event.

## `lock.door_opened`

The door sensor of the [lock](https://www.seam.co/docs/low-level-apis/smart-locks.md) reported that the door was opened.

```json Example webhook payload theme={"dark"}
{
  "connected_account_custom_metadata": {},
  "connected_account_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2025-01-01T00:00:00.000Z",
  "customer_key": "",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "The door sensor of the [lock](https://www.seam.co/docs/low-level-apis/smart-locks) reported that the door was opened.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "lock.door_opened",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **connected\_account\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the connected account, present when connected\_account\_id is provided.
>
> **connected\_account\_id** `String (UUID)`
>
> ID of the connected account associated with the event.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **customer\_key** `String`
>
> The customer key associated with the device, if any.
>
> **device\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the device, present when device\_id is provided.
>
> **device\_id** `String (UUID)`
>
> ID of the affected device.
>
> **event\_description** `String`
>
> Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.
>
> **event\_id** `String (UUID)`
>
> ID of the event.
>
> **event\_type** `Enum (String)`
>
> Value: `lock.door_opened`
>
> **occurred\_at** `String (ISO 8601)`
>
> Date and time at which the event occurred.
>
> **workspace\_id** `String (UUID)`
>
> ID of the workspace associated with the event.

## `lock.door_closed`

The door sensor of the [lock](https://www.seam.co/docs/low-level-apis/smart-locks.md) reported that the door was closed.

```json Example webhook payload theme={"dark"}
{
  "connected_account_custom_metadata": {},
  "connected_account_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2025-01-01T00:00:00.000Z",
  "customer_key": "",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "The door sensor of the [lock](https://www.seam.co/docs/low-level-apis/smart-locks) reported that the door was closed.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "lock.door_closed",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **connected\_account\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the connected account, present when connected\_account\_id is provided.
>
> **connected\_account\_id** `String (UUID)`
>
> ID of the connected account associated with the event.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **customer\_key** `String`
>
> The customer key associated with the device, if any.
>
> **device\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the device, present when device\_id is provided.
>
> **device\_id** `String (UUID)`
>
> ID of the affected device.
>
> **event\_description** `String`
>
> Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.
>
> **event\_id** `String (UUID)`
>
> ID of the event.
>
> **event\_type** `Enum (String)`
>
> Value: `lock.door_closed`
>
> **occurred\_at** `String (ISO 8601)`
>
> Date and time at which the event occurred.
>
> **workspace\_id** `String (UUID)`
>
> ID of the workspace associated with the event.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.