{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/traccar/json-schema/traccar-device-schema.json",
  "title": "Device",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/traccar-openapi.yaml#/components/schemas/Device",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "Unique identifier assigned by Traccar"
    },
    "name": {
      "type": "string",
      "description": "Human friendly device label"
    },
    "uniqueId": {
      "type": "string",
      "description": "Hardware or protocol specific unique identifier"
    },
    "status": {
      "type": "string",
      "description": "Current connection status such as `online`, `offline`, or `unknown`"
    },
    "disabled": {
      "type": "boolean",
      "description": "Whether the device is disabled by an administrator"
    },
    "lastUpdate": {
      "type": [
        "string",
        "null"
      ],
      "description": "in ISO 8601 format. eg. `1963-11-22T18:30:00Z`",
      "format": "date-time"
    },
    "positionId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Identifier of the last known position"
    },
    "groupId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Parent group identifier when the device is assigned to a group"
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "description": "Contact phone number used for SMS commands"
    },
    "model": {
      "type": [
        "string",
        "null"
      ],
      "description": "Device model or hardware revision"
    },
    "contact": {
      "type": [
        "string",
        "null"
      ],
      "description": "Responsible person's contact information"
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "description": "Free form category used for grouping devices in the UI"
    },
    "attributes": {
      "type": "object",
      "description": "Custom attributes for protocol or business specific data",
      "properties": {}
    }
  }
}