Get Token For Vehicle

GetTokenForVehicleNo API (POST)

https://apiplatform.intellicar.in/api/laftoken/v1/getlaftokenforvehicleno

Note: This URL is for testing only. A different URL and API_KEY will be provided for production.

Request Parameters

{
  "vehicleno": "KA03MF8135",
  "starttime": 164458163800, // time has to be in epoch milli sec
  "endtime": 1676117638000, // time has to be in epoch milli sec
  "cmds": ["gps", "can", "lock", "unlock"],
  "phone_publickey": "DB6745BB159E85EEC52D356C36035D1E0968928391AAACFFC72C092E47C05549",
  "token": "<token>" //Access token from the standard api(https://apiplatform.intellicar.in/api/standard/gettoken)
}
Parameter
Description

vehicleno

Vehicle Registration Number

starttime

Start time for token validity in epoch milliseconds

endtime

End time for token validity in epoch milliseconds

cmds

An array of commands or actions the token should have permission for

phone_publickey

The public key generated by the application/device


Sample Successful Response

Field
Description

vehicleno

Same as in the request

device_id

Unique device identifier assigned by the system

device_name

Device name (usually the same as device_id)

debug

Indicates whether debugging is enabled (true/false)

token

The requested token string (base64 / custom encoded format)

lockcmd

Internal lock command string for the device

unlockcmd

Internal unlock command string for the device

err

Error details (if any)

msg

A brief response message


Note:

  • starttime and endtime are in epoch milliseconds.

  • This token is used by your app to authorize and communicate with the device.

Last updated