List Accessible Entrances

Get all entrances to which a specified credential grants access

Returns a list of all entrances to which a credential grants access.

/acs/credentials/list_accessible_entrances

POSThttps://connect.getseam.com/acs/credentials/list_accessible_entrances
Authorization
Body
acs_credential_id*string (uuid)
Response

OK

Body
acs_entrances*array of acs_entrance (object)
ok*boolean
Request
const response = await fetch('https://connect.getseam.com/acs/credentials/list_accessible_entrances', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer API Key",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "acs_credential_id": "123e4567-e89b-12d3-a456-426614174000"
    }),
});
const data = await response.json();
Response
{
  "acs_entrances": [
    {
      "acs_system_id": "123e4567-e89b-12d3-a456-426614174000",
      "acs_entrance_id": "123e4567-e89b-12d3-a456-426614174000",
      "created_at": "2024-09-16T19:05:45.013Z",
      "display_name": "text",
      "errors": [
        {
          "error_code": "text",
          "message": "text"
        }
      ],
      "latch_metadata": {
        "accessibility_type": "text",
        "door_name": "text",
        "door_type": "text",
        "is_connected": false
      },
      "visionline_metadata": {
        "door_name": "text",
        "door_category": "entrance",
        "profiles": [
          {
            "visionline_door_profile_id": "text",
            "visionline_door_profile_type": "BLE"
          }
        ]
      }
    }
  ],
  "ok": false
}

Request

Specify the credential for which you want to retrieve all accessible entrances by including the corresponding acs_credential_id in the request body.

Request Body Parameters

ParameterTypeDescription

acs_credential_id

String (UUID) Required

ID of the credential for which you want to retrieve all entrances to which this credential grants access

Sample Request

seam.acs.credentials.list_accessible_entrances(
  acs_credential_id="66666666-6666-6666-6666-666666666666"
)

Response

Returns an acs_entrances array, in which each returned acs_entrance contains the following properties:

PropertyDescription

acs_entrance_id

ID of the entrance

acs_system_id

ID of the access control system that contains the entrance

workspace_id

ID of the workspace that contains the user

display_name

Display name for the entrance

XXX_metadata

ACS manufacturer-specific metadata for the entrance, where XXX is the manufacturer

created_at

Date and time at which the entrance was created

Sample Response

This response contains manufacturer-specific metadata that may vary by manufacturer.

[
  AcsEntrance(
    acs_entrance_id='55555555-5555-5555-5555-555555555555',
    acs_system_id='11111111-1111-1111-1111-111111111111',
    workspace_id='00000000-0000-0000-0000-000000000000',
    visionline_metadata=
      profiles=[
        {
          'visionline_door_profile_id': 'Guest Door',
          'visionline_door_profile_type': 'BLE'
        }
      ],
      door_name='Guest Lock 2',
      door_category='guest'
    },
    latch_metadata=null,
    display_name='Guest Lock 2',
    created_at='2024-03-26T14:31:18.979Z'
  ),
  ...
]

Last updated

Logo

© Seam Labs, Inc. All rights reserved.