Documentation
Devices API

Devices API

Manage your Palpable devices programmatically.


Not a developer? You don't need this page! Manage your devices through the Palpable app instead.

List Devices

Retrieve all devices associated with your account.

GET /api/devices
const res = await fetch('https://palpable.technology/api/devices', {
  headers: { 'Authorization': 'Bearer pk_your_api_key' }
})
const data = await res.json()
console.log(data.devices)

Response

{
  "devices": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Living Room Hub",
      "status": "online",
      "lastSeen": "2024-01-15T10:30:00Z",
      "createdAt": "2024-01-01T00:00:00Z",
      "modules": [
        {
          "id": "mod-123",
          "moduleId": "modulino-thermo",
          "name": "Modulino Thermo",
          "i2cAddress": 64,
          "capabilities": ["temperature", "humidity"]
        }
      ]
    }
  ]
}

Device Status Values

StatusDescription
onlineDevice is connected and responding
offlineDevice is not currently connected
pairingDevice is awaiting initial setup

Get Device

GET /api/devices/{deviceId}
const res = await fetch('https://palpable.technology/api/devices/550e8400-...', {
  headers: { 'Authorization': 'Bearer pk_your_api_key' }
})
const device = await res.json()

Returns the full device object including all detected modules with their capabilities.

Update Device

PATCH /api/devices/{deviceId}
const res = await fetch('https://palpable.technology/api/devices/550e8400-...', {
  method: 'PATCH',
  headers: {
    'Authorization': 'Bearer pk_your_api_key',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({ name: 'Main Hub' })
})

Delete Device

DELETE /api/devices/{deviceId}
const res = await fetch('https://palpable.technology/api/devices/550e8400-...', {
  method: 'DELETE',
  headers: { 'Authorization': 'Bearer pk_your_api_key' }
})

Common Module IDs

Modules are auto-detected when the device comes online. The moduleId is used to reference modules in behaviors and commands.

Module IDDescriptionCapabilities
modulino-thermoTemperature & Humiditytemperature, humidity
modulino-distanceTime-of-Flight Distancedistance
modulino-knobRotary Encoderencoder, pressed
modulino-buttons3 Tactile Buttonsbuttons
modulino-buzzerPiezo BuzzerActuator
modulino-pixels8 RGB LEDsActuator
bme280Temp/Humidity/Pressuretemperature, humidity, pressure
scd41CO2 Sensorco2, temperature, humidity
sgp40Air Quality (VOC)voc_index
veml7700Ambient Lightlux
ssd1306OLED DisplayDisplay

For the full catalog, browse the Palpable store in the app. Request new modules here (opens in a new tab).