---
updatedAt: 2026-04-29T00:49:36.000Z
agentTools:
  projectIndex: https://synaccess.readme.io/llms.txt
---

# Get Live Events

Fetch the latest events for a device. When the device is offline, recently synced events are returned with a 503 status.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Cloud.Synaccess",
    "version": "1.3"
  },
  "servers": [
    {
      "url": "https://cloud.synaccess.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "authorization",
        "in": "header",
        "x-default": "Bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "tags": [
    {
      "name": "Device Live Telemetry",
      "description": "Real-time telemetry snapshots for device outlets, inlets, banks, sensors, and events."
    }
  ],
  "x-tagGroups": [
    {
      "name": "Devices",
      "tags": [
        "Device Inventory",
        "Device Live Telemetry",
        "Device Logs",
        "Configuration",
        "Firmware"
      ]
    },
    {
      "name": "Power Control",
      "tags": [
        "Outlets",
        "PDU Outlet Groups",
        "Inlets",
        "Banks",
        "Sensors"
      ]
    },
    {
      "name": "Automation",
      "tags": [
        "Events",
        "Actions"
      ]
    },
    {
      "name": "Organization",
      "tags": [
        "Groups"
      ]
    }
  ],
  "paths": {
    "/v2/devices/{enclosureSerialNumber}/events": {
      "get": {
        "summary": "Get Live Events",
        "description": "Fetch the latest events for a device. When the device is offline, recently synced events are returned with a 503 status.",
        "operationId": "device-live-events",
        "parameters": [
          {
            "name": "enclosureSerialNumber",
            "in": "path",
            "description": "Unique serial number for the device enclosure.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 12345
                          },
                          "name": {
                            "type": "string",
                            "example": "Threshold Exceeded"
                          },
                          "triggered": {
                            "type": "boolean",
                            "example": true
                          },
                          "lastChange": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2023-08-17T19:22:11.000Z"
                          },
                          "connectionState": {
                            "type": "string",
                            "example": "Connected"
                          },
                          "stale": {
                            "type": "boolean",
                            "example": false
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "503",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "example": "DEVICE_OFFLINE"
                    },
                    "message": {
                      "type": "string",
                      "example": "Device is offline. Showing last synced events from the past week."
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "tags": [
          "Device Live Telemetry"
        ]
      }
    }
  }
}
```