User APIs/Share Track Links
Create Share Link
POST
/user/sharetracklinksBearer token required
ADMIN | USERContent-Type:
application/jsonRequest Body
| Name | Type | Required | Description |
|---|---|---|---|
vehicleIds | number[] | Required | Array of vehicle IDs to share |
expiryAt | string | Required | ISO 8601 expiry |
isGeofence | boolean | Optional | |
isHistory | boolean | Optional |
Request Example
JSON
{
"vehicleIds": [
101,
102
],
"expiryAt": "2026-04-15T23:59:59Z",
"isGeofence": false,
"isHistory": true
}Code Examples
curl -X POST 'https://<your-domain>:3001/user/sharetracklinks' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"vehicleIds": [
101,
102
],
"expiryAt": "2026-04-15T23:59:59Z",
"isGeofence": false,
"isHistory": true
}'