> ## 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.

# Access Code Events

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

## `access_code.created`

An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) was created.

```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",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was created.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.created",
  "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 affected access code.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.created`
>
> **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.

## `access_code.changed`

An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) was changed.

```json Example webhook payload theme={"dark"}
{
  "access_code_id": "00000000-0000-0000-0000-000000000000",
  "change_reason": "",
  "changed_properties": [],
  "connected_account_custom_metadata": {},
  "connected_account_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2025-01-01T00:00:00.000Z",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was changed.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.changed",
  "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 affected access code.
>
> **change\_reason** `String`
>
> Human-readable reason for the change (e.g. `ongoing code auto-renewed`).
>
> **changed\_properties** `Array`
>
> List of properties that changed on the access code.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.changed`
>
> **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.

## `access_code.name_changed`

The name of an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) was changed on 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",
  "description": "",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "The name of an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was changed on the device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.name_changed",
  "from": {
    "name": "My Access Code"
  },
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "to": {
    "name": "My Access Code"
  },
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **access\_code\_id** `String (UUID)`
>
> ID of the affected access code.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **description** `String`
>
> Human-readable description of the change and its source.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.name_changed`
>
> **from** `Object`
>
> Previous access code name configuration.
>
> **properties**
>
> **name** `String`
>
> Previous name of the access code.
>
> **occurred\_at** `String (ISO 8601)`
>
> Date and time at which the event occurred.
>
> **to** `Object`
>
> New access code name configuration.
>
> **properties**
>
> **name** `String`
>
> New name of the access code.
>
> **workspace\_id** `String (UUID)`
>
> ID of the workspace associated with the event.

## `access_code.code_changed`

The pin code of an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) was changed on 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",
  "description": "",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "The pin code of an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was changed on the device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.code_changed",
  "from": {
    "code": "1234"
  },
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "to": {
    "code": "1234"
  },
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **access\_code\_id** `String (UUID)`
>
> ID of the affected access code.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **description** `String`
>
> Human-readable description of the change and its source.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.code_changed`
>
> **from** `Object`
>
> Previous pin code configuration.
>
> **properties**
>
> **code** `String`
>
> Previous pin code.
>
> **occurred\_at** `String (ISO 8601)`
>
> Date and time at which the event occurred.
>
> **to** `Object`
>
> New pin code configuration.
>
> **properties**
>
> **code** `String`
>
> New pin code.
>
> **workspace\_id** `String (UUID)`
>
> ID of the workspace associated with the event.

## `access_code.time_frame_changed`

The time frame of an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) was changed on 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",
  "description": "",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "The time frame of an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was changed on the device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.time_frame_changed",
  "from": {
    "ends_at": "2025-01-01T00:00:00.000Z",
    "starts_at": "2025-01-01T00:00:00.000Z"
  },
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "to": {
    "ends_at": "2025-01-01T00:00:00.000Z",
    "starts_at": "2025-01-01T00:00:00.000Z"
  },
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **access\_code\_id** `String (UUID)`
>
> ID of the affected access code.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **description** `String`
>
> Human-readable description of the change and its source.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.time_frame_changed`
>
> **from** `Object`
>
> Previous time frame configuration.
>
> **properties**
>
> **ends\_at** `String`
>
> Previous end time.
>
> **starts\_at** `String`
>
> Previous start time.
>
> **occurred\_at** `String (ISO 8601)`
>
> Date and time at which the event occurred.
>
> **to** `Object`
>
> New time frame configuration.
>
> **properties**
>
> **ends\_at** `String`
>
> New end time.
>
> **starts\_at** `String`
>
> New start time.
>
> **workspace\_id** `String (UUID)`
>
> ID of the workspace associated with the event.

## `access_code.mutations_requested`

Mutations were requested on an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md). This event fires at request time, before the change is confirmed on 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",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "Mutations were requested on an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). This event fires at request time, before the change is confirmed on the device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.mutations_requested",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "requested_mutations": [],
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **access\_code\_id** `String (UUID)`
>
> ID of the affected access code.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.mutations_requested`
>
> **occurred\_at** `String (ISO 8601)`
>
> Date and time at which the event occurred.
>
> **requested\_mutations** `Array`
>
> Array of mutations requested on the access code, each containing the mutation type and from/to values.
>
> **workspace\_id** `String (UUID)`
>
> ID of the workspace associated with the event.

## `access_code.scheduled_on_device`

An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) was [scheduled natively](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md#native-scheduling) on a device.

```json Example webhook payload theme={"dark"}
{
  "access_code_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",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was [scheduled natively](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#native-scheduling) on a device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.scheduled_on_device",
  "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 affected access code.
>
> **code** `String`
>
> Code for the affected access code.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.scheduled_on_device`
>
> **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.

## `access_code.set_on_device`

An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) was set on a device.

```json Example webhook payload theme={"dark"}
{
  "access_code_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",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was set on a device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.set_on_device",
  "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 affected access code.
>
> **code** `String`
>
> Code for the affected access code.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.set_on_device`
>
> **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.

## `access_code.removed_from_device`

An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) was removed from a 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",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was removed from a device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.removed_from_device",
  "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 affected access code.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.removed_from_device`
>
> **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.

## `access_code.delay_in_setting_on_device`

There was an unusually long delay in setting an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) on a device.

```json Example webhook payload theme={"dark"}
{
  "access_code_errors": [],
  "access_code_id": "00000000-0000-0000-0000-000000000000",
  "access_code_warnings": [],
  "connected_account_custom_metadata": {},
  "connected_account_errors": [],
  "connected_account_id": "00000000-0000-0000-0000-000000000000",
  "connected_account_warnings": [],
  "created_at": "2025-01-01T00:00:00.000Z",
  "device_custom_metadata": {},
  "device_errors": [],
  "device_id": "00000000-0000-0000-0000-000000000000",
  "device_warnings": [],
  "event_description": "There was an unusually long delay in setting an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) on a device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.delay_in_setting_on_device",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **access\_code\_errors** `Array`
>
> Errors associated with the access code.
>
> **access\_code\_id** `String (UUID)`
>
> ID of the affected access code.
>
> **access\_code\_warnings** `Array`
>
> Warnings associated with the access code.
>
> **connected\_account\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the connected account, present when connected\_account\_id is provided.
>
> **connected\_account\_errors** `Array`
>
> Errors associated with the connected account.
>
> **connected\_account\_id** `String (UUID)`
>
> ID of the connected account associated with the affected access code.
>
> **connected\_account\_warnings** `Array`
>
> Warnings associated with the connected account.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **device\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the device, present when device\_id is provided.
>
> **device\_errors** `Array`
>
> Errors associated with the device.
>
> **device\_id** `String (UUID)`
>
> ID of the device associated with the affected access code.
>
> **device\_warnings** `Array`
>
> Warnings associated with the 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: `access_code.delay_in_setting_on_device`
>
> **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.

## `access_code.failed_to_set_on_device`

An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) failed to be set on a device.

```json Example webhook payload theme={"dark"}
{
  "access_code_errors": [],
  "access_code_id": "00000000-0000-0000-0000-000000000000",
  "access_code_warnings": [],
  "connected_account_custom_metadata": {},
  "connected_account_errors": [],
  "connected_account_id": "00000000-0000-0000-0000-000000000000",
  "connected_account_warnings": [],
  "created_at": "2025-01-01T00:00:00.000Z",
  "device_custom_metadata": {},
  "device_errors": [],
  "device_id": "00000000-0000-0000-0000-000000000000",
  "device_warnings": [],
  "event_description": "An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) failed to be set on a device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.failed_to_set_on_device",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **access\_code\_errors** `Array`
>
> Errors associated with the access code.
>
> **access\_code\_id** `String (UUID)`
>
> ID of the affected access code.
>
> **access\_code\_warnings** `Array`
>
> Warnings associated with the access code.
>
> **connected\_account\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the connected account, present when connected\_account\_id is provided.
>
> **connected\_account\_errors** `Array`
>
> Errors associated with the connected account.
>
> **connected\_account\_id** `String (UUID)`
>
> ID of the connected account associated with the affected access code.
>
> **connected\_account\_warnings** `Array`
>
> Warnings associated with the connected account.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **device\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the device, present when device\_id is provided.
>
> **device\_errors** `Array`
>
> Errors associated with the device.
>
> **device\_id** `String (UUID)`
>
> ID of the device associated with the affected access code.
>
> **device\_warnings** `Array`
>
> Warnings associated with the 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: `access_code.failed_to_set_on_device`
>
> **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.

## `access_code.deleted`

An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) was deleted.

```json Example webhook payload theme={"dark"}
{
  "access_code_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",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was deleted.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.deleted",
  "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 affected access code.
>
> **code** `String`
>
> Code for the affected access code.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.deleted`
>
> **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.

## `access_code.delay_in_removing_from_device`

There was an unusually long delay in removing an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) from a device.

```json Example webhook payload theme={"dark"}
{
  "access_code_errors": [],
  "access_code_id": "00000000-0000-0000-0000-000000000000",
  "access_code_warnings": [],
  "connected_account_custom_metadata": {},
  "connected_account_errors": [],
  "connected_account_id": "00000000-0000-0000-0000-000000000000",
  "connected_account_warnings": [],
  "created_at": "2025-01-01T00:00:00.000Z",
  "device_custom_metadata": {},
  "device_errors": [],
  "device_id": "00000000-0000-0000-0000-000000000000",
  "device_warnings": [],
  "event_description": "There was an unusually long delay in removing an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) from a device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.delay_in_removing_from_device",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **access\_code\_errors** `Array`
>
> Errors associated with the access code.
>
> **access\_code\_id** `String (UUID)`
>
> ID of the affected access code.
>
> **access\_code\_warnings** `Array`
>
> Warnings associated with the access code.
>
> **connected\_account\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the connected account, present when connected\_account\_id is provided.
>
> **connected\_account\_errors** `Array`
>
> Errors associated with the connected account.
>
> **connected\_account\_id** `String (UUID)`
>
> ID of the connected account associated with the affected access code.
>
> **connected\_account\_warnings** `Array`
>
> Warnings associated with the connected account.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **device\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the device, present when device\_id is provided.
>
> **device\_errors** `Array`
>
> Errors associated with the device.
>
> **device\_id** `String (UUID)`
>
> ID of the device associated with the affected access code.
>
> **device\_warnings** `Array`
>
> Warnings associated with the 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: `access_code.delay_in_removing_from_device`
>
> **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.

## `access_code.failed_to_remove_from_device`

An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) failed to be removed from a device.

```json Example webhook payload theme={"dark"}
{
  "access_code_errors": [],
  "access_code_id": "00000000-0000-0000-0000-000000000000",
  "access_code_warnings": [],
  "connected_account_custom_metadata": {},
  "connected_account_errors": [],
  "connected_account_id": "00000000-0000-0000-0000-000000000000",
  "connected_account_warnings": [],
  "created_at": "2025-01-01T00:00:00.000Z",
  "device_custom_metadata": {},
  "device_errors": [],
  "device_id": "00000000-0000-0000-0000-000000000000",
  "device_warnings": [],
  "event_description": "An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) failed to be removed from a device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.failed_to_remove_from_device",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

> [accordion] Properties
>
> **access\_code\_errors** `Array`
>
> Errors associated with the access code.
>
> **access\_code\_id** `String (UUID)`
>
> ID of the affected access code.
>
> **access\_code\_warnings** `Array`
>
> Warnings associated with the access code.
>
> **connected\_account\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the connected account, present when connected\_account\_id is provided.
>
> **connected\_account\_errors** `Array`
>
> Errors associated with the connected account.
>
> **connected\_account\_id** `String (UUID)`
>
> ID of the connected account associated with the affected access code.
>
> **connected\_account\_warnings** `Array`
>
> Warnings associated with the connected account.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **device\_custom\_metadata** `Object (String, Boolean values)`
>
> Custom metadata of the device, present when device\_id is provided.
>
> **device\_errors** `Array`
>
> Errors associated with the device.
>
> **device\_id** `String (UUID)`
>
> ID of the device associated with the affected access code.
>
> **device\_warnings** `Array`
>
> Warnings associated with the 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: `access_code.failed_to_remove_from_device`
>
> **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.

## `access_code.modified_external_to_seam`

An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) was modified outside of Seam.

```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",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was modified outside of Seam.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.modified_external_to_seam",
  "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 affected access code.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.modified_external_to_seam`
>
> **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.

## `access_code.deleted_external_to_seam`

An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes.md) was deleted outside of Seam.

```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",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was deleted outside of Seam.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.deleted_external_to_seam",
  "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 affected access code.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.deleted_external_to_seam`
>
> **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.

## `access_code.backup_access_code_pulled`

A [backup access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes.md) was pulled from the backup access code pool and set on a device.

```json Example webhook payload theme={"dark"}
{
  "access_code_id": "00000000-0000-0000-0000-000000000000",
  "backup_access_code_id": "",
  "connected_account_custom_metadata": {},
  "connected_account_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2025-01-01T00:00:00.000Z",
  "device_custom_metadata": {},
  "device_id": "00000000-0000-0000-0000-000000000000",
  "event_description": "A [backup access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes) was pulled from the backup access code pool and set on a device.",
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "access_code.backup_access_code_pulled",
  "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 affected access code.
>
> **backup\_access\_code\_id** `String`
>
> ID of the backup access code that was pulled from the pool.
>
> **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 affected access code.
>
> **created\_at** `String (ISO 8601)`
>
> Date and time at which the event was created.
>
> **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 device associated with the affected access code.
>
> **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: `access_code.backup_access_code_pulled`
>
> **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.