List Credentials with Access to an Entrance
POST /acs/entrances/list_credentials_with_access ⇒ { acs_credentials: [acs_credential, …] }
Returns a list of all credentials with access to a specified entrance.
Request
await seam.acs.entrances.listCredentialsWithAccess({
acs_entrance_id: "123e4567-e89b-12d3-a456-426614174000",
});
Response
[
{
"acs_credential_id": "123e4567-e89b-12d3-a456-426614174000",
"acs_user_id": "123e4567-e89b-12d3-a456-426614174000",
"acs_credential_pool_id": "123e4567-e89b-12d3-a456-426614174000",
"acs_system_id": "123e4567-e89b-12d3-a456-426614174000",
"parent_acs_credential_id": "123e4567-e89b-12d3-a456-426614174000",
"display_name": "text",
"code": "text",
"card_number": "text",
"is_issued": false,
"issued_at": "2024-10-15T12:54:04.155Z",
"access_method": "code",
"external_type": "pti_card",
"external_type_display_name": "text",
"created_at": "2024-10-15T12:54:04.155Z",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"starts_at": "text",
"ends_at": "text",
"is_multi_phone_sync_credential": false,
"is_latest_desired_state_synced_with_provider": false,
"latest_desired_state_synced_with_provider_at": "2024-10-15T12:54:04.155Z"
}
]
Request
seam.acs.entrances.list_credentials_with_access(
acs_entrance_id="123e4567-e89b-12d3-a456-426614174000"
)
Response
[
AcsCredential(
acs_credential_id="123e4567-e89b-12d3-a456-426614174000",
acs_user_id="123e4567-e89b-12d3-a456-426614174000",
acs_credential_pool_id="123e4567-e89b-12d3-a456-426614174000",
acs_system_id="123e4567-e89b-12d3-a456-426614174000",
parent_acs_credential_id="123e4567-e89b-12d3-a456-426614174000",
display_name="text",
code="text",
card_number="text",
is_issued=false,
issued_at="2024-10-15T12:54:04.155Z",
access_method="code",
external_type="pti_card",
external_type_display_name="text",
created_at="2024-10-15T12:54:04.155Z",
workspace_id="123e4567-e89b-12d3-a456-426614174000",
starts_at="text",
ends_at="text",
is_multi_phone_sync_credential=false,
is_latest_desired_state_synced_with_provider=false,
latest_desired_state_synced_with_provider_at="2024-10-15T12:54:04.155Z",
)
]
Request
seam.acs.entrances.list_credentials_with_access(acs_entrance_id: "123e4567-e89b-12d3-a456-426614174000")
Response
[{"acs_credential_id" => "123e4567-e89b-12d3-a456-426614174000", "acs_user_id" => "123e4567-e89b-12d3-a456-426614174000", "acs_credential_pool_id" => "123e4567-e89b-12d3-a456-426614174000", "acs_system_id" => "123e4567-e89b-12d3-a456-426614174000", "parent_acs_credential_id" => "123e4567-e89b-12d3-a456-426614174000", "display_name" => "text", "code" => "text", "card_number" => "text", "is_issued" => false, "issued_at" => "2024-10-15T12:54:04.155Z", "access_method" => "code", "external_type" => "pti_card", "external_type_display_name" => "text", "created_at" => "2024-10-15T12:54:04.155Z", "workspace_id" => "123e4567-e89b-12d3-a456-426614174000", "starts_at" => "text", "ends_at" => "text", "is_multi_phone_sync_credential" => false, "is_latest_desired_state_synced_with_provider" => false, "latest_desired_state_synced_with_provider_at" => "2024-10-15T12:54:04.155Z"}]
Request
<?php
$seam->acs->entrances->list_credentials_with_access(
acs_entrance_id: "123e4567-e89b-12d3-a456-426614174000"
);
Response
[["acs_credential_id" => "123e4567-e89b-12d3-a456-426614174000","acs_user_id" => "123e4567-e89b-12d3-a456-426614174000","acs_credential_pool_id" => "123e4567-e89b-12d3-a456-426614174000","acs_system_id" => "123e4567-e89b-12d3-a456-426614174000","parent_acs_credential_id" => "123e4567-e89b-12d3-a456-426614174000","display_name" => "text","code" => "text","card_number" => "text","is_issued" => false,"issued_at" => "2024-10-15T12:54:04.155Z","access_method" => "code","external_type" => "pti_card","external_type_display_name" => "text","created_at" => "2024-10-15T12:54:04.155Z","workspace_id" => "123e4567-e89b-12d3-a456-426614174000","starts_at" => "text","ends_at" => "text","is_multi_phone_sync_credential" => false,"is_latest_desired_state_synced_with_provider" => false,"latest_desired_state_synced_with_provider_at" => "2024-10-15T12:54:04.155Z"]]
Request
seam acs entrances list-credentials-with-access --acs_entrance_id "123e4567-e89b-12d3-a456-426614174000"
Response
[
{
"acs_credential_id": "123e4567-e89b-12d3-a456-426614174000",
"acs_user_id": "123e4567-e89b-12d3-a456-426614174000",
"acs_credential_pool_id": "123e4567-e89b-12d3-a456-426614174000",
"acs_system_id": "123e4567-e89b-12d3-a456-426614174000",
"parent_acs_credential_id": "123e4567-e89b-12d3-a456-426614174000",
"display_name": "text",
"code": "text",
"card_number": "text",
"is_issued": false,
"issued_at": "2024-10-15T12:54:04.155Z",
"access_method": "code",
"external_type": "pti_card",
"external_type_display_name": "text",
"created_at": "2024-10-15T12:54:04.155Z",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"starts_at": "text",
"ends_at": "text",
"is_multi_phone_sync_credential": false,
"is_latest_desired_state_synced_with_provider": false,
"latest_desired_state_synced_with_provider_at": "2024-10-15T12:54:04.155Z"
}
]
Request
package main
import api "github.com/seamapi/go"
import entrances "github.com/seamapi/go/entrances"
func main() {
client.Acs.Entrances.ListCredentialsWithAccess(
context.Background(),
entrances.EntrancesListCredentialsWithAccessRequest{
AcsEntranceId: api.String("123e4567-e89b-12d3-a456-426614174000"),
},
)
}
Response
[]api.AcsCredential{api.AcsCredential{AcsCredentialId: "123e4567-e89b-12d3-a456-426614174000", AcsUserId: "123e4567-e89b-12d3-a456-426614174000", AcsCredentialPoolId: "123e4567-e89b-12d3-a456-426614174000", AcsSystemId: "123e4567-e89b-12d3-a456-426614174000", ParentAcsCredentialId: "123e4567-e89b-12d3-a456-426614174000", DisplayName: "text", Code: "text", CardNumber: "text", IsIssued: false, IssuedAt: "2024-10-15T12:54:04.155Z", AccessMethod: "code", ExternalType: "pti_card", ExternalTypeDisplayName: "text", CreatedAt: "2024-10-15T12:54:04.155Z", WorkspaceId: "123e4567-e89b-12d3-a456-426614174000", StartsAt: "text", EndsAt: "text", IsMultiPhoneSyncCredential: false, IsLatestDesiredStateSyncedWithProvider: false, LatestDesiredStateSyncedWithProviderAt: "2024-10-15T12:54:04.155Z"}}
Request Parameters
acs_entrance_id
acs_entrance_id
Type: string
Required: Yes
include_if
include_if
Type: array
Required: No
Return Type
Array<acs_credential>
Last updated