IoT Integrator

Create Pre-Shared Device Key

Post a new Custom Pre-Shared Key for a specific Device.

post/v1/integrate/devices/{deviceId}/presharedkey

Request

  • Base URL
    https://api.1nce.com/management-api
  • Auth
    HTTP bearer

Path parameters

deviceIdstring required
Example:<device_id>

The unique device ID which identifies each 1NCE SIM. Can be obtained from the Get All Devices API query. For 1NCE SIMS the device ID is equal to its iccid.

Request body

secretKeystring required

Pre-shared secret key for a device.

protocol'COAP' | 'LWM2M' required

Protocol PSK is applied for

format'STRING' | 'HEX'

The format in which the secret key was provided.

Example request

{
  "secretKey": "<custom_pre-shared_key>"
}

Response

OK

deviceIdstring required

Identifier of the device.

identitystring required

Client identity of the pre-shared key.

secretKeystring required

Secret key of the pre-shared key.

createdAtstring date-time required

Created timestamp of the pre-shared key.

updatedAtstring date-time required

Updated timestamp of the pre-shared key.

protocol'COAP' | 'LWM2M' required

Protocol PSK is applied for

format'STRING' | 'HEX' required

The format in which the secret key was provided.

Example response

{
  "deviceId": "<device_id>",
  "identity": "<identity>",
  "secretKey": "<secret_key>",
  "createdAt": "2022-03-07T08:51:29.015Z",
  "updatedAt": "2022-03-07T08:51:29.015Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.