Device Creation

The DEVICE_CREATION event is used to notify when a new device is added to account. It provides real-time updates on device provisioning and availability.

Event Type: DEVICE_CREATE

Trigger Condition

Subscription to the DEVICE_CREATION event is mandatory. This event is triggered in real-time when a new device is created.

Example Payload

{
  "eventInfo": {
    "deviceTypeId": 1,
    "actionBy": "15236e28-1111-11e6-9bb5-a7cf79cf4150",
    "imei": "35260211123140864",
    "simNumber": "890145645549177347"
  },
  "messageType": "DEVICE_CREATE",
  "entityName": "1040702337",
  "customerId": 26111,
  "action": "Create",
  "entityId": "1d28138b-3679-11ef-b858-9f09b511d93a",
  "time": 1732135845682
}

Reference

Field

Description

eventInfo
JSONObject

The unique Azuga ID of the user who performed the action Example: 15236e28-1111-11e6-9bb5-a7cf79cf4150

deviceTypeId
Integer

ID of the device type created, 1 - Datalogger Example: 1

imei
String

imei number of the device created Example: 35260211123140864

simNumber
String

sim number of SIM card inserted Example: 890145645549177347

messageType
String

Type of message
Example: "DEVICE_CREATE"

entityName
String

Name of the Device Example: 1040702337

customerId
Long

The unique Azuga ID of the Customer
Example:26111

action
String

Action Performed Example: Create

entityId
String,UUID

The unique Azuga ID of the Device. This is automatically generated when the device object is created and cannot be altered. Example: 1d28138b-3679-11ef-b858-9f09b511d93a

time
Time Stamp

Time when event is created in milliseconds Example: 1732135845682