# Highlight APIs For Mayasia
### Steps of querying data
1. Please first execute "Login" API. You will get the `accountID` and `token` from the response.
2. For each API, you need to give the authorization token, where the token will be alive in 8 hours.
3. Then, get the `imei` from the "Vehicle and Account Relation" API.
4. Now you can start querying the data by the `imei`.
### API List
1. Login
- POST /web_api/login/v1
- Useful Response: accountID, token
2. Vehicle and Account Relation
- API: GET /web_api/vehicle_relations/v1/{{accountId}}
- Authorization:
- Type: Bearer Token
- Useful Response: imei
3. Vehicle Report
- Vehicle Weekly/Monthly Report
- /web_api/weekly_report/v1/vehicle/<IMEI>/<dateZone>/<sort>
- /web_api/monthly_report/v1/vehicle/<IMEI>/<dateZone>/<sort>
4. Driver
- Driver Weekly/Monthly Report
- /web_api/weekly_report/v1/driver/<IMEI>/<dateZone>/<sort>
- /web_api/monthly_report/v1/driver/<IMEI>/<dateZone>/<sort>
5. Route
- Trip List
- /web_api/trip/v1/<IMEI>/<page>/<dateZone>
- Useful Response: tripInfo.tripId
- Trip Point
- /web_api/overview/v1/<IMEI>/<tripId>