Device identifiers

Device ID

Every Particle device has a unique 24-character hexadecimal identifier known as the Device ID. This never changes for each device, and is the recommended method of uniquely identifying a device.

In device firmware, use System.deviceID() to return a String object that contains the Device ID. This is always 24 characters, and the hex letter a-f are always lowercase.

In a webhook, {{{PARTICLE_DEVICE_ID}}} is the Device ID of the source of the event.

Most Particle cloud API calls that directly reference a device use the Device ID as the default method of identifying a device. For example, to get device information:

GET /v1/devices/:deviceId