{"info":{"_postman_id":"gomobility-iot-telematics-api-v1","name":"GoMobility IoT Telematics & EV Management API","description":"Official Postman Collection for GoMobility 2-Wheeler EV Fleet Telematics, Mobilization Commands, Webhooks, and IoT Ingestion.","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"variable":[{"key":"baseUrl","value":"http://localhost:3000","type":"string"},{"key":"clientId","value":"gomobility_client_iot","type":"string"},{"key":"clientSecret","value":"gomobility_secret_2026","type":"string"},{"key":"apiKey","value":"gomobility_secret_2026","type":"string"},{"key":"accessToken","value":"","type":"string"},{"key":"deviceId","value":"EV-2W-1001","type":"string"}],"item":[{"name":"01. Authentication","item":[{"name":"1. Issue Bearer Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.accessToken) {","    pm.collectionVariables.set(\"accessToken\", jsonData.accessToken);","    console.log(\"Access token saved to collection variable!\");","}"],"type":"text/javascript"}}],"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"clientId\": \"{{clientId}}\",\n  \"clientSecret\": \"{{clientSecret}}\"\n}"},"url":{"raw":"{{baseUrl}}/api/v1/auth/token","host":["{{baseUrl}}"],"path":["api","v1","auth","token"]},"description":"Generate 24-hour Bearer JWT access token using client credentials. The test script automatically saves the token to {{accessToken}} for all subsequent requests."}},{"name":"2. List API Credentials","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/auth/credentials","host":["{{baseUrl}}"],"path":["api","v1","auth","credentials"]}}},{"name":"3. Create New API Credential","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Java External Client\",\n  \"clientId\": \"java_client_prod\",\n  \"clientSecret\": \"java_sec_production_key_2026\"\n}"},"url":{"raw":"{{baseUrl}}/api/v1/auth/credentials","host":["{{baseUrl}}"],"path":["api","v1","auth","credentials"]}}}]},{"name":"02. Assets & Telematics","item":[{"name":"1. List All Assets (Supports Filters)","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/assets?status=MOBILIZED&networkStatus=ONLINE","host":["{{baseUrl}}"],"path":["api","v1","assets"],"query":[{"key":"status","value":"MOBILIZED","description":"MOBILIZED or IMMOBILIZED"},{"key":"networkStatus","value":"ONLINE","description":"ONLINE or OFFLINE"},{"key":"search","value":"","disabled":true}]}}},{"name":"2. Get Asset By Device ID","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/assets/{{deviceId}}","host":["{{baseUrl}}"],"path":["api","v1","assets","{{deviceId}}"]}}},{"name":"3. Update Asset (PATCH)","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"MOBILIZED\",\n  \"batteryLevel\": 92,\n  \"speed\": 38.5,\n  \"ignition\": \"ON\"\n}"},"url":{"raw":"{{baseUrl}}/api/v1/assets/{{deviceId}}","host":["{{baseUrl}}"],"path":["api","v1","assets","{{deviceId}}"]}}}]},{"name":"03. Remote Commands (Mobilize/Immobilize)","item":[{"name":"1. Dispatch Command to Single Asset","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n  \"deviceId\": \"{{deviceId}}\",\n  \"command\": \"IMMOBILIZE\",\n  \"reason\": \"Postman Integration Test\"\n}"},"url":{"raw":"{{baseUrl}}/api/v1/commands/send","host":["{{baseUrl}}"],"path":["api","v1","commands","send"]}}},{"name":"2. Dispatch Bulk Commands Across Fleet","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n  \"deviceIds\": [\n    \"EV-2W-1001\",\n    \"EV-2W-1002\",\n    \"EV-2W-1003\"\n  ],\n  \"command\": \"MOBILIZE\",\n  \"reason\": \"Postman Batch Unlock Test\"\n}"},"url":{"raw":"{{baseUrl}}/api/v1/commands/bulk","host":["{{baseUrl}}"],"path":["api","v1","commands","bulk"]}}},{"name":"3. Command Audit Log History","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/commands/history?limit=25&deviceId={{deviceId}}","host":["{{baseUrl}}"],"path":["api","v1","commands","history"],"query":[{"key":"limit","value":"25"},{"key":"deviceId","value":"{{deviceId}}"}]}}}]},{"name":"04. Telemetry Ingestion (IoT Gateway)","item":[{"name":"1. Ingest Raw IoT Telemetry Packet","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n  \"deviceId\": \"{{deviceId}}\",\n  \"lat\": 12.9352,\n  \"lng\": 77.6245,\n  \"currentOdometerReading\": 12460.5,\n  \"batteryLevel\": 86,\n  \"speed\": 34.2,\n  \"ignition\": \"ON\",\n  \"batteryTemp\": 32.8,\n  \"networkStatus\": \"ONLINE\"\n}"},"url":{"raw":"{{baseUrl}}/api/v1/telemetry/ingest","host":["{{baseUrl}}"],"path":["api","v1","telemetry","ingest"]}}}]},{"name":"05. Webhooks & Event Streams","item":[{"name":"1. List Registered Webhooks","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/webhooks","host":["{{baseUrl}}"],"path":["api","v1","webhooks"]}}},{"name":"2. Register New Webhook","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"External Audit Webhook\",\n  \"url\": \"http://localhost:3000/api/test-webhook-receiver\",\n  \"secret\": \"whsec_custom_secret_key_123\",\n  \"trackedFields\": [\n    \"status\",\n    \"batteryLevel\",\n    \"lat\",\n    \"lng\"\n  ],\n  \"filterDeviceIds\": []\n}"},"url":{"raw":"{{baseUrl}}/api/v1/webhooks","host":["{{baseUrl}}"],"path":["api","v1","webhooks"]}}},{"name":"3. Query Webhook Delivery Logs","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/webhooks/logs?limit=50","host":["{{baseUrl}}"],"path":["api","v1","webhooks","logs"]}}},{"name":"4. Trigger Test Webhook Ping","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{accessToken}}"},{"key":"X-API-Key","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n  \"customUrl\": \"http://localhost:3000/api/test-webhook-receiver\",\n  \"eventType\": \"asset.mobilized\"\n}"},"url":{"raw":"{{baseUrl}}/api/v1/webhooks/test","host":["{{baseUrl}}"],"path":["api","v1","webhooks","test"]}}}]},{"name":"06. IoT Simulator Control","item":[{"name":"1. Get Simulator Status","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/simulator","host":["{{baseUrl}}"],"path":["api","v1","simulator"]}}},{"name":"2. Start / Stop / Tick Simulator","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"TICK\"\n}"},"url":{"raw":"{{baseUrl}}/api/v1/simulator","host":["{{baseUrl}}"],"path":["api","v1","simulator"]}}}]}]}