Skip to content
Tim Bart edited this page Feb 2, 2015 · 3 revisions

Devices Endpoints

Retrieve a list of paired devices (pills, senses)

Request

  • Authentication Required: YES
  • Scope: DEVICE_INFORMATION_READ

GET /v1/devices

Response

[
    {
         "device_id" : "123",
         "type" : "SENSE",
         "state" : "NORMAL"
    },
    {
         "device_id" : "321",
         "type" : "PILL",
         "state" : "NORMAL"
    } 
]

Register / Link a Pill to your account

Request

  • Authentication Required: YES
  • Scope: ADMINISTRATION_WRITE
POST /v1/devices/pill

{
    "pill_id" : "123456"
}

Response

204

GET /v1/devices/info

  • Authentication required: yes
  • Scope: DEVICE_INFORMATION_READ

response:

{
  "sense_id": "F8A21FD2CDAF2E74",
  "paired_accounts": 2
}