The ZenduONE public REST API and SDK provide a robust set of tools for automating tasks and working with ZenduIoT data. At Zenduit, we recognize the value of APIs, using them extensively within our systems to automate processes and facilitate communication between components. We offer several APIs that developers can leverage to interact with the raw data accessible in the ZenduIoT application, including devices, video feeds, exceptions, and dispatch data.
The purpose of this integration guide is to walk you through utilizing the data available via APIs and the SDK. This guide will help you create your user interface or integrate ZenduIoT data with your tools.
The ZenduONE APIs documentation is available at ZenduONE API Docs. You can test all of the APIs in Postman by clicking the "Run in Postman" button at the top right of the page.
To access the API endpoints, you must authenticate using the Auth endpoint (the first endpoint in the API documentation). The Auth endpoint requires the following parameters in the request body:
Database
Username
Password
Contact us at servicedesk@zenduit.com to obtain these parameters and authenticate to use the APIs. The Auth endpoint will provide a session ID in response, which you will use for all other API endpoints. Please note that this session ID needs to be regenerated every 14 days.
ZenduONE offers a comprehensive list of endpoints for your development needs:
Once authenticated, use the following code snippet to retrieve device details:
curl --location 'https://one-service.zenduit.com/api/' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'JSON-RPC={ "method": "Get", "params": { "typeName": "Device", "search": { "deviceSearch": { "id": "deviceId" } }, "credentials": { "sessionId": "" } }, "type": "trax" }'
To access a live stream from a device, use the following code snippet:
curl --location 'https://one-service.zenduit.com/api/' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'JSON-RPC={ "method": "Get", "params": { "typeName": "LiveMedia", "search": { "device": { "id": "deviceId" } }, "credentials": { "sessionId": "sessionId" } }, "type": "trax" }'
ZenduONE also provides an SDK that you can use in your application development. The SDK includes functions that can be directly used in your JavaScript application. Access the SDK documentation on NPM. To install the SDK, use the following command:
npm i zen-open-api
Start building your application now. Contact us at servicedesk@zenduit.com to obtain your credentials and start building using the ZenduONE API Docs. For any other questions, feel free to email us at integrations@zenduit.com.
Slide has been added to for the reference.