List event feed for device. Retrieves a device’s event history, including command activity and system events, in reverse-chronological order. The response is paginated and returns entries in the results array.
About Device Event Feed
The event feed provides an audit trail of significant device lifecycle events — enrollment state transitions, command executions, and status changes — as recorded by Esper. Each record includes a message field that describes the event in plain language (including the command issued and the initiating user), a device_status_id linking to the device status snapshot at the time of the event, and a message_id UUID. This endpoint returns paginated JSON; for bulk export of event history, use the download variant at GET .../device/{device_id}/download/eventfeed/ (default page size: 250). This endpoint is for Event Feed activities for device commands. Use (GET https://{foo}-api.esper.cloud/api/v0/devices/{deviceId}/operations/) for dispatch (Operations) commands.
Common Use Cases
Auditing who issued commands and when, tracking command state changes (acknowledged → in progress → success/failure), investigating device activity over time, and correlating events to operational issues.
Best Practices
Use limit and pagination (next/previous, or offset) to manage large event histories and reduce response size. When troubleshooting a specific window of time, page in smaller increments to avoid missing relevant events.
Workflow
Identify the device_id using a device listing endpoint.
Call this endpoint with the device_id to retrieve the device’s event feed.
Follow the next URL (or increment offset) until you’ve collected the events you need.
Learn more: https://help.esper.io/hc/en-us/articles/43110064004881-What-Are-Device-Commands
- Mock serverhttps://api.esper.io/_mock/openapi/v1/enterprise/{enterprise_id}/device/{device_id}/report/eventfeed/
- https://develop-api.esper.cloud/apihttps://develop-api.esper.cloud/api/v1/enterprise/{enterprise_id}/device/{device_id}/report/eventfeed/
curl -i -X GET \
'https://api.esper.io/_mock/openapi/v1/enterprise/{enterprise_id}/device/{device_id}/report/eventfeed/?limit=20&offset=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "count": 0, "next": "string", "previous": "string", "results": [ { … } ] }