Create a Credential for a User

Create a new credential for a specified ACS user

Creates a new credential for a specified ACS user.

/acs/credentials/create

post

Creates a new credential for a specified ACS user.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
credential_manager_acs_system_idstring Β· uuidOptional

ACS system ID of the credential manager for the new credential.

acs_user_idstring Β· uuidOptional

ID of the access system user to whom the new credential belongs. You must provide either acs_user_id or the combination of user_identity_id and acs_system_id.

user_identity_idstring Β· uuidOptional

ID of the user identity to whom the new credential belongs. You must provide either acs_user_id or the combination of user_identity_id and acs_system_id. If the access system contains a user with the same email_address or phone_number as the user identity that you specify, they are linked, and the credential belongs to the access system user. If the access system does not have a corresponding user, one is created.

acs_system_idstring Β· uuidOptional

ID of the access system to which the new credential belongs. You must provide either acs_user_id or the combination of user_identity_id and acs_system_id.

access_methodstring Β· enumRequired

Access method for the new credential. Supported values: code, card, mobile_key.

Possible values:
codestringOptional

Access (PIN) code for the new credential. There may be manufacturer-specific code restrictions. For details, see the applicable device or system integration guide.

Pattern: ^\d+$
is_multi_phone_sync_credentialbooleanOptional

Indicates whether the new credential is a multi-phone sync credential.

Default: false
allowed_acs_entrance_idsstring Β· uuid[]Optional

Set of IDs of the entrances for which the new credential grants access.

Default: []
starts_atstring Β· date-timeOptional

Date and time at which the validity of the new credential starts, in ISO 8601 format.

ends_atstring Β· date-timeOptional

Date and time at which the validity of the new credential ends, in ISO 8601 format. Must be a time in the future and after starts_at.

Responses
200

OK

application/json
post
/acs/credentials/create

Request

Specify the user to which the new credential belongs and the access method for the new credential by including the corresponding acs_user_id and access_method in the request body. You can also specify additional parameters, such as a code for the credential. Note that the access_method determines the additional required and useful parameters.

Request Body Parameters

Parameter
Type
Description

acs_user_id

String (UUID) Required

ID of the user to whom the new credential belongs

access_method

Enum (string) Required

Access method for the new credential. Supported values: code, card, mobile_key

code

String Optional

Access (PIN) code for the new credential There may be manufacturer-specific code restrictions. For details, see the applicable device or system integration guide.

is_multi_phone_sync_credential

Boolean Optional

Indicates whether the new credential is a multi-phone sync credential

allowed_acs_entrance_ids

Array of strings (UUIDs) Optional

Set of IDs of the entrances for which the new credential grants access

credential_manager_acs_system_id

Enum (string) Optional

ACS system ID of the credential manager for the new user

XXX_metadata

Object Optional

ACS manufacturer-specific metadata for the new credential, where XXX is the manufacturer

starts_at

Datetime Optional

Date and time at which the validity of the new credential starts, in ISO 8601 format

ends_at

Datetime Optional

Date and time at which the validity of the new credential ends, in ISO 8601 format

Sample Request

PIN Code-Based Credential

Key Card-Based Credential

Seam Mobile Key

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

Response

Returns an acs_credential containing the following properties:

Property
Description

acs_credential_id

ID of the credential

acs_user_id

ID of the user to whom the credential belongs

display_name

Display name that corresponds to the credential type

code

Access (PIN) code for the credential

acs_system_id

ID of the access control system that contains the credential

access_method

Access method for the credential. Supported values: code, card, mobile_key

external_type

Brand-specific terminology for the credential type

external_type_display_name

Display name that corresponds to the brand-specific terminology for the credential type

workspace_id

ID of the workspace that contains the credential

created_at

Date and time at which the credential was created

is_multi_phone_sync_credential

Indicates whether the credential is a multi-phone sync credential

starts_at

Date and time at which the credential validity starts, in ISO 8601 format

ends_at

Date and time at which the credential validity ends, in ISO 8601 format

XXX_metadata

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

Sample Response

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

Last updated

Was this helpful?