This operation was normalized from a MapmyIndia-generation specification. Validate its current Mappls host, path, package entitlement, authentication generation, and commercial availability before production use.
Call the operation
https://intouch.mapmyindia.com/iot/api/deviceshttps://intouch.mapmyindia.com/iot/apiParameters
idThis is the device's ID, a non-mandatory parameter. If not passed then by default the API will return the list of all active devices in the account.
1includeInActiveNon mandatory boolean field. If this field is not sent then by default API response will send all active devices. If "true" then API reponse will have inactive devices along with active devices. If "false" then API will return only active devices
trueignoreBeaconNon mandatory field. If set to true then API will return all devices except those whose device type is beacon(mobile).
truestateNon mandatory field. Input timestamp in this field to fetch only those live locations of devices which have come after the input timestamp. If "state" is sent then by default only active devices will be fetched irrespective of the status of "includeInActive" attribute.
1700000000000Build your request in eight languages
Change source-backed examples once, validate required inputs, and copy the synchronized cURL, JavaScript, Python, Java, C#, Go, PHP, or Ruby request. Credentials remain environment references, and this page never sends a provider request.
https://intouch.mapmyindia.com/iot/api/devices?id=1&includeInActive=true&ignoreBeacon=true&state=1700000000000curl --request GET \
--url 'https://intouch.mapmyindia.com/iot/api/devices?id=1&includeInActive=true&ignoreBeacon=true&state=1700000000000' \
--header "Accept: application/json" \
--header "Authorization: Bearer ${MAPPLS_INTOUCH_TOKEN}"Credential-safe by constructionSet MAPPLS_INTOUCH_TOKEN only in your trusted runtime. Code generation stays local. Sandbox execution sends only bounded fixture inputs to this developer platform and never reads a credential or calls Mappls.
Send a production-shaped request
Examples use environment-backed access tokens, explicit timeouts where supported, status checks, and JSON bodies derived from the source schema. Replace sample identifiers and coordinates with values from your application.
curl --request GET \
--url 'https://intouch.mapmyindia.com/iot/api/devices' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Responses
OK - successful operation
Device Not Found
Bad Request - Invalid device ID supplied or invalid data type. For example, input attribute "id" is integer but string value gets passed.
Unauthorized Request. Access to API is forbidden.
Not Found - URL Not Found
200 response fields
dataNo field description in the source contract.
exampledata[].idNo field description in the source contract.
1data[].activedevice active statusAllowed: true · false
truedata[].statusdevice movement status 1 -> moving 2 -> idle i,e ignition is on and speed stopped i,e engine is off 4 -> towing i,e ignition is off, but vehicle speed 5 -> no data i,e no communication of device with intouch server or no GPRS signal 6 -> power off 7 -> no gps i,e satellite count is less than 4 8 -> on trip i,e device is currently on an active trip 9 -> free vehicle i,e device is not on any active trip
1data[].vehicleBatteryNo field description in the source contract.
13568.98data[].locationNo field description in the source contract.
28.612964,77.229463data[].location.gpsTimeNo field description in the source contract.
1700000000000data[].location.gprsTimeNo field description in the source contract.
1700000000000data[].location.latitudeNo field description in the source contract.
28.612964data[].location.longitudeNo field description in the source contract.
77.229463data[].location.addressNo field description in the source contract.
244, Okhla Industrial Estate Phase 3, New Delhi, Delhi. 2 m from Usha Exim Pvt Ltd pin-110020data[].location.altitudeNo field description in the source contract.
234data[].location.headingNo field description in the source contract.
196.868data[].location.speedKphNo field description in the source contract.
27.85data[].location.odometerNo field description in the source contract.
12548.22data[].deviceDetailsNo field description in the source contract.
exampledata[].deviceDetails.nameNo field description in the source contract.
DL3CCM8097data[].deviceDetails.registrationNumberNo field description in the source contract.
DL3CCM8097data[].deviceDetails.deviceTypeNo field description in the source contract.Allowed: car · truck · bus · bike · tracktor · JCB · excavator
cardata[].alertsNo field description in the source contract.
exampledata[].alerts.deviceIdWill come only in case of /alarmLog GET API response
8989data[].alerts.timestampTime at which the alert got generated
1700000000000data[].alerts.latitudeNo field description in the source contract.
28.612964data[].alerts.longitudeNo field description in the source contract.
77.229463data[].alerts.addressLocation address at which the alarm got generated
237, Okhla Industrial Estate Phase 3, New Delhi, Delhi. 19 m from Wipro BPO Corporate Office pin-110020data[].alerts.alarmTypeType of alarm to create. Following are the alarm types & their corresponding IDs. IGNITION: 21, OVERSPEED: 22, UNPLUGGED: 23, PANIC: 24, GEOFENCE: 26, STOPPAGE: 27, IDLE: 28, TOWING: 29, GPRS CONNECTIVITY: 126, VEHICLE BATTERY: 129, MILEAGE: 133, GPS CONNECTIVITY: 146, DISTANCE COVERED: 151, INTERNAL BATTERY VOLTAGE:161
28data[].alerts.limitAlarm limit as set in the config. For example, if an overspeed alarm set on limit of 44 km/hr in the alarm config setting, then this attribute will return 44 km/hr
44data[].alerts.durationAlarm duration limit as set in the alarm config section. For example, if duration of overspeed alarm is set as 20 secs, then the alarm will generate when the vehicle overspeeds for a duration of 20 secs
20data[].alerts.actualLimitThe actual data received from the device at that particular moment when the alarm got generated
57data[].alerts.actualDurationActual duration for which the device breached the alarm config limit
25data[].alerts.severity0 - Low Severity. 1 - High Severity
1data[].alerts.dataDescribes the state of the alarm. IGNITION(type = 21), 0: OFF & 1: ON. AC(type=25), 0: OFF, 1: ON. GEOFENCE(type=26), 1: Entry & Exit Geofence 2: Entry Geofence, 3: Leaving Geofence & 4: Long Stay In Geofence
1data[].alerts.geofenceIdThis is the ID of the geofence for which the alarm got generated. This will come only when the 'type' field return 26 i,e geofence.
987876data[].canInfoNo field description in the source contract.
exampledata[].canInfo.calcEngineValNo field description in the source contract.
0data[].canInfo.greenDriveTypeHA(Harsh acceleration), HB(Harsh Breaking), HC(Harsh Cornering)
HAdata[].canInfo.canTimestampExact time at which the CAN data got generated by the device
1700000000000data[].canInfo.coolantTempNo field description in the source contract.
87data[].canInfo.engineRPMNo field description in the source contract.
796data[].canInfo.accelPedalThis is accelerator pedal value in percentage.
8.4data[].canInfo.parkBrakeThis is parking break. 0 means parking break is disengaged & 1 means parking break is engaged
0data[].canInfo.breakPedal1 means break pedal is engaged & 0 means break pedal is disengaged
0data[].canInfo.fuelLevelLevel of the fuel in liters
14data[].canInfo.driverDoor1 means door is open & 0 means door is closed
0data[].canInfo.headLights1 means ON & 0 means OFF
1data[].canInfo.blinker1 means ON & 0 means OFF
0data[].canInfo.gearState0 is Neutral, 1 is Drive, 2 is Sports, 3 is Reverse
1700000000000data[].canInfo.intakeAirTempThis is the intake air temperature of the engine.
62data[].canInfo.intakeabsolutePressThis is the intake absolute pressure of the engine. It is defined in Pa(Pascal)
42data[].canInfo.ac1 means AC is ON & 0 means AC is OFF
0data[].canInfo.fuelConsAVGFuel constant average
99data[].deviceFaultsNo field description in the source contract.
exampledata[].deviceFaults[].codeNo field description in the source contract.
1001data[].deviceFaults[].timetampNo field description in the source contract.
1700000000000data[].deviceFaults[].statusDescribes the status of the fault which was detected. 0: OPEN & 1: Close.
0data[].deviceFaults[].closedOnNo field description in the source contract.
556567872data[].currentGeofenceNo field description in the source contract.
exampledata[].todaysDriveNo field description in the source contract.
exampledata[].todaysDrive.todayKmsNo field description in the source contract.
55.67data[].todaysDrive.todayMovementTimeValue is in seconds
1700000000000data[].todaysDrive.todayIdleTimeValue is in seconds
1700000000000data[].todaysDrive.todayDriveCountNo field description in the source contract.
5{
"data": [
{
"id": "1",
"active": true,
"status": 1,
"vehicleBattery": 13568.98,
"location": {
"gpsTime": 1574736922,
"gprsTime": 1574736922,
"latitude": 28.551255163434,
"longitude": 77.2687,
"address": "244, Okhla Industrial Estate Phase 3, New Delhi, Delhi. 2 m from Usha Exim Pvt Ltd pin-110020",
"altitude": 234,
"heading": 196.868,
"speedKph": 27.85
},
"deviceDetails": {
"name": "DL3CCM8097",
"registrationNumber": "DL3CCM8097",
"deviceType": "car"
},
"alerts": {
"deviceId": 8989,
"timestamp": 1577589789,
"latitude": 28.550962381896,
"longitude": 77.26890675033,
"address": "237, Okhla Industrial Estate Phase 3, New Delhi, Delhi. 19 m from Wipro BPO Corporate Office pin-110020",
"alarmType": 28,
"limit": 44,
"duration": 20
},
"canInfo": {
"calcEngineVal": 0,
"greenDriveType": "HA",
"canTimestamp": 1568362645,
"coolantTemp": 87,
"engineRPM": 796,
"accelPedal": 8.4,
"parkBrake": 0,
"breakPedal": 0
}
}
]
}Operate it safely
This operation observes durable platform state. Preserve resource identifiers and account for pagination, delay, and eventual consistency.
Contract provenance
- Source file
contenthub/dochub/mapmyindia-intouch-rest-apis/custom/device.json- SHA-256
58a17aea1fc8a386e467f0266fb5d92e52e148c709fbcb95565be5c0f25895a4- Normalization
- Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.
- Source record
- Open repository audit