githubEdit

Simulate Creating an Unmanaged Access Code

Simulates the creation of an unmanaged access codearrow-up-right 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": [],
  "workspace_id": "750fc0bc-4450-4356-8d9f-18c6a3a6b2c7"
}
chevron-rightAuthentication Methodshashtag
  • API key

  • Client session token

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

To learn more, see Authenticationarrow-up-right.

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

circle-check

Last updated

Was this helpful?