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

# Space Events

> Webhook events that Seam emits for the Space resource, with example payloads and properties.

## `space.device_membership_changed`

A device was added or removed from a space.

```json Example webhook payload theme={null}
{
  "acs_entrance_ids": [],
  "created_at": "2025-01-01T00:00:00.000Z",
  "device_ids": [],
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "space.device_membership_changed",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "space_id": "00000000-0000-0000-0000-000000000000",
  "space_key": "",
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

<Accordion title="Properties">
  <ResponseField name="acs_entrance_ids" type="Array">
    IDs of all ACS entrances currently attached to the space.
  </ResponseField>

  <ResponseField name="created_at" type="String (ISO 8601)">
    Date and time at which the event was created.
  </ResponseField>

  <ResponseField name="device_ids" type="Array">
    IDs of all devices currently attached to the space.
  </ResponseField>

  <ResponseField name="event_id" type="String (UUID)">
    ID of the event.
  </ResponseField>

  <ResponseField name="event_type" type="Enum (String)">
    Value: `space.device_membership_changed`
  </ResponseField>

  <ResponseField name="occurred_at" type="String (ISO 8601)">
    Date and time at which the event occurred.
  </ResponseField>

  <ResponseField name="space_id" type="String (UUID)">
    ID of the affected space.
  </ResponseField>

  <ResponseField name="space_key" type="String">
    Unique key for the space within the workspace.
  </ResponseField>

  <ResponseField name="workspace_id" type="String (UUID)">
    ID of the workspace associated with the event.
  </ResponseField>
</Accordion>

## `space.created`

A space was created.

```json Example webhook payload theme={null}
{
  "acs_entrance_ids": [],
  "created_at": "2025-01-01T00:00:00.000Z",
  "device_ids": [],
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "space.created",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "space_id": "00000000-0000-0000-0000-000000000000",
  "space_key": "",
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

<Accordion title="Properties">
  <ResponseField name="acs_entrance_ids" type="Array">
    IDs of all ACS entrances attached to the space when it was created.
  </ResponseField>

  <ResponseField name="created_at" type="String (ISO 8601)">
    Date and time at which the event was created.
  </ResponseField>

  <ResponseField name="device_ids" type="Array">
    IDs of all devices attached to the space when it was created.
  </ResponseField>

  <ResponseField name="event_id" type="String (UUID)">
    ID of the event.
  </ResponseField>

  <ResponseField name="event_type" type="Enum (String)">
    Value: `space.created`
  </ResponseField>

  <ResponseField name="occurred_at" type="String (ISO 8601)">
    Date and time at which the event occurred.
  </ResponseField>

  <ResponseField name="space_id" type="String (UUID)">
    ID of the affected space.
  </ResponseField>

  <ResponseField name="space_key" type="String">
    Unique key for the space within the workspace.
  </ResponseField>

  <ResponseField name="workspace_id" type="String (UUID)">
    ID of the workspace associated with the event.
  </ResponseField>
</Accordion>

## `space.deleted`

A space was deleted.

```json Example webhook payload theme={null}
{
  "acs_entrance_ids": [],
  "created_at": "2025-01-01T00:00:00.000Z",
  "device_ids": [],
  "event_id": "00000000-0000-0000-0000-000000000000",
  "event_type": "space.deleted",
  "occurred_at": "2025-01-01T00:00:00.000Z",
  "space_id": "00000000-0000-0000-0000-000000000000",
  "space_key": "",
  "workspace_id": "00000000-0000-0000-0000-000000000000"
}
```

<Accordion title="Properties">
  <ResponseField name="acs_entrance_ids" type="Array">
    IDs of all ACS entrances currently attached to the space when it was deleted.
  </ResponseField>

  <ResponseField name="created_at" type="String (ISO 8601)">
    Date and time at which the event was created.
  </ResponseField>

  <ResponseField name="device_ids" type="Array">
    IDs of all devices attached to the space when it was deleted.
  </ResponseField>

  <ResponseField name="event_id" type="String (UUID)">
    ID of the event.
  </ResponseField>

  <ResponseField name="event_type" type="Enum (String)">
    Value: `space.deleted`
  </ResponseField>

  <ResponseField name="occurred_at" type="String (ISO 8601)">
    Date and time at which the event occurred.
  </ResponseField>

  <ResponseField name="space_id" type="String (UUID)">
    ID of the affected space.
  </ResponseField>

  <ResponseField name="space_key" type="String">
    Unique key for the space within the workspace.
  </ResponseField>

  <ResponseField name="workspace_id" type="String (UUID)">
    ID of the workspace associated with the event.
  </ResponseField>
</Accordion>
