Generate a Code

Generates a code for an access code, given a device ID.

Generates a code for an access code, given a device ID.

Code:

await seam.accessCodes.generateCode({
  device_id: "02cd5099-d9f8-45a1-a9c0-f2ecbd334792",
});

Output:

{ "device_id": "02cd5099-d9f8-45a1-a9c0-f2ecbd334792", "code": "1234" }
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

device_id String (Required)

ID of the device for which you want to generate a code.


Response

Last updated

Was this helpful?