Skip to main content
POST
Creates a new Access Grant. Access Grants are the default and recommended way to grant a user access to any physical space, irrespective of the locking hardware. They work with both standalone smart locks (using device_ids) and access control systems (using acs_entrance_ids or space_ids), and can issue PIN codes, key cards, and mobile keys through a single request.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
requested_access_methods
object[]
required
access_grant_key
string

Unique key for the access grant within the workspace.

acs_entrance_ids
string<uuid>[]

Set of IDs of the entrances to which access is being granted.

customization_profile_id
string<uuid>

ID of the customization profile to apply to the Access Grant and its access methods.

device_ids
string<uuid>[]

Set of IDs of the devices to which access is being granted.

ends_at
string | null

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

name
string | null

Name for the access grant.

reservation_key
string

Reservation key for the access grant.

space_ids
string<uuid>[]

Set of IDs of existing spaces to which access is being granted.

space_keys
string[]

Set of keys of existing spaces to which access is being granted.

starts_at
string

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

user_identity
object

When used, creates a new user identity with the given details, and grants them access.

user_identity_id
string<uuid>

ID of user identity for whom access is being granted.

Response

200 - application/json

OK

access_grant
object
required

Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity while creating the new Access Grant. See the access_grant object.