Use the following APIs to issue device token and device credentials.

Create Device Credential

Required Permissions

You must have the Create Device Credential permission to perform this operation.

API
api/device-credentials/{id}
Method
POST
Input Example
JWT_NATIVE
{}
PROPERTY_NATIVE
{"requestParams":"{\"DeviceKey\":\"1234\"}"}
TPM_NATIVE
{"requestParams":"{\"tpm_ek\":\"123456\"}"}
Response
{
  "credentials": "string"
}

Get Device Token

Required Permissions

You must have the Get Device Token permission to perform this operation.

API
/api/device-tokens
Header
x-device-auth

Enter the device credential that you created in the Create Device Credential API.

Method
GET
Required Parameters
Name Description
id

string

Device ID.
Response
{
  "deviceId": "string",
  "accessToken": "string"
}