Simulate Creating an Unmanaged Access Code

Simulates the creation of an unmanaged access code in a sandbox workspace.

Simulates the creation of an unmanaged access code in a sandbox workspace.

Code

await seam.accessCodes.simulate.createUnmanagedAccessCode({
  device_id: "5db6ef75-2e0d-4491-bf7e-c3eb01d5c963",
  name: "My Access Code",
  code: "1234",
});

Output

{
  "access_code_id": "88fa1812-bef8-4108-9fb4-4855376c3edf",
  "code": "1234",
  "created_at": "2025-06-16T16:54:17.946283Z",
  "device_id": "5db6ef75-2e0d-4491-bf7e-c3eb01d5c963",
  "ends_at": "2025-06-23T16:54:17.946261Z",
  "errors": [],
  "is_managed": false,
  "name": "My Access Code",
  "starts_at": "2025-06-21T16:54:17.946261Z",
  "status": "set",
  "type": "time_bound",
  "warnings": []
}
Authentication Methods
  • API key

  • Client session token

  • Personal access token Must also include the seam-workspace header in the request.

To learn more, see Authentication.

Request Parameters

code String (Required)

Code of the simulated unmanaged access code.


device_id String (Required)

ID of the device for which you want to simulate the creation of an unmanaged access code.


name String (Required)

Name of the simulated unmanaged access code.


Response

unmanaged_access_code

{
  "access_code_id": "88fa1812-bef8-4108-9fb4-4855376c3edf",
  "code": "1234",
  "created_at": "2025-06-16T16:54:17.946283Z",
  "device_id": "b3439f17-7273-46f3-9e20-9a283d9cb5b4",
  "ends_at": "2025-06-23T16:54:17.946261Z",
  "errors": [],
  "is_managed": false,
  "name": "My Unmanaged Access Code",
  "starts_at": "2025-06-21T16:54:17.946261Z",
  "status": "set",
  "type": "time_bound",
  "warnings": []
}

Last updated

Was this helpful?