# API Endpoint to query/poll live event data of device/all device (Rest Based Grid)

**URL:** <https://community.cumulocity.com/t/api-endpoint-to-query-poll-live-event-data-of-device-all-device-rest-based-grid/4165>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [October 26, 2022, 2:19pm UTC](https://community.cumulocity.com/t/api-endpoint-to-query-poll-live-event-data-of-device-all-device-rest-based-grid/4165 "2022-10-26T14:19:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harshil\_Gandhi](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/harshil_gandhi/32/6222_2.png) [@Harshil\_Gandhi](https://community.cumulocity.com/u/Harshil_Gandhi)\
**Post date:** [October 26, 2022, 2:19pm UTC](https://community.cumulocity.com/t/api-endpoint-to-query-poll-live-event-data-of-device-all-device-rest-based-grid/4165/1 "2022-10-26T14:19:08Z")

</div>

#### What product/components do you use and which version/fix level are you on?

#### Is your question related to the free trial, or to a production (customer) instance?

#### What are you trying to achieve? Please describe it in detail.

I want to display real time event with Backend integration to rest based grid widget where i can get all fields that my device is sending to managed object.

i would like to know which exact endpoint to use along with the query expression

This is copied from sample.

As you can see, the URL is pointed to websocket endpoint exposed through the Rest Endpoint in the Grid

kindly guide me here

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/3/5/353655068da781395405513077d507304851f8c1.png)

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

No

#### Have you installed all the latest fixes for the products and systems you are using?

Yes

---

<div class="post-metadata">

**Author:** ![Darpankumar\_Lalani](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@Darpankumar\_Lalani](https://community.cumulocity.com/u/Darpankumar_Lalani)\
**Post date:** [October 27, 2022, 6:01am UTC](https://community.cumulocity.com/t/api-endpoint-to-query-poll-live-event-data-of-device-all-device-rest-based-grid/4165/2 "2022-10-27T06:01:12Z")

</div>

Duplicate of [265010](https://community.cumulocity.com/t/api-endpoint-to-query-poll-live-event-data-of-device-all-device/904) ?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [April 25, 2023, 6:01am UTC](https://community.cumulocity.com/t/api-endpoint-to-query-poll-live-event-data-of-device-all-device-rest-based-grid/4165/3 "2023-04-25T06:01:56Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
