List Access Codes

Get all access codes

Returns a list of all access codes.


Request

Filter the list of returned access codes by device ID or access code IDs. You can also filter by user identifier key. You must include at least device_id or access_code_ids.

Request Body Parameters

Parameter
Type
Description

device_id

String (UUID) Optional

ID of the devices for which to retrieve access codes.

access_code_ids

Array of strings (UUIDs) Optional

IDs of the access codes to retrieve.

user_identifier_key

String Optional

Your own internal user ID for the user by which to filter access codes.

Sample Request

seam.access_codes.list(
  device_id="11111111-1111-1111-1111-444444444444"
)

Response

Returns an access_codes array, in which each returned access_code contains the set of applicable access code properties. For details, see Access Codes.

Sample Response

[
  AccessCode(
    access_code_id='1bbd1eba-e4a2-4f96-b1b9-8498a5405b2b',
    device_id='11111111-1111-1111-1111-444444444444',
    type='time_bound',
    code='2345',
    created_at='2023-10-19T02:21:58.738Z',
    errors=[],
    warnings=[],
    starts_at='2025-01-01T16:00:00.000Z',
    ends_at='2025-01-22T12:00:00.000Z',
    name='my time-bound code',
    status='unset',
    common_code_key=None,
    is_managed=True,
    is_waiting_for_code_assignment=None,
    is_scheduled_on_device=False,
    pulled_backup_access_code_id=None,
    is_backup_access_code_available=False,
    is_backup=None,
    appearance=None,
    is_external_modification_allowed=False
  ),
  ...
]

Last updated

Logo

© Seam Labs, Inc. All rights reserved.