Seam Docs
Search…
Create an Access Code
This endpoint creates a specific access code. It will create a randomly generated key code if the code field is left blank.

HTTP Request

POST /v1/access_codes

Body Parameters

Parameter
Type
Description
Required
name
String
Name of Access Code
True
start_date
iso8601 string
Start Time of the access code
False
end_date
iso8601 string
End Time of the access code
False
device_id
UUID
Device ID on which to program the code
True
code
String
Code to be programmed
False
post
https://api.getseam.com/v1
/access_codes
Create an access code
If you omit the start_date and end_date, that will create an access code with no time bound. That code will remain on the lock until it is removed.
The start_date must be in the future, and the end_date must be after the start_date.
For the 'code' field, we recommend leaving that blank and using the system-generated code, as it will be more secure.