Quick Start
Common API usage examples for Yipii IoT
This guide provides practical examples for common API operations. All examples assume you have already authenticated and have your access token.
Prerequisites
List All Assets
Fetch all assets (vehicles, equipment) in your account.
JavaScript
cURL
Response
Get Asset Location
Fetch the current location of a specific asset.
JavaScript
cURL
Response
Get Location History
Fetch historical positions for an asset within a date range.
JavaScript
cURL
Generate a Report
Request a trip report through the Reporting Service. Reports are generated asynchronously — you submit a request, then wait for completion via WebSocket or polling.
For the full async flow with WebSocket integration, see the Reporting Service guide.
JavaScript
cURL
Create a Public Tracking Link
Share live tracking with customers or partners.
JavaScript
cURL
Response
Real-time WebSocket Updates
Subscribe to live position updates over WebSocket. The server uses a Pusher-compatible protocol. For the full guide covering public tracking, mobile SDKs, scaling, and security, see Live Tracking & WebSocket.
JavaScript
Position Update Format
Error Handling
Always handle API errors gracefully.
JavaScript
Pagination
Handle paginated responses for large datasets.
JavaScript
Next Steps
- Live Tracking & WebSocket - Real-time streaming, public tracking, scaling
- Reporting Service Guide - Async report generation with WebSocket
- IoT-BE API Reference - Complete API documentation
- Reporting API Reference - Report generation endpoints
- Changelog - Track API changes
Was this page helpful?