Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get unique device id for amazon echo

I am writing a custom skill for the amazon echo and I need to get a unique device id so I can register then product to my service. Everything I read says that you cannot get the id from the device. Has amazon changed this? Is there a work around to get a device id?

like image 656
Sam M Avatar asked Feb 07 '23 19:02

Sam M


2 Answers

This week Amazon added the Device ID (unique) to the LaunchRequest JSON payload in Alexa Skills.

{
  "session": {
    "new": true,
    "sessionId": "string",
    "application": {
      "applicationId": "string"
    },
  },
  "context": {
      "device": {
        "deviceId": "string",     
      },
  "request": {}
}  

You can use the context->device->deviceId string to uniquely identify the device from which the request came.

Read more @ https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/alexa-skills-kit-interface-reference#request-body-syntax

like image 83
mdaddy Avatar answered Feb 09 '23 09:02

mdaddy


There is no way to get a unique device ID. All you can do is get a unique User ID. There is no known workaround.

like image 44
Joseph Jaquinta Avatar answered Feb 09 '23 08:02

Joseph Jaquinta