Qubitro Documentation
SupportLog inSign Up
  • Documentation
  • Guides
  • Developers
  • Changelog
  • Qubitro REST API
  • API Reference
    • Projects
      • Create Project
      • Retrieve Projects
      • Retrieve Project by ID
      • Delete Project
      • Invite Collaborator
    • Devices
      • Create Device
      • Retrieve Devices
      • Get Device by ID
      • Delete Device
    • Storage
      • Retrieve Device Data
      • Purge Device Data
      • Retrieve Device Data Keys
      • Retrieve Device Data From Storage View
    • Aggregated View
      • Retrieve Aggregated Views
      • Retrieve Aggregated View Data
      • Retrieve Aggregated View Data Keys
      • Purge Aggregated View Data
    • Dashboards
      • Retrieve Dashboards
      • Invite Collaborator
    • Organization
      • Invite Member
      • Retrieve Groups
Powered by GitBook
On this page
Export as PDF
  1. API Reference
  2. Devices

Get Device by ID

Allows to retrieve a specific device by its ID.

PreviousRetrieve DevicesNextDelete Device

Last updated 2 months ago

Retrieve Device

get
Authorizations
Path parameters
PROJECT_IDstringRequired
DEVICE_IDstringRequired
Responses
200
OK
application/json
Responseobject
401
Unauthorized
application/json
403
Forbidden
application/json
get
GET /v2/projects/{PROJECT_ID}/devices/{DEVICE_ID} HTTP/1.1
Host: api.qubitro.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "success": true,
  "action": "get device",
  "status": 200,
  "message": "Device retrieved successfully.",
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "brand": "string",
    "model": "string",
    "avatar": "https://static.qubitro.com/portal/device/avatar/default.png",
    "last_seen": "0001-01-01T00:00:00Z",
    "tags": [
      "string"
    ],
    "device_credentials": {
      "device_id": "string",
      "device_token": "string"
    },
    "metadata": {
      "key": "value"
    }
  }
}